NetSight
high7.4

CVE-2025-22228

Spring Security Does Not Enforce Password Length

Impact

BCryptPasswordEncoder.matches(CharSequence,String) will incorrectly return true for passwords larger than 72 characters as long as the first 72 characters are the same.

Affected packages

EcosystemPackageAffectedFixed in
mavenorg.springframework.security:spring-security-crypto>= 6.3.0, < 6.3.86.3.8

Weakness classification

References