HIGH 7.4
CVE-2025-22228
Spring Security Does Not Enforce Password Length
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-crypto | < 5.7.16>= 5.8.0, < 5.8.18>= 6.0.0, < 6.0.16>= 6.1.0, < 6.1.14>= 6.2.0, < 6.2.10>= 6.3.0, < 6.3.8>= 6.4.0, < 6.4.4 | 5.7.16, 5.8.18, 6.0.16, 6.1.14, 6.2.10, 6.3.8, 6.4.4 |
Blast radius
1affected artifacts
282affected versions
13,791dependent artifacts (est.)
856,600dependent versions
59% of the dependent artifacts (8,243) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 72,575 |
| 2 hops | 149,469 |
| 3 hops | 249,837 |
| 4 hops | 210,337 |
| 5 hops | 100,673 |
| 6 hops | 73,709 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.security » spring-security-core3,214 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.security » spring-security-config2,063 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.springframework.cloud » spring-cloud-context1,345 usages
- org.springframework.security » spring-security-test1,308 usages
- org.springframework.cloud » spring-cloud-commons1,205 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- org.springframework.cloud » spring-cloud-starter-bootstrap1,056 usages
- org.springframework.cloud » spring-cloud-starter-config978 usages
- com.atlassian.confluence » confluence724 usages
- org.springframework.cloud » spring-cloud-starter-netflix-eureka-client684 usages
- com.vaadin » vaadin-core640 usages
- com.vaadin » vaadin-maven-plugin600 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-22228
- Webhttps://github.com/spring-projects/spring-security/commit/46f0dc6dfc8402cd556c598fdf2d31f9d46cdbf3
- Packagehttps://github.com/spring-projects/spring-security
- Webhttps://security.netapp.com/advisory/ntap-20250425-0009
- Webhttps://spring.io/security/cve-2025-22228
