CRITICAL9.1
GHSA-7phw-cxx7-q9vq
Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch
Quick fix
GHSA-7phw-cxx7-q9vq — org.springframework:spring: upgrade to the fixed version with the command below.
# pom.xml: bump <version>6.0.7</version> for org.springframework:springDetails
Spring Framework running version 6.0.0 - 6.0.6 or 5.3.0 - 5.3.25 using "**" as a pattern in Spring Security configuration with the mvcRequestMatcher creates a mismatch in pattern matching between Spring Security and Spring MVC, and the potential for a security bypass.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.springframework:spring
Introduced in:
6.0.0Fixed in: 6.0.7Fix
# pom.xml: bump <version>6.0.7</version> for org.springframework:springMaven/org.springframework:spring
Introduced in:
5.3.0Fixed in: 5.3.26Fix
# pom.xml: bump <version>5.3.26</version> for org.springframework:springMaven/org.springframework:spring-webmvc
Introduced in:
6.0.0Fixed in: 6.0.7Fix
# pom.xml: bump <version>6.0.7</version> for org.springframework:spring-webmvcMaven/org.springframework:spring-webmvc
Introduced in:
5.3.0Fixed in: 5.3.26Fix
# pom.xml: bump <version>5.3.26</version> for org.springframework:spring-webmvcReferences
- https://nvd.nist.gov/vuln/detail/CVE-2023-20860[ADVISORY]
- https://github.com/spring-projects/spring-framework/commit/202fa5cdb3a3d0cfe6967e85fa167d978244f28a[WEB]
- https://github.com/spring-projects/spring-framework[PACKAGE]
- https://security.netapp.com/advisory/ntap-20230505-0006[WEB]
- https://spring.io/security/cve-2023-20860[WEB]