Spring Security - BCrypt Password Encoder maximum password length breaks timing attack mitigation
Spring Security
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Spring Spring Security |
| No fix yet |
Original 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.