{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-22978","id":"CVE-2022-22978","title":"Authorization bypass in Spring Security","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.","descriptionLong":"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.","published":"2022-05-19T00:00:00.000Z","updated":"2026-10-28T02:31:03.451240759Z","reserved":"2022-01-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"vmware","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["Spring Security"],"affectedProducts":[{"vendor":"n/a","product":"Spring Security","defaultStatus":null,"versions":[{"version":"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","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","ranges":[">=5.5.0 <5.5.7",">=5.6.0 <5.6.4","<5.4.11"],"fixed":["5.5.7","5.6.4","5.4.11"],"advisory":"GHSA-hh32-7344-cg2f"},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","ranges":[">=5.5.0 <5.5.7",">=5.6.0 <5.6.4","<5.4.11"],"fixed":["5.5.7","5.6.4","5.4.11"],"advisory":"GHSA-hh32-7344-cg2f"}],"cwes":["CWE-863","CWE-285"],"aliases":["GHSA-hh32-7344-cg2f"],"references":[{"url":"https://spring.io/security/cve-2022-22978","tags":["x_transferred","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/22xxx/CVE-2022-22978.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22978","tags":["advisory"]},{"url":"https://github.com/anchore/grype/issues/2158","tags":["web"]},{"url":"https://github.com/spring-projects/spring-security","tags":["package"]},{"url":"https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20220707-0003","tags":["web"]},{"url":"https://tanzu.vmware.com/security/cve-2022-22978","tags":["web"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.12351,"epssPercentile":0.96284,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-22978","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22978","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-22978","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hh32-7344-cg2f","ok":true,"note":"GHSA-hh32-7344-cg2f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-22978","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["spring"],"critical":["CVSS 9.8 in a widely used technology","EPSS 12% with CVSS 9.8"],"attention":null}