Intel

AIKIDO-2025-10266

spring-security-crypto is vulnerable to Observable Timing Discrepancy

Observable Timing DiscrepancyCVE-2025-22234

60

Medium Risk

This Affects:

JAVAspring-security-crypto
5.7.16 - 5.7.16
Fixed in 5.7.17
5.8.18 - 5.8.18
Fixed in 5.8.19
6.0.16 - 6.0.16
Fixed in 6.0.17
6.1.14 - 6.1.14
Fixed in 6.1.15
6.2.10 - 6.2.10
Fixed in 6.2.11
6.3.8 - 6.3.8
Fixed in 6.3.9
6.4.4 - 6.4.4
Fixed in 6.4.5

TL;DR

Affected versions are vulnerable to a regression where the fix for CVE-2025-22228 unintentionally disables the timing attack mitigation implemented in DaoAuthenticationProvider.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

spring-security-crypto is vulnerable to Observable Timing Discrepancy in versions 5.7.16 - 5.7.16, 5.8.18 - 5.8.18, 6.0.16 - 6.0.16, 6.1.14 - 6.1.14, 6.2.10 - 6.2.10, 6.3.8 - 6.3.8 and 6.4.4 - 6.4.4.

How to fix this

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