Authorization bypass in Spring Security
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.springframework.security:spring-security-core | >= 5.5.0, < 5.5.7, >= 5.6.0, < 5.6.4, < 5.4.11 | 5.5.7, 5.6.4, 5.4.11 |
| Java / Kotlin (Maven) | org.springframework.security:spring-security-web | >= 5.5.0, < 5.5.7, >= 5.6.0, < 5.6.4, < 5.4.11 | 5.5.7, 5.6.4, 5.4.11 |
References
- https://nvd.nist.gov/vuln/detail/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://security.netapp.com/advisory/ntap-20220707-0003
- https://spring.io/security/cve-2022-22978
- https://tanzu.vmware.com/security/cve-2022-22978
- https://www.oracle.com/security-alerts/cpujul2022.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-285, CWE-863- Platform
- Java / Kotlin (Maven)
- Package
org.springframework.security:spring-security-core, org.springframework.security:spring-security-web- Disclosed
- 20.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-hh32-7344-cg2f - CC BY 4.0
Vulnerability history: org.springframework.security:spring-security-core
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 10.2018 04.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 11
- Medium 15
- Low 1
Disclosures per year
- 2018: 3
- 2019: 2
- 2020: 4
- 2021: 1
- 2022: 10
- 2023: 1
- 2024: 4
- 2025: 3
- 2026: 3
-
Authorization bypass in Spring Security this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.