Timing Attack Affecting org.springframework.boot:spring-boot-devtools package, versions [,3.5.14)[4.0.0-M1,4.0.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKBOOT-16191381
  • published24 Apr 2026
  • disclosed23 Apr 2026
  • creditUnknown

Introduced: 23 Apr 2026

CVE-2026-40972  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade org.springframework.boot:spring-boot-devtools to version 3.5.14, 4.0.6 or higher.

Overview

Affected versions of this package are vulnerable to Timing Attack in DevTool due to comparing the user-provided "remote secret" against the actual secret using standard string comparison logic (like String.equals() or ==). Standard string comparisons are not constant-time. They evaluate character by character and exit immediately (return false) as soon as they find the first mismatch. Because the comparison stops early upon a mismatch, it takes slightly longer to reject a guess that gets the first few characters correct than a guess that is completely wrong. An attacker on the same network can measure these microsecond differences to deduce the secret character by character.

CVSS Base Scores

version 4.0
version 3.1