Skip to main content

Spring AI CVE-2026-40978

| EUVDEUVD-2026-26011 HIGH
SQL Injection (CWE-89)
2026-04-28 security@vmware.com GHSA-63c8-m9m2-cvr3
8.8
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Authenticate to Spring AI application
  3. Exploit
    Submit crafted document ID with SQL payload
  4. Execution
    Trigger CosmosDBVectorStore query
  5. Persist
    Execute injected SQL in Cosmos DB
  6. Impact
    Exfiltrate or modify database contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to have authenticated access (PR:L) to an application using Spring AI's CosmosDBVectorStore component with vulnerable versions 1.0.0-1.0.5 or 1.1.0-1.1.4. The attacker must have the ability to control or influence document IDs passed to CosmosDBVectorStore operations, which depends on the application's API design - some applications may allow users to specify custom document identifiers while others generate them internally. Network accessibility (AV:N) means remote exploitation is possible if the application exposes vector store functionality through web APIs, REST endpoints, or other network services. No user interaction is required (UI:N) beyond the attacker's own authenticated session. Exploitation is limited to applications specifically using the CosmosDBVectorStore implementation; other Spring AI vector store backends (Pinecone, Weaviate, etc.) are not affected by this vulnerability. Default Spring AI configurations are vulnerable if using Cosmos DB - no special non-default settings increase risk.

Impact

This vulnerability presents significant real-world risk for organizations using Spring AI with Cosmos DB vector stores in production. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) indicates network-accessible exploitation with low complexity, though authentication is required (PR:L). The attacker needs valid credentials to the application using CosmosDBVectorStore, which could be low-privilege user accounts depending on application design. No EPSS score or KEV listing is available, suggesting no confirmed widespread exploitation at time of analysis, but the technical simplicity (AC:L) and complete CIA impact (H/H/H) make this attractive for post-authentication privilege escalation. The vulnerability is particularly concerning for multi-tenant AI applications where authenticated users should have isolated data access - SQL injection bypasses application-layer access controls entirely. No public exploit code is identified in available data, but SQL injection is well-understood and easily weaponized once vulnerability details are published. Organizations using affected versions in production should prioritize patching, especially if the vector store contains sensitive data or if low-privilege users can control document IDs.

Exploit ScenarioDerived

An authenticated attacker with low-privilege access to an AI application using Spring AI's CosmosDBVectorStore crafts a malicious document ID containing SQL injection payloads, such as "'; DROP TABLE embeddings; --" or "' UNION SELECT username, password, api_key FROM users--". When the application processes this document ID through vector store operations (insert, update, or search), the unsanitized ID is embedded directly into SQL queries sent to Cosmos DB. The attacker's injected SQL executes with the application's database privileges, enabling extraction of sensitive vector embeddings, user data, or API keys stored in the database, modification of AI model data to poison results, or destruction of database tables causing application-wide denial of service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

SQL injection in Spring AI's CosmosDBVectorStore component (versions 1.0.0-1.0.5 and 1.1.0-1.1.4) enables authenticated remote attackers to execute arbitrary SQL queries through malicious document IDs, potentially achieving full database compromise including data exfiltration, modification, and denial of service. VMware has released patches in versions 1.0.6 and 1.1.5. CVSS score of 8.8 reflects high impact across confidentiality, integrity, and availability, though exploitation requires low-privilege authenticated access to the vector store API.

RemediationAI

Upgrade to Spring AI version 1.0.6 (for 1.0.x series users) or version 1.1.5 (for 1.1.x series users), both of which contain fixes for the SQL injection vulnerability per VMware's security advisory at https://spring.io/security/cve-2026-40978. If immediate patching is not feasible, implement strict input validation on document IDs before they reach the CosmosDBVectorStore API: whitelist alphanumeric characters only, reject any IDs containing SQL metacharacters (quotes, semicolons, dashes, parentheses), and enforce maximum length limits. Additionally, ensure the Cosmos DB connection uses a database account with minimum necessary privileges (read/write to specific collections only, no admin rights) to limit blast radius if SQL injection occurs. Network segmentation to restrict Cosmos DB access to application servers only provides defense-in-depth but does not prevent authenticated application users from exploiting the vulnerability. These workarounds reduce but do not eliminate risk - patching remains the only complete remediation.

Affected VersionsENISA

Spring AI 1.0.0 <1.0.6
Spring AI 1.1.0 <1.1.5

Affected Packages

maven org.springframework.ai:spring-ai-azure-cosmos-db-store fix: 1.0.6, 1.1.5
euvd spring_ai fix: 1.0.6, 1.1.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Spring AI is a Java framework for building AI applications with vector database integrations. The CosmosDBVectorStore component provides integration with Azure Cosmos DB for vector similarity search operations. This CWE-89 SQL injection vulnerability occurs when user-controlled document IDs are improperly sanitized before being incorporated into SQL queries sent to the underlying Cosmos DB. The vulnerability affects the document ID parameter handling, which should be treated as untrusted input but is instead passed directly into SQL query construction. Standard SQL injection attack techniques apply: attackers can break out of the intended query context using metacharacters, append malicious SQL statements, or use UNION-based injection to extract arbitrary data from the database.

Know when Spring Ai gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vmware) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (vmware) · only source for this CVE.

CVSS VectorVendor: vmware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Apr 29, 2026 - 18:16 nvd
Patch available
Patch available
Apr 28, 2026 - 10:01 EUVD
CVE Published
Apr 28, 2026 - 09:16 nvd
HIGH 8.8

DescriptionCVE.org

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)

Executive ViewAI

Why It Matters

Spring AI's CosmosDBVectorStore component contains a SQL injection vulnerability affecting versions 1.0.0-1.0.5 and 1.1.0-1.1.4 that allows authenticated users to execute arbitrary database queries, potentially compromising confidentiality, integrity, and availability of vector store data. Organizations using affected versions in production environments face direct risk to data security and application availability, particularly if the vector store handles sensitive information or supports critical business functions.

Business Impact: High
Compensating Controls

Apply vendor patch. Upgrade Spring AI to version 1.0.6 (for 1.0.x branch) or version 1.1.5 (for 1.1.x branch). If immediate patching is not possible, implement network segmentation to restrict API access to the CosmosDBVectorStore to trusted internal services only, and implement input validation/sanitization on document IDs at the application layer pending patch deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2026-59318 CRITICAL
9.8 Aug 21

Incorrect authorization in Spring AI's tool-calling layer allows a tool that was never advertised to the current request

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-22730 HIGH
8.8 Mar 18

A critical SQL injection vulnerability in Spring AI's MariaDBFilterExpressionConverter component allows authenticated at

CVE-2026-22729 HIGH
8.6 Mar 18

Spring AI's AbstractFilterExpressionConverter fails to properly escape user-controlled input in JSONPath queries, allowi

CVE-2026-40967 HIGH
8.6 Apr 28

Filter expression injection in Spring AI 1.0.0-1.0.5 and 1.1.0-1.1.4 allows remote unauthenticated attackers to manipula

CVE-2026-22742 HIGH
8.6 Mar 27

Server-Side Request Forgery in Spring AI Bedrock Converse module enables unauthenticated remote attackers to force the a

CVE-2026-41705 HIGH
8.6 May 09

Filter-expression injection in Spring AI's MilvusVectorStore allows remote unauthenticated attackers to manipulate vecto

CVE-2026-41713 HIGH
8.2 May 12

Conversation memory poisoning in VMware Spring AI allows remote unauthenticated attackers to inject malicious input that

CVE-2026-47835 HIGH
7.5 Jun 15

Query injection in the Spring AI vector-store modules - spring-ai-elasticsearch-store, spring-ai-opensearch-store and sp

CVE-2026-59279 HIGH
7.5 Aug 21

Unbounded session accumulation in Spring AI 2.0.0's MCP Streamable HTTP server transport enables remote unauthenticated

CVE-2026-47851 HIGH
7.5 Aug 26

Denial of service in Spring AI's PDF document ingestion crashes the processing thread when parsing a crafted PDF with a

CVE-2026-47852 HIGH
7.5 Aug 26

Predictable ONNX model cache path creation in Spring AI enables a local attacker on a shared multi-user host to pre-crea

References

Advisories & patches

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy