CVE-2025-22228Published Mar 20, 2025 · Mar 20Updated Jun 17
CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
Spring Security
High7.4
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Spring Spring Security |
| No fix yet |
Original description
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.