CVE-2022-22978
springframework: Authorization Bypass in RegexRequestMatcher
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
Description
In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ 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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.springframework.security:spring-security-core, org.springframework.security:spring-security-web | 5.5.7, 5.6.4, 5.4.11 |
| Red Hat | jenkins | no fix listed |
Show all 3 entries from 2 sources
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.springframework.security:spring-security-core | 5.5.7, 5.6.4, 5.4.11 |
| maven::GitHub Security Advisory Maven | org.springframework.security:spring-security-web | 5.5.7, 5.6.4, 5.4.11 |
| Red Hat | jenkins | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2022-22978
- https://github.com/anchore/grype/issues/2158
- https://github.com/spring-projects/spring-security
- https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java
- https://nvd.nist.gov/vuln/detail/CVE-2022-22978
- https://security.netapp.com/advisory/ntap-20220707-0003
- https://spring.io/security/cve-2022-22978
- https://tanzu.vmware.com/security/cve-2022-22978