Timing Attack Affecting org.springframework.security:spring-security-crypto package, versions [6.3.8,6.3.9)[6.4.4,6.4.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-ORGSPRINGFRAMEWORKSECURITY-9789380
  • published23 Apr 2025
  • disclosed22 Apr 2025
  • creditJonas Robl

Introduced: 22 Apr 2025

NewCVE-2025-22234  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-crypto to version 6.3.9, 6.4.5 or higher.

Overview

org.springframework.security:spring-security-crypto is a spring-security-crypto library for Spring Security.

Affected versions of this package are vulnerable to Timing Attack due to an unintentional bypass for DaoAuthenticationProvider constant time controls, which was caused by the fix for the password length vulnerability described in (CVE-2025-22228)[https://security.snyk.io/vuln/SNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-9486467].

Note: Patches have also been issued for older versions of Enterprise Support packages.

CVSS Base Scores

version 4.0
version 3.1