spring-projects/spring-security · Security
Authorization bypass in Spring Security
- GHSA ID
- GHSA-hh32-7344-cg2f
- CVE ID
- CVE-2022-22978
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-285 · Improper Authorization
- CWE-863 · Incorrect Authorization
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-22978 ↗
- https://tanzu.vmware.com/security/cve-2022-22978 ↗
- https://www.oracle.com/security-alerts/cpujul2022.html ↗
- https://spring.io/security/cve-2022-22978 ↗
- https://security.netapp.com/advisory/ntap-20220707-0003 ↗
- https://github.com/anchore/grype/issues/2158 ↗
- https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java ↗
- https://github.com/advisories/GHSA-hh32-7344-cg2f ↗