Skip to main content
← All vulnerabilities
CVE-2025-22234GHSA-VQXH-445G-37FC

Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.3.9, 6.4.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Spring Spring Security

    5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4

  • org.springframework.security:spring-security-coreMaven

    From 6.3.8 · fixed in 6.3.9

  • org.springframework.security:spring-security-coreMaven

    From 6.4.4 · fixed in 6.4.5

References 1

spring.io