CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.4epss 0.6%
exploitation probability
0.6%top 53% of all CVEs
observed exploitation
nono source reports it
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
Spring · Spring Security