HighGHSA-wwpq-f5c3-7hvxCVE-2026-40973

Spring Boot accepts predictable temp directory without ownership verification

Published 28 Apr 2026 · Updated 10 Sept 2026

Is your project on an affected org.springframework.boot:spring-boot?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=4.0.0 <4.0.6
Fixed in
4.0.6
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.boot:spring-boot -DdepVersion=4.0.6 -DforceVersion=true
Affected
>=3.5.0 <3.5.14
Fixed in
3.5.14
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.springframework.boot:spring-boot -DdepVersion=3.5.14 -DforceVersion=true
Affected
>=3.4.0 <=3.4.15
Fixed in
No fix released
Affected
>=3.3.0 <=3.3.18
Fixed in
No fix released
Affected
<=2.7.32
Fixed in
No fix released

Details

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.

Is GHSA-wwpq-f5c3-7hvx in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework.boot:spring-boot, and gives you the command that fixes it.

More advisories for org.springframework.boot:spring-boot

  • CriticalCVE-2026-40976Spring Boot's default security filter chain has no authorization rule with Actuator but without Health · 28 Apr 2026
  • HighCVE-2025-22235Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed · 28 Apr 2025
  • HighCVE-2022-27772Temporary Directory Hijacking to Local Privilege Escalation Vulnerability in org.springframework.boot:spring-boot · 11 Jul 2022
  • MediumCVE-2018-1196Moderate severity vulnerability that affects org.springframework.boot:spring-boot · 18 Oct 2018
org.springframework.boot:spring-boot security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.