CVE-2022-22978: Critical severity 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.
Spring Security could allow a remote attacker to bypass security restrictions, caused by a flaw in the RegexRequestMatcher component. By misconfiguring RegexRequestMatcher with . in the regular expression, an attacker could exploit this vulnerability to bypass authorization and obtain access.
— IBM
Affected Software
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.