Skip to main content

Spring Boot CVE-2026-40972

HIGH
Observable Timing Discrepancy (CWE-208)
2026-04-27 vmware GHSA-56v8-86gj-66jp
7.5
CVSS 3.1 · Vendor: vmware
View

Attack ChainAIDerived

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

  1. Recon
    Gain adjacent network access
  2. Delivery
    Send repeated DevTools auth requests
  3. Exploit
    Measure response timing variations
  4. Install
    Statistically recover shared secret
  5. C2
    Authenticate to DevTools endpoint
  6. Execute
    Upload malicious class file
  7. Impact
    Achieve remote code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Timing attack prevention
Exploitation Conditions

Spring Boot DevTools remote restart feature must be explicitly enabled via the spring.devtools.remote.secret configuration property. This feature is intended only for development environments and is disabled by default in production-ready deployments. Attacker must have Adjacent Network access (AV:A), meaning presence on the same network segment as the vulnerable application, typically achieved through compromised VPN access, insider threat position, or lateral movement from another compromised system on the corporate network. The application must be reachable on the DevTools remote port (typically HTTP/HTTPS endpoint). Attack complexity is High (AC:H) due to the need for precise timing measurement capabilities, statistical analysis tools, and network conditions stable enough to differentiate legitimate timing differences from network jitter. No special user privileges or actions are required (PR:N/UI:N), but the narrow exploitation window is defined by the rare deployment scenario where DevTools remote features run outside isolated development environments.

Impact

Real-world risk is lower than the CVSS 7.5 score suggests due to multiple limiting factors. Attack vector is Adjacent Network (AV:A), restricting exploitation to attackers on the same network segment as the vulnerable application. Attack complexity is High (AC:H) because timing attacks require sophisticated measurement techniques, statistical analysis across many requests, and stable network conditions with minimal jitter. The CVSS vector shows Privileges Required None (PR:N) and User Interaction None (UI:N), but the critical limiting factor is the deployment context: Spring Boot DevTools remote restart is explicitly documented as a development-only feature and should never be enabled in production environments. Organizations following Spring security best practices will not have this feature enabled on internet-facing or production systems. The vulnerability has no CISA KEV listing, suggesting no confirmed widespread exploitation in the wild. No EPSS score is provided, but the combination of adjacent network requirement, high attack complexity, and limited real-world deployment of the vulnerable feature suggests low probability of opportunistic exploitation. Primary risk scenario is internal network compromise where an attacker pivots to network segments containing misconfigured staging or development servers with DevTools enabled. This is a real priority only for organizations that have incorrectly enabled DevTools remote features outside isolated development environments or lack proper network segmentation between development and production networks.

Exploit ScenarioDerived

An attacker gains access to the same network segment as a Spring Boot application with DevTools remote restart enabled (misconfigured staging server or development instance on corporate network). The attacker sends thousands of crafted DevTools authentication requests with varying secret guesses, measuring response times with microsecond precision. Statistical analysis of timing variations reveals which characters match the correct secret at each position, allowing iterative recovery of the full shared secret over hours or days. Once the secret is extracted, the attacker authenticates to the DevTools remote endpoint and uploads a malicious Java class file containing backdoor code or web shell. Spring Boot loads the attacker's class into the running JVM, granting full remote code execution with application privileges to exfiltrate data, pivot to other systems, or establish persistence.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Apr 28, 2026

Timing attack against Spring Boot DevTools remote secret comparison allows adjacent network attackers to recover the shared secret and achieve remote code execution by uploading malicious classes. Affects Spring Boot 2.7.x through 4.0.x when DevTools remote feature is enabled. Attacker must be on same network segment (AV:A) and overcome high attack complexity (timing-based cryptographic weakness), but requires no authentication or user interaction. CVSS 7.5 severity reflects adjacent vector limitation; real-world risk depends heavily on whether DevTools remote restart is enabled in production (not recommended practice) and network segmentation. No confirmed active exploitation (not in CISA KEV). Vendor-released patches available across all affected branches.

Earlier versions of this analysis (1)
v1 Apr 28, 2026 - 00:00 CVSS 7.5

Timing attack against Spring Boot DevTools allows adjacent network attackers to extract the remote secret and achieve remote code execution by uploading malicious classes. Affects Spring Boot 2.7.0 through 4.0.5 when DevTools remote debugging is enabled. Attack requires adjacent network access (AV:A) and high complexity timing analysis (AC:H) but no authentication. Patches released across all affected branches (2.7.33, 3.3.19, 3.4.16, 3.5.14, 4.0.6). No confirmed active exploitation (not in CISA KEV), but POC feasibility is high given well-understood timing attack techniques against secret comparison operations.

RemediationAI

Upgrade to patched Spring Boot versions: 2.7.33 for 2.x branch, 3.3.19 for 3.3.x, 3.4.16 for 3.4.x, 3.5.14 for 3.5.x, or 4.0.6 for 4.0.x as detailed in the official Spring security advisory at https://spring.io/security/cve-2026-40972 and HeroDevs advisory at https://www.herodevs.com/vulnerability-directory/cve-2026-40972. If immediate patching is not feasible, disable Spring Boot DevTools remote restart functionality entirely by removing the spring.devtools.remote.secret property from application configuration and excluding the spring-boot-devtools dependency from production builds (standard best practice is to mark it as optional or use Maven profiles to exclude from production artifacts). For organizations requiring remote debugging capabilities in non-production environments, implement strict network segmentation to isolate development servers from untrusted networks, enforce VPN access with strong authentication, and rotate DevTools secrets frequently (though rotation alone does not fix the timing attack vulnerability). Note that disabling DevTools prevents the vulnerable code path from being reachable but verify exclusion through dependency analysis. Production deployments should never include spring-boot-devtools dependency; if found in production, treat as critical misconfiguration requiring immediate remediation beyond this CVE.

Affected Packages

maven org.springframework.boot:spring-boot-devtools 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

Spring Boot DevTools provides a remote application restart feature for development convenience, allowing developers to push class file changes to running applications. This feature uses a shared secret for authentication. The vulnerability (CWE-208: Observable Timing Discrepancy) exists in the secret comparison logic during remote DevTools authentication. The implementation leaks information about the correct secret through measurable timing differences in the comparison operation, likely using a non-constant-time string/byte comparison instead of a cryptographically safe comparison function. An attacker can exploit these microsecond-level timing variations to iteratively guess each character of the secret, eventually recovering the full shared secret. Once the secret is compromised, the attacker can authenticate to the DevTools remote endpoint and upload arbitrary class files, which are then loaded into the running JVM, achieving full remote code execution with the privileges of the Spring Boot application process. The CPE string cpe:2.3:a:spring:spring_boot identifies the affected product across multiple major version branches spanning from legacy 2.7.x to current 4.0.x releases.

Know when Spring 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

Vendor (vmware) PRIMARY 7.5 HIGH
AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat 7.5 MEDIUM

Primary rating from Vendor (vmware).

CVSS VectorVendor: vmware

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

Lifecycle Timeline

2
Analysis Updated
Apr 28, 2026 - 00:27 vuln.today
v2 - CVSS changed
CVE Published
Apr 27, 2026 - 23:15 nvd
HIGH 7.5

DescriptionCVE.org

An attacker on the same network as the remote application may be able to utilize a timing attack to discover information about the remote secret. In extreme circumstances this could result in the attacker determining the secret and uploading changed classes, thereby achieving remote code execution in the remote application.

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); DevTools remote secret comparison. Versions that are no longer supported are also affected per vendor advisory.

Executive ViewAI

Why It Matters

CVE-2026-40972 affects Spring Boot 2.7.x through 4.0.x when DevTools remote feature is enabled, allowing adjacent network attackers to recover the shared secret and execute arbitrary code through a timing-based cryptographic attack. Organizations running Spring Boot in production with DevTools remote restart enabled face code execution risk; however, real-world exposure is limited to attackers on the same network segment and requires this feature to be explicitly enabled-a configuration not recommended for production use.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If patching cannot be completed within 7 days: immediately disable Spring Boot DevTools remote restart feature in all production and staging environments; implement network-level access controls to restrict traffic from non-development network segments to remote DevTools ports (default: 8000); verify DevTools is not exposed to untrusted networks through firewall rules or security group policies.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:spring:spring_boot:*:*:*:*:*:*:*:*

More in Spring

View all
CVE-2025-70982 CRITICAL POC
9.9 Jan 26

Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat

CVE-2026-22739 HIGH POC
8.6 Mar 24

Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u

CVE-2026-59415 CRITICAL
10.0 Nov 24

Document ID injection in Spring AI's TypesenseVectorStore delete path lets a remote unauthenticated caller who controls

CVE-2025-41242 MEDIUM POC
5.9 Aug 18

Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant

CVE-2025-70983 CRITICAL
9.9 Jan 23

SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t

CVE-2026-41699 CRITICAL
9.8 Jun 11

Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at

CVE-2026-59313 CRITICAL
9.8 Aug 27

Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across

CVE-2026-22738 CRITICAL
9.8 Mar 27

Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin

CVE-2026-41855 CRITICAL
9.8 Jun 09

Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso

CVE-2025-41232 CRITICAL
9.1 May 21

Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity

CVE-2026-59283 CRITICAL
9.1 Aug 27

Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca

CVE-2026-40982 CRITICAL
9.1 May 07

Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files

Vendor StatusVendor

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