CVE-2025-22228
High
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.
SeverityHigh
CVSS7.4
Exploit probability—
ProductOrg.springframework.security:spring-security-crypto
PublishedMar 20, 2025
First seenMar 20, 2025
Weakness typeCWE-287Improper authentication
How to fix
Update
- org.springframework.security:spring-security-crypto6.3.8, 6.4.4, 6.2.10, 6.1.14, 6.0.16, 5.8.18, 5.7.16 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-cryptoMaven | 6.3.0 ≤ v < 6.3.8, 6.4.0 ≤ v < 6.4.4, 6.2.0 ≤ v < 6.2.10, 6.1.0 ≤ v < 6.1.14, 6.0.0 ≤ v < 6.0.16, 5.8.0 ≤ v < 5.8.18, v < 5.7.16 | 6.3.8, 6.4.4, 6.2.10, 6.1.14, 6.0.16, 5.8.18, 5.7.16 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.