CVE-2023-20860
Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch
Description
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring | >= 5.3.0, < 5.3.26>= 6.0.0, < 6.0.7 | 5.3.26, 6.0.7 |
| org.springframework » spring-webmvc | >= 5.3.0, < 5.3.26>= 6.0.0, < 6.0.7 | 5.3.26, 6.0.7 |
Blast radius
51% of the dependent artifacts (4,778) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 53,384 |
| 2 hops | 83,289 |
| 3 hops | 81,341 |
| 4 hops | 40,259 |
| 5 hops | 12,744 |
| 6 hops | 3,803 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- com.atlassian.confluence » confluence724 usages
- org.redisson » redisson-spring-boot-starter574 usages
- org.openmrs.web » openmrs-web521 usages
- org.apereo.inspektr » inspektr-support-spring515 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.springframework.boot » spring-boot-starter-data-rest350 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.geoserver » gs-main299 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
- org.apereo.cas » cas-server-core-services280 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-20860 | nvd.nist.gov |
| Package | spring-projects/spring-framework | github.com |
| Web | spring-projects/spring-framework commit 202fa5c | github.com |
| Web | advisory/ntap-20230505-0006 | security.netapp.com |
| Web | security/cve-2023-20860 | spring.io |
