CRITICAL9.8
GHSA-hh32-7344-cg2f
Authorization bypass in Spring Security
Quick fix
GHSA-hh32-7344-cg2f — org.springframework.security:spring-security-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>5.5.7</version> for org.springframework.security:spring-security-coreDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.springframework.security:spring-security-core
Introduced in:
5.5.0Fixed in: 5.5.7Fix
# pom.xml: bump <version>5.5.7</version> for org.springframework.security:spring-security-coreMaven/org.springframework.security:spring-security-core
Introduced in:
5.6.0Fixed in: 5.6.4Fix
# pom.xml: bump <version>5.6.4</version> for org.springframework.security:spring-security-coreMaven/org.springframework.security:spring-security-core
Introduced in:
0Fixed in: 5.4.11Fix
# pom.xml: bump <version>5.4.11</version> for org.springframework.security:spring-security-coreMaven/org.springframework.security:spring-security-web
Introduced in:
5.5.0Fixed in: 5.5.7Fix
# pom.xml: bump <version>5.5.7</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
5.6.0Fixed in: 5.6.4Fix
# pom.xml: bump <version>5.6.4</version> for org.springframework.security:spring-security-webMaven/org.springframework.security:spring-security-web
Introduced in:
0Fixed in: 5.4.11Fix
# pom.xml: bump <version>5.4.11</version> for org.springframework.security:spring-security-webReferences
- https://nvd.nist.gov/vuln/detail/CVE-2022-22978[ADVISORY]
- https://github.com/anchore/grype/issues/2158[WEB]
- https://github.com/spring-projects/spring-security[PACKAGE]
- https://github.com/spring-projects/spring-security/blob/main/web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java[WEB]
- https://security.netapp.com/advisory/ntap-20220707-0003[WEB]
- https://spring.io/security/cve-2022-22978[WEB]
- https://tanzu.vmware.com/security/cve-2022-22978[WEB]
- https://www.oracle.com/security-alerts/cpujul2022.html[WEB]