Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-40973

Spring Boot accepts predictable temp directory without ownership verification
Back to all
CVE

CVE-2026-40973

Spring Boot accepts predictable temp directory without ownership verification

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.

Package Versions Affected

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7
-
3.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
7
-
3.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://nvd.nist.gov/vuln/detail/CVE-2026-40973, https://github.com/spring-projects/spring-boot, https://spring.io/security/cve-2026-40973

Severity

7

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7
EPSS Probability
0.00016%
EPSS Percentile
0.03931%
Introduced Version
4.1.0-M1,4.0.0-M1,2.5.5,2.4.11,2.5.0,2.0.0.RELEASE,1.3.0.RELEASE,0
Fix Available
4.1.0-RC1,4.0.6,3.5.14,2.9.0-r7,8.7.29-r0,8.8.24-r0,8.9.5-r0,1.4.2-r9,1.4.2-r8,3.2.1-r2,3.2.1-r1,4.3.1.1-r11

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading