CVE-2026-40977: When an application is configured to use `ApplicationPidFileWriter`, a local attacker with write access to the
CVE-2026-40977 is a medium-severity flaw (CVSS 4.7) affecting spring boot. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
When an application is configured to use `ApplicationPidFileWriter`, a local attacker with write access to the PID file's location can corrupt one file on the host each time the application is started. 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); PID file / symlink behavior (`ApplicationPidFileWriter`). Versions that are no longer suppor
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.7 (Medium) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 0.1% (top 99%) |
| CISA exploited list | No |
| Weakness | CWE-59 |
| Published | 2026-04-28 |
| Last modified | 2026-07-24 |
Last updated 2026-07-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40977?
spring boot: upgrade to 2.7.33, 3.3.19, 3.4.16, 3.5.14, 4.0.6. Exact commands for each OS are on this page.
Is CVE-2026-40977 being exploited?
CVE-2026-40977 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40977 affect?
CVE-2026-40977 affects spring boot. Severity is medium (CVSS 4.7). When an application is configured to use `ApplicationPidFileWriter`, a local attacker with write access to the PID file's location can corrupt one file on the host each time the application is started. Affected: Spring Boot 4.0.0–4.0.5 (fi
How urgent is CVE-2026-40977?
Priority 17/100. No elevated risk signals yet.
Software pages
Spring Framework vulnerabilities · VMware vulnerabilities
Related CVEs
- CVE-2026-40970 MEDIUM 5.0 UPGRADE When configured to use an SSL bundle, Spring Boot's Elasticsearch auto-configuration does not perform hostname
- CVE-2026-41001 MEDIUM 5.3 UPGRADE Spring Boot's ArtemisEmbeddedConfigurationFactory uses a fixed, static path for the embedded Artemis message b
- CVE-2026-40992 MEDIUM 5.0 UPGRADE Spring Boot's Mail auto-configuration does not enable hostname verification
- CVE-2026-40976 CRITICAL 9.1 UPGRADE In certain circumstances, Spring Boot's default web security is ineffective allowing unauthorized access to al
- CVE-2026-40972 HIGH 7.5 UPGRADE An attacker on the same network as the remote application may be able to utilize a timing attack to discover i