Timing attack in Spring Boot DevTools remote secret comparison
CVE-2026-40972 is a timing side-channel vulnerability in Spring Boot DevTools remote access. The flaw is in the spring-boot-devtools module, specifically the org.springframework.boot.devtools.remote.server.HttpHeaderAccessManager class, where the configured DevTools remote secret was compared against an attacker-supplied HTTP header using Java's non-constant-time String.equals(). Because String.equals() short-circuits on the first mismatched character, it leaks timing differences that can allow an adjacent-network attacker to infer the secret incrementally, character by character. If the attacker successfully reconstructs the remote secret, they can authenticate to the DevTools remote endpoint and use the live reload mechanism to upload changed class files. Affected versions are Spring Boot 4.0.0 through 4.0.5, 3.5.0 through 3.5.13, 3.4.0 through 3.4.15, 3.3.0 through 3.3.18, and 2.7.0 through 2.7.32; unsupported versions are also affected per the vendor advisory. The issue was fixed by replacing String.equals() with MessageDigest.isEqual(), storing the expected secret as a UTF-8 byte array, and adding a null check before converting the provided secret to bytes.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A timing side-channel vulnerability in Spring Boot DevTools remote access manager that allows an adjacent network attacker to recover the remote secret and then achieve remote code execution via the DevTools live reload mechanism.
A Spring Boot DevTools vulnerability involving remote secret comparison timing attacks, mentioned as also fixed in Spring Boot 4.0.6.
A Spring Boot DevTools vulnerability where remote secret comparison is susceptible to timing attacks.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.