CVE-2022-22978
Authorization bypass in Spring Security
Description
In Spring Security versions 5.5.6 and 5.5.7 and older unsupported versions, RegexRequestMatcher can easily be misconfigured to be bypassed on some servlet containers. Applications using RegexRequestMatcher with . in the regular expression are possibly vulnerable to an authorization bypass.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-core | < 5.4.11>= 5.5.0, < 5.5.7>= 5.6.0, < 5.6.4 | 5.4.11, 5.5.7, 5.6.4 |
| org.springframework.security » spring-security-web | < 5.4.11>= 5.5.0, < 5.5.7>= 5.6.0, < 5.6.4 | 5.4.11, 5.5.7, 5.6.4 |
Blast radius
100% of the dependent artifacts (14,509) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 178,302 |
| 2 hops | 537,267 |
| 3 hops | 578,037 |
| 4 hops | 232,429 |
| 5 hops | 127,468 |
| 6 hops | 43,579 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,606 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 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
- org.apache.hbase » hbase-client960 usages
- com.atlassian.jira » jira-api893 usages
- org.apache.spark » spark-mllib831 usages
- com.atlassian.confluence » confluence724 usages
- org.apache.hive » hive-exec699 usages
- org.apache.hbase » hbase-common674 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.hbase » hbase-server643 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-22978
- Webhttps://github.com/anchore/grype/issues/2158
- Packagehttps://github.com/spring-projects/spring-security
- Webhttps://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java
- Webhttps://security.netapp.com/advisory/ntap-20220707-0003
- Webhttps://spring.io/security/cve-2022-22978
- Webhttps://tanzu.vmware.com/security/cve-2022-22978
- Webhttps://www.oracle.com/security-alerts/cpujul2022.html
