Skip to main content

Spring Boot CVE-2026-40977

MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-04-28 security@vmware.com
6.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Privilege escalation to root or admin
  2. Delivery
    Predict PID file path and location
  3. Exploit
    Create symlink to target file
  4. Install
    Trigger application restart
  5. C2
    ApplicationPidFileWriter writes PID
  6. Execute
    Symlink followed, target file overwritten
  7. Impact
    Data 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maven org.springframework.boot:spring-boot-cassandra fix: 3.5.14, 4.0.6

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

NVD PRIMARY 6.7 MEDIUM
AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
Jul 24, 2026 - 21:22 NVD
4.7 (MEDIUM) 6.7 (MEDIUM)
CVE Published
Apr 28, 2026 - 00:16 nvd
MEDIUM 4.7

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.0%
Top 98% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
cpe:2.3:a:vmware:spring_boot:*:*:*:*:*:*:*:*
CVE-2017-8046 CRITICAL POC
9.8 Jan 04

Malicious PATCH requests submitted to servers using Spring Data REST versions prior to 2.6.9 (Ingalls SR9), versions pri

CVE-2022-27772 HIGH POC
7.8 Mar 30

spring-boot versions prior to version v2.2.11.RELEASE was vulnerable to temporary directory hijacking. Rated high severi

CVE-2023-20873 CRITICAL
9.8 Apr 20

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

CVE-2021-26987 CRITICAL
9.8 Mar 15

Element Plug-in for vCenter Server incorporates SpringBoot Framework. Rated critical severity (CVSS 9.8), this vulnerabi

CVE-2026-96882 MEDIUM POC
5.5 Sep 24

Unauthorized read access to book records in TaleLin lin-cms-spring-boot 0.2.1 and earlier is possible through the search

CVE-2026-96881 MEDIUM POC
5.5 Sep 24

Improper authorization in TaleLin lin-cms-spring-boot through 0.2.1 lets unauthenticated remote attackers read book reco

CVE-2026-96880 MEDIUM POC
5.5 Sep 24

Improper authorization in TaleLin lin-cms-spring-boot 0.2.1 and earlier lets remote unauthenticated attackers read book

CVE-2026-40971 CRITICAL
9.1 Apr 27

Spring Boot's RabbitMQ auto-configuration omits TLS hostname verification when an SSL bundle is configured, enabling a m

CVE-2026-22733 HIGH
8.2 Mar 20

This is an authentication bypass vulnerability in Spring Boot applications using Spring Security with Actuator endpoints

CVE-2026-22731 HIGH
8.2 Mar 19

Spring Boot Actuator endpoints can be bypassed for authentication when application endpoints are configured under Health

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy