CVE-2025-22228: high-severity vulnerability in Spring Security
CVE-2025-22228: Spring Security BCryptPasswordEncoder does not enforce maximum password length
Published · Updated
Follow this CVE+ Monitor Spring Security+ Monitor org.springframework.security:spring-security-crypto
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.4epss 0.6%
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 SecurityRelated CVEs — Spring Security
In the same product, most dangerous first.
CVE-2019-3795LOWInsecure Randomness When Using a SecureRandom Instance Constructed by Spring SecurityEPSS 1.9%CVE-2019-11272—PlaintextPasswordEncoder authenticates encoded passwords that are nullEPSS 1.4%CVE-2024-22234HIGHCVE-2024-22234: Broken Access Control in Spring Security With Direct Use of isFullyAuthenticatedEPSS 0.7%CVE-2025-41232CRITICALCVE-2025-41232: Spring Security authorization bypass for method security annotations on private methodsEPSS 0.6%CVE-2025-22223MEDIUMCVE-2025-22223EPSS 0.5%CVE-2026-59270CRITICALSpring Security embedded UnboundID LDAP server exposes well-known administrative bind DN on all network interfacesEPSS 0.4%