CVE-2026-40979 Spring AI's ONNX model cache defaults to world-writable predictable /tmp directory

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
org.springframework.ai:spring-ai-transformers MavenFrom 1.0.01.0.6
org.springframework.ai:spring-ai-transformers MavenFrom 1.0.01.0.6
org.springframework.ai:spring-ai-transformers MavenFrom 1.1.01.1.5
org.springframework.ai:spring-ai-transformers MavenFrom 1.1.01.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.

Sources

Also known as GHSA-r5hp-3cgj-j6xv.

Is CVE-2026-40979 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free