cve.bz

CVE-2026-40973 vmware spring boot: Insecure Temporary File

7.0 highEPSS 0.1%Fix available

High (7.0) in vmware spring boot. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.springframework.boot:spring-boot 3.5.14, 4.0.6.

On this page
A local attacker on the same host as the application may be able to take control of the directory used by `ApplicationTemp`. When `server.servlet.session.persistent` is set to `true` and the attack persists across application restarts, this may allow the attacker to read session information and hijack authenticated users or deploy a gadget chain and execute code as the application's user. Affected: Spring Boot 4.0.0–4.0.5 (fix 4.0.6), 3.5.0–3.5.13 (fix 3.5.14), 3.4.0–3.4.15 (fix 3.4.16), 3.3.0–3.3.18 (fix 3.3.19), 2.7.0–2.7.32 (fix 2.7.33); predictable temp directory / `ApplicationTemp` ownership verification. Versions that are no longer supported are also affected per vendor advisory.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40973 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40973?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40973?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40973 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Spring Bootfrom 4.0.0 before 4.0.6
Spring Bootfrom 3.5.0 before 3.5.14
Spring Bootfrom 3.4.0 before 3.4.16
Spring Bootfrom 3.3.0 before 3.3.19
Spring Bootfrom 2.7.0 before 2.7.33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wwpq-f5c3-7hvxMavenorg.springframework.boot:spring-boot>=4.0.0 <4.0.64.0.6
GHSA-wwpq-f5c3-7hvxMavenorg.springframework.boot:spring-boot>=3.5.0 <3.5.143.5.14
GHSA-wwpq-f5c3-7hvxMavenorg.springframework.boot:spring-boot>=3.4.0 <=3.4.15no fix published
GHSA-wwpq-f5c3-7hvxMavenorg.springframework.boot:spring-boot>=3.3.0 <=3.3.18no fix published
GHSA-wwpq-f5c3-7hvxMavenorg.springframework.boot:spring-boot<=2.7.32no fix published

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

To mitigate this issue, ensure that the `server.servlet.session.persistent` property is set to `false` in your Spring Boot application's configuration. This prevents session information from being written to the predictable temporary directory, thereby removing the conditions necessary for exploitation. Disabling persistent sessions may affect application behavior that relies on session data surviving restarts.

ProductPackageStateAdvisory
HawtIO HawtIO 4.4.0spring-bootFixed 2026-06-10RHSA-2026:25089
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14spring-bootFixed 2026-05-14RHSA-2026:17668
Red Hat OpenShift Dev Spaces 3.28devspaces/openvsx-rhel9:1779528224Fixed 2026-05-28RHSA-2026:21772
Red Hat OpenShift Dev Spaces 3.28devspaces/pluginregistry-rhel9:1779359423Fixed 2026-05-28RHSA-2026:21772
Red Hat AMQ Broker 7spring-bootNot affected
Red Hat AMQ Clientsspring-bootNot affected
Red Hat build of OptaPlanner 8spring-bootAffected
Red Hat Data Grid 8spring-bootNot affected
Red Hat Enterprise Linux 8log4j:2/log4jNot affected
Red Hat Enterprise Linux 9log4jNot affected
Red Hat Fuse 7spring-bootWill not fix
Red Hat JBoss Enterprise Application Platform 7spring-bootNot affected
Red Hat JBoss Enterprise Application Platform 8spring-bootNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packspring-bootNot affected
Red Hat Process Automation 7spring-bootNot affected
Red Hat Single Sign-On 7spring-bootNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40973.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON