CVE-2026-40978
Full vulnerability record from the local CVENow database.
Description
SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via crafted document IDs. Affected versions: Spring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)
Severity
HIGH
CVSS score
8.8
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-04-28 09:16:16.583000
Last modified
2026-10-26 22:10:00.163000
View original CVE JSON
{
"id": "CVE-2026-40978",
"sourceIdentifier": "[email protected]",
"published": "2026-04-28T09:16:16.583",
"lastModified": "2026-10-26T22:10:00.163",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "SQL injection vulnerability in Spring AI's `CosmosDBVectorStore` allows attackers to execute arbitrary SQL queries via crafted document IDs.\n\nAffected versions:\nSpring AI: 1.0.0 - 1.0.5 (fixed in 1.0.6), 1.1.0 - 1.1.4 (fixed in 1.1.5)"
},
{
"lang": "es",
"value": "Vulnerabilidad de inyección SQL en el ’CosmosDBVectorStore’ de Spring AI permite a los atacantes ejecutar consultas SQL arbitrarias a través de IDs de documento manipulados.\n\nVersiones afectadas:\nSpring AI: 1.0.0 - 1.0.5 (corregido en 1.0.6), 1.1.0 - 1.1.4 (corregido en 1.1.5)"
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Spring",
"product": "Spring AI",
"defaultStatus": "unaffected",
"versions": [
{
"version": "1.0.0",
"lessThan": "1.0.6",
"versionType": "custom",
"status": "affected"
},
{
"version": "1.1.0",
"lessThan": "1.1.5",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-04-28T00:00:00+00:00",
"id": "CVE-2026-40978",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-89"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*",
"versionStartIncluding": "1.0.0",
"versionEndExcluding": "1.0.6",
"matchCriteriaId": "1CD6DC44-CDE8-47E4-A788-6D8AE716396F"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:vmware:spring_ai:*:*:*:*:*:*:*:*",
"versionStartIncluding": "1.1.0",
"versionEndExcluding": "1.1.5",
"matchCriteriaId": "5013645B-3914-4A40-8D42-CB47344963A7"
}
]
}
]
}
],
"references": [
{
"url": "https://spring.io/security/cve-2026-40978",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}