CVE-2025-22234: Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation
Vulnerability summary
CVE-2025-22234 is a medium (CVSS 5.3) Observable Timing Discrepancy vulnerability in spring spring security. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.2% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 22-01-2026PublishedVulnerability first disclosed.
- 22-01-2026Last modifiedVulnerability information updated.
Description
The fix applied in CVE-2025-22228 inadvertently broke the timing attack mitigation implemented in DaoAuthenticationProvider. This can allow attackers to infer valid usernames or other authentication behavior via response-time differences under certain configurations.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Org.springframework.security1 product
- spring-security-core≥ 6.3.8, < 6.3.9 | ≥ 6.4.4, < 6.4.5
Spring1 product
- spring security5.7.16 | 5.8.18 | 6.0.16 | 6.1.14 | 6.2.10 | 6.3.8 | 6.4.4
2 vendors · 2 products
References
4 links- spring.io/security/cve-2025-22234/Vendor Advisory