CVE-2022-22976
Integer overflow in BCrypt class in Spring Security
Description
Spring Security versions 5.5.x prior to 5.5.7, 5.6.x prior to 5.6.4, and earlier unsupported versions contain an integer overflow vulnerability. When using the BCrypt class with the maximum work factor (31), the encoder does not perform any salt rounds, due to an integer overflow error. The default settings are not affected by this CVE.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-core | >= 5.2.0.RELEASE, < 5.5.7>= 5.6.0, < 5.6.4 | 5.5.7, 5.6.4 |
Blast radius
40% of the dependent artifacts (2,154) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 50,870 |
| 2 hops | 93,081 |
| 3 hops | 74,471 |
| 4 hops | 44,593 |
| 5 hops | 19,682 |
| 6 hops | 3,863 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.springframework.security » spring-security-web2,133 usages
- org.springframework.security » spring-security-config2,063 usages
- org.springframework.security » spring-security-test1,308 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- com.vaadin » vaadin-maven-plugin600 usages
- com.atlassian.jira » jira-core554 usages
- org.springframework.security » spring-security-cas550 usages
- org.springframework.security » spring-security-oauth2-jose508 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.security » spring-security-oauth2-client481 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server463 usages
- org.springframework.security » spring-security-ldap457 usages
- org.springframework.boot » spring-boot-starter-oauth2-client446 usages
- org.apereo.cas » cas-server-core-configuration-api442 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-2022-22976
- Webhttps://github.com/spring-projects/spring-security/commit/388a7b62b906bd56deadb7ca45248fa1a63bdf12
- Webhttps://github.com/spring-projects/spring-security/commit/a40f73521c0dd88b879ff6165d280e78bdf8154f
- Packagehttps://github.com/spring-projects/spring-security
- Webhttps://security.netapp.com/advisory/ntap-20220707-0003
- Webhttps://tanzu.vmware.com/security/cve-2022-22976
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
