Insecure Temporary File Affecting org.springframework.boot:spring-boot package, versions [,3.5.14)[4.0.0-M1,4.0.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKBOOT-16198880
  • published24 Apr 2026
  • disclosed23 Apr 2026
  • creditUnknown

Introduced: 23 Apr 2026

CVE-2026-40973  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

Upgrade org.springframework.boot:spring-boot to version 3.5.14, 4.0.6 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Temporary File due to the ApplicationTemp mechanism creating a temporary directory using a predictable name. Because the name can be easily guessed, a local attacker on the same server can maliciously pre-create this directory before the Spring Boot application starts. When the application launches, it would blindly use the existing directory without verifying if it is actually owned by the application's user or the attacker.

CVSS Base Scores

version 4.0
version 3.1