Intel

AIKIDO-2026-414730

spring-security-core is vulnerable to Observable Timing Discrepancy

Observable Timing DiscrepancyCVE-2026-59276 Published 6 days ago

59

Medium Risk

This Affects:

JAVAspring-security-core
5.7.0 - 7.0.6
Fixed in 7.0.7
7.1.0 - 7.1.0
Fixed in 7.1.1
Are you affected? Scan for Free

TL;DR

spring-security-core compares some secret values with String.equals() instead of a constant-time method. Response time then leaks how many leading characters matched. An attacker who can send many guesses and measure latency may recover Digest responses, token keys, or Password4j secrets character by character. The patch compares those values in constant time.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use Digest authentication, KeyBasedPersistenceTokenService, or Password4j password encoders.

Background info

spring-security-core is vulnerable to Observable Timing Discrepancy in versions 5.7.0 - 7.0.6 and 7.1.0 - 7.1.0.

How to fix this

Upgrade the org.springframework.security:spring-security-core library to the patch version.