Skip to main content
VulnerabilityPublished

CVE-2026-40977: Spring Boot · Improper Link Resolution Before File Access

Affects Spring BootSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 4.7 Medium · fixed in 4.0.6 : update Spring Boot when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.0.6, 3.5.14, 3.4.16 +2
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring BootAffected
  • >=4.0.0 <4.0.6
Fixed in
  • 4.0.6
SpringSpring BootAffected
  • >=3.5.0 <3.5.14
Fixed in
  • 3.5.14
SpringSpring BootAffected
  • >=3.4.0 <3.4.16
Fixed in
  • 3.4.16
SpringSpring BootAffected
  • >=3.3.0 <3.3.19
Fixed in
  • 3.3.19
SpringSpring BootAffected
  • >=2.7.0 <2.7.33
Fixed in
  • 2.7.33
Mavenorg.springframework.boot/spring-bootpkg:maven/org.springframework.boot/spring-bootOther threatsAffected
  • 2.7.0 – 4.0.0
5 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The vendor advisory is not provided in the input, and remediationLevel is null. However, fixed versions are identified: 2.7.33, 3.3.19, 3.4.16, 3.5.14, and 4.0.6. Users should upgrade to these or later versions to mitigate the vulnerability. Until patched, restrict write access to the PID file location to trusted users only.

Description

CVE-2026-40977 is a medium severity vulnerability in Spring Boot affecting versions 2.7.0 through 4.0.5. It involves improper link resolution before file access in the ApplicationPidFileWriter component. A local attacker with write access to the PID file location can corrupt one file on the host each time the application starts. The vulnerability impacts the integrity of the host system but does not affect confidentiality or availability. Fixed versions include 2.7.

References

Community reviews

Loading reviews…