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

CVE-2026-40979 · Severity: medium · CVSS 6.1 · Published 2026-04-28

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)

Technologies: VMware Spring Ai. Vendors: Maven, VMware.

Quick answers

Is CVE-2026-40979 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-40979 being exploited in the wild.
How severe is CVE-2026-40979?
Medium severity, with a CVSS score of 6.1, published 28 April 2026.
Which products and versions are affected?
org.springframework.ai:spring-ai-transformers (Maven) ECOSYSTEM:introduced=1.0.0,fixed=1.0.6.
Is there a fix for CVE-2026-40979?
Yes. org.springframework.ai:spring-ai-transformers (Maven): upgrade to 1.0.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-40979?
Check whether you run org.springframework.ai:spring-ai-transformers (Maven) or VMware Spring Ai at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.springframework.ai:spring-ai-transformers (Maven): upgrade to 1.0.6 or later
    # set org.springframework.ai:spring-ai-transformers to 1.0.6 in your pom.xml or build.gradle

Affected products

  • org.springframework.ai:spring-ai-transformers (Maven) ECOSYSTEM:introduced=1.0.0,fixed=1.0.6
  • VMware Spring Ai

Identifiers

  • CVE-2026-40979
  • GHSA-r5hp-3cgj-j6xv

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.