CVE-2022-22978: Critical severity VMware Spring Security vulnerability
A flaw was found in Spring Security. When using RegexRequestMatcher, an easy misconfiguration can bypass some servlet containers. Applications using RegexRequestMatcher with . in the regular expression are possibly vulnerable to an authorization bypass.
Other sources
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. https://tanzu.vmware.com/security/cve-2022-22978
— Red Hat
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.387.3.1684911776-3.el8 - Upgrade
Upgrade
redhat/spring-securityto a version that resolves this vulnerability.Fixed in 5.5.7 - Upgrade
Upgrade
redhat/spring-securityto a version that resolves this vulnerability.Fixed in 5.6.4 - Upgrade
Upgrade
redhat/spring-securityto a version that resolves this vulnerability.Fixed in 5.7.0 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-webto a version that resolves this vulnerability.Fixed in 5.4.11 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-webto a version that resolves this vulnerability.Fixed in 5.6.4 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-webto a version that resolves this vulnerability.Fixed in 5.5.7 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-coreto a version that resolves this vulnerability.Fixed in 5.4.11 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-coreto a version that resolves this vulnerability.Fixed in 5.5.7 - Upgrade
Upgrade
maven/org.springframework.security:spring-security-coreto a version that resolves this vulnerability.Fixed in 5.6.4
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2022-22978?
CVE-2022-22978 is a vulnerability found in Spring Security that can be easily misconfigured to be bypassed on some servlet containers.
What is the severity of CVE-2022-22978?
CVE-2022-22978 has a severity rating of 9.8 (Critical).
How does CVE-2022-22978 affect Spring Security?
CVE-2022-22978 affects Spring Security versions prior to 5.4.11+, 5.5.7+, 5.6.4+ and older unsupported versions.
How can CVE-2022-22978 be exploited?
CVE-2022-22978 can be exploited by misconfiguring RegexRequestMatcher with `.` in the regular expression.
How can I fix CVE-2022-22978?
To fix CVE-2022-22978, update to Spring Security version 5.4.11+, 5.5.7+, 5.6.4+, or a later supported version.