Spring Boot
CVE-2026-40972
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain adjacent network access
-
DeliverySend repeated DevTools auth requests
-
ExploitMeasure response timing variations
-
InstallStatistically recover shared secret
-
C2Authenticate to DevTools endpoint
-
ExecuteUpload malicious class file
-
ImpactAchieve 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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
AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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
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
Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Document ID injection in Spring AI's TypesenseVectorStore delete path lets a remote unauthenticated caller who controls
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
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
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
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
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
GHSA-56v8-86gj-66jp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB