High, CVSS 7.4MavenPublished
Spring Security Does Not Enforce Password Length
CVE-2025-22228 · GHSA-mg83-c7gq-rv5c
- Affected
- Maven org.springframework.security:spring-security-crypto >= 6.3.0, < 6.3.8; >= 6.4.0, < 6.4.4; >= 6.2.0, <= 6.2.9; >= 6.1.0, <= 6.1.13; >= 6.0.0, <= 6.0.15; >= 5.8.0, <= 5.8.17; <= 5.7.15
- Fixed in
- 6.2.106.3.85.7.166.0.165.8.186.1.146.4.4· Vendor fix available
- Issue
- BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.
Recommended action: Upgrade to 6.4.4, 6.3.8, 6.2.10 or 4 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.