{"id":"CVE-2022-22978","published":"2022-05-19T00:00:00Z","modified":"2024-08-03T03:28:42Z","title":"In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.12351,"percentile":0.96295,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://spring.io/security/cve-2022-22978","tags":[]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":19.26},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":5,"skipped":2,"earliest":"2022-05-31","earliestUrl":"https://github.com/DeEpinGh0st/CVE-2022-22978","repos":[{"name":"DeEpinGh0st/CVE-2022-22978","url":"https://github.com/DeEpinGh0st/CVE-2022-22978","stars":15,"created":"2022-05-31"},{"name":"ducluongtran9121/CVE-2022-22978-PoC","url":"https://github.com/ducluongtran9121/CVE-2022-22978-PoC","stars":13,"created":"2022-06-04"},{"name":"aeifkz/CVE-2022-22978","url":"https://github.com/aeifkz/CVE-2022-22978","stars":5,"created":"2022-07-13"},{"name":"umakant76705/CVE-2022-22978","url":"https://github.com/umakant76705/CVE-2022-22978","stars":2,"created":"2023-03-01"},{"name":"wan9xx/CVE-2022-22978-demo","url":"https://github.com/wan9xx/CVE-2022-22978-demo","stars":0,"created":"2024-05-17"}]},"first":{"date":"2022-05-31","source":"PoC-in-GitHub","url":"https://github.com/DeEpinGh0st/CVE-2022-22978"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"Spring Security","versions":["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"]}],"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=5.5.0, <5.5.7",">=5.6.0, <5.6.4","<5.4.11"],"patched":["5.5.7","5.6.4","5.4.11"],"from":["GHSA-hh32-7344-cg2f"],"provenance":"source"},{"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","vulnerableRanges":[">=5.5.0, <5.5.7",">=5.6.0, <5.6.4","<5.4.11"],"patched":["5.5.7","5.6.4","5.4.11"],"from":["GHSA-hh32-7344-cg2f"],"provenance":"source"}],"summary":{"text":"The flaw lies in Spring Security's RegexRequestMatcher, a component used to match HTTP requests against regular expressions for access control, where it is easy to misconfigure in a way that can be bypassed on some servlet containers. An attacker able to send requests to an application that uses RegexRequestMatcher with a . in its regular expression could potentially bypass authorization checks, though the exact conditions such as network access, authentication, or configuration beyond that pattern are not specified.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:49:58Z"},"euvd":{"id":"EUVD-2022-4151","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-22112","published":"2021-02-23","fixed":"5.4.4","kev":false,"link":{"from":"CVE-2021-22112","to":"CVE-2022-22978","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-web","fromFixed":"5.4.4","toFixed":"5.4.11","daysApart":450}]}},{"cve":"CVE-2022-22978","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2024-38821","published":"2024-10-28","fixed":"6.3.4","kev":false},{"cve":"CVE-2026-47838","published":"2026-06-09","fixed":"6.5.11","kev":false},{"cve":"CVE-2026-22732","published":"2026-03-19","fixed":"7.0.4","kev":false}],"package":"Maven:org.springframework.security:spring-security-web"}}