Skip to content
CVE-2026-40973: Predictable temp directory accepted without ownership verification

CVE-2026-40973: Predictable temp directory accepted without ownership verification

spring.io April 27, 2026

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.

Versions that are no longer supported are also affected.

Users of affected versions should upgrade to the corresponding fixed version.

No further mitigation steps are necessary.

To report a security vulnerability for a project within the Spring portfolio, see the Security Policy

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Check out all the upcoming events in the Spring community.

Extracted Entities