CVE-2022-22978
Authorization bypass in Spring Security
Reported by vmware · Published May 19, 2022
spring-security-web is fixed in 5.6.4, 5.5.7 and 5.4.11 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.security:spring-security-web | Maven Central | 5.6.4, 5.5.7, 5.4.11 |
| spring_security | vmware | 5.6.4, 5.5.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Spring Security | Spring security versions 5.4.x prior to 5.4.11+,5.5.x prior to 5.5.7+,5.6.x prior to 5.6.4+ and all earlier unsupported versions |
| n/a | Spring Security | 5.4.x |
| Maven | org.springframework.security:spring-security-web | 5.5.0, 5.6.0, 0 |
Timeline
- May 17, 2022 CVE Published
- May 20, 2022 EPSS Score (30 in total, the first dated here)
- Jul 15, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (69 in total, the first dated here)
- Jul 5, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (68 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-22978
vulnetix vdb fixes CVE-2022-22978
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-22978/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-22978 advisory
- https://github.com/advisories/GHSA-hh32-7344-cg2f advisory
- https://github.com/anchore/grype/issues/2158 url
- https://github.com/spring-projects/spring-security url
- https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java url
- https://security.netapp.com/advisory/ntap-20220707-0003 advisory
- https://tanzu.vmware.com/security/cve-2022-22978 url
- https://www.oracle.com/security-alerts/cpujul2022.html url