Spring Boot
CVE-2026-40977
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPrivilege escalation to root or admin
-
DeliveryPredict PID file path and location
-
ExploitCreate symlink to target file
-
InstallTrigger application restart
-
C2ApplicationPidFileWriter writes PID
-
ExecuteSymlink followed, target file overwritten
-
ImpactData corruption or service disruption
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | The vulnerability requires ApplicationPidFileWriter to be explicitly configured in the application (not enabled by default in all deployments). The attacker must have write access to the directory where the PID file is created, typically /var/run, /tmp, or a custom path specified in the application configuration. The attacker must also possess high privilege level (PR:H per CVSS), meaning root or administrator equivalent access. Additionally, the attacker must know or predict the PID file path and timing of application startup to create the symlink before ApplicationPidFileWriter writes to it. Applications running with restricted umask or in environments where symlink creation in the PID directory is prevented (e.g., immutable directories or strict filesystem policies) are not exploitable. The attack is non-exploitable against applications that do not use ApplicationPidFileWriter or that run in sandboxed/containerized environments with strict path restrictions. |
| Impact | CVSS 4.7 with local attack vector (AV:L), high complexity (AC:H), and high privilege requirement (PR:H) indicates this is a low-to-moderate real-world risk. The three key limiting factors are: (1) local-only attack vector eliminates remote exploitation entirely; (2) PR:H (high privilege) means the attacker must already have administrator or root-equivalent access; (3) AC:H (high complexity) suggests the attack requires specific conditions such as predictable PID file paths or symlink creation windows. The integrity impact is limited (I:L) but availability impact is high (A:H) if critical files are corrupted. This is fundamentally a privilege escalation and persistence vector for already-compromised systems rather than an initial access vulnerability. EPSS data not provided, but the CVSS profile suggests this ranks below network-reachable vulnerabilities in priority. The requirement for write access to the PID file directory combined with high privileges makes exploitation predominantly relevant to multi-tenant or containerized environments where privilege boundaries may be weaker than traditional servers. |
| Exploit ScenarioDerived | An administrator or root user with legitimate write access to /var/run creates a symlink from the application's expected PID file path (e.g., /var/run/myapp.pid) to a critical file such as /etc/passwd or a configuration file. When the application starts, ApplicationPidFileWriter follows the symlink and overwrites the target file with the PID number, corrupting that file and potentially breaking system functionality or application configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Spring Boot applications configured with ApplicationPidFileWriter are vulnerable to local file corruption when a high-privilege user can write to the PID file directory. An attacker with high privileges and write access to the PID file location can corrupt arbitrary files each time the application restarts, achieving denial of service or data integrity violations. Exploitation requires local access and elevated privileges, limiting real-world impact to co-resident or insider threat scenarios. No active exploitation has been publicly reported.
RemediationAI
Spring released patched versions addressing ApplicationPidFileWriter symlink handling: upgrade to Spring Boot 4.0.6 or later for 4.x branches, 3.5.14 or later for 3.5.x, 3.4.16 or later for 3.4.x, 3.3.19 or later for 3.3.x, and 2.7.33 or later for 2.7.x. Consult https://spring.io/security/cve-2026-40977 and https://www.herodevs.com/vulnerability-directory/cve-2026-40977 for guidance on your specific branch. As an interim compensating control, restrict write access to the directory where PID files are stored (typically /var/run or /tmp) using filesystem permissions so that only the application owner or root can create files in that location; this prevents unprivileged users from creating symlinks, though it does not fully mitigate attacks from high-privilege users already having directory write access. Additionally, disable ApplicationPidFileWriter if process management can be handled through alternative means (systemd, container orchestration, or external process monitors), though this removes the functionality for applications that depend on PID file based health checks.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ApplicationPidFileWriter is a Spring Boot component that writes the application process ID to a file for process management and monitoring. The vulnerability stems from unsafe handling of PID files and potential symlink attacks (CWE-59: Improper Link Resolution Before File Access). When an application starts, if an attacker with write access to the PID file directory has created a symlink pointing to a critical system or application file, the PID write operation will overwrite that target file instead of the intended PID file. This symlink-following behavior is the root cause. The affected component operates during application initialization when it attempts to write the PID, making it a startup-phase vulnerability.
Know when Spring Boot gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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 supported are also affected per vendor advisory.
Blast Radius
ecosystem impact- 16 maven packages depend on org.springframework.boot:spring-boot-cassandra (5 direct, 11 indirect)
Ecosystem-wide dependent count for version 4.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)NVD
Related Vulnerabilities in Spring Boot Configuration Security Issues
View all 5More in Spring Boot
View allMalicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions pri
spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. Rated high severi
In Spring Boot versions 3.0.0 - 3.0.5, 2.7.0 - 2.7.10, and older unsupported versions, an application that is deployed t
Element Plug-in for vCenter Server incorporates SpringBoot Framework. Rated critical severity (CVSS 9.8), this vulnerabi
Unauthorized read access to book records in TaleLin lin-cms-spring-boot 0.2.1 and earlier is possible through the search
Improper authorization in TaleLin lin-cms-spring-boot through 0.2.1 lets unauthenticated remote attackers read book reco
Improper authorization in TaleLin lin-cms-spring-boot 0.2.1 and earlier lets remote unauthenticated attackers read book
Spring Boot's RabbitMQ auto-configuration omits TLS hostname verification when an SSL bundle is configured, enabling a m
This is an authentication bypass vulnerability in Spring Boot applications using Spring Security with Actuator endpoints
Spring Boot Actuator endpoints can be bypassed for authentication when application endpoints are configured under Health
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB