CVE-2026-40979 Spring AI's ONNX model cache defaults to world-writable predictable /tmp directory
Attackers with shared environment access can expose ONNX models, requiring developers to upgrade Spring AI.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-40979?
CVE-2026-40979 is a medium-severity vulnerability in Spring AI, published on 28 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In Spring AI, having access to a shared environment can expose the ONNX model used by the application.
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)
Weakness: CWE-377
Which versions are affected by CVE-2026-40979?
4 open source packages ship an affected version, including org.springframework.ai:spring-ai-transformers. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.ai:spring-ai-transformers Maven | From 1.0.0 | 1.0.6 |
org.springframework.ai:spring-ai-transformers Maven | From 1.0.0 | 1.0.6 |
org.springframework.ai:spring-ai-transformers Maven | From 1.1.0 | 1.1.5 |
org.springframework.ai:spring-ai-transformers Maven | From 1.1.0 | 1.1.5 |
Products include Vmware Spring Ai.
How do I fix CVE-2026-40979?
Upgrade org.springframework.ai:spring-ai-transformers to a fixed version for your release line: 1.0.6 or 1.1.5.
Is CVE-2026-40979 being exploited?
There is no known exploitation of CVE-2026-40979 in the wild and no public exploit code.
Other vulnerabilities in Spring AI
- CVE-2026-22738 SpEL Injection via Unescaped Filter Key in SimpleVectorStore Leads to Remote Code Execution
- CVE-2026-40978 Spring AI has SQL Injection in CosmosDBVectorStore.doDelete()
- CVE-2026-22730 CVE-2026-22730: SQL Injection in Spring AI MariaDBFilterExpressionConverter
- CVE-2026-47835 Spring AI vector store metadata filtering to handle special characters in Elasticsearch, OpenSearch, and GemFire Vector Stores
- CVE-2026-41705 Spring AI's MilvusVectorStore#doDelete(List) implementation is vulnerable to filter-expression injection via unsanitized document IDs
Sources
Also known as GHSA-r5hp-3cgj-j6xv.