Vulnerability · Published May 19, 2022 · Assigned by vmware
CVE-2022-22978
Critical 9.8
In plain English
A critical-severity incorrect authorization in Spring Security. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 12.4% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-core | 5.6.4 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-core | 5.5.7 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-core | 5.4.11 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | 5.6.4 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | 5.5.7 | GHSA-hh32-7344-cg2f |
| Maven | org.springframework.security:spring-security-web | 5.4.11 | GHSA-hh32-7344-cg2f |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2022-22978 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2022-22978 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2022-22978 |
Affected products (as reported)
| 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 |
Weakness: CWE-863