Spring Security Does Not Enforce Password Length
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-22228US | — | — | ||
BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same. | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/spring-projects/spring-securityPACKAGE
- https://github.com/spring-projects/spring-security/commit/46f0dc6dfc8402cd556c598fdf2d31f9d46cdbf3WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22228ADVISORY
- https://security.netapp.com/advisory/ntap-20250425-0009WEB
- https://spring.io/security/cve-2025-22228WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan