CVE-2016-5007
Spring Security and Spring Framework may not recognize certain paths that should be protected
Description
Both Spring Security 3.2.x, 4.0.x, 4.1.0 and the Spring Framework 3.2.x, 4.0.x, 4.1.x, 4.2.x (as well as other unsupported versions) rely on URL pattern mappings for authorization and for mapping requests to controllers respectively. Differences in the strictness of the pattern matching mechanisms, for example with regards to space trimming in path segments, can lead Spring Security to not recognize certain paths as not protected that are in fact mapped to Spring MVC controllers that should be protected. The problem is compounded by the fact that the Spring Framework provides richer features with regards to pattern matching as well as by the fact that pattern matching in each Spring Security and the Spring Framework can easily be customized creating additional differences.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-core | < 4.3.1 | 4.3.1 |
| org.springframework.security » spring-security-core | < 4.1.1 | 4.1.1 |
Blast radius
73% of the dependent artifacts (26,946) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 132,906 |
| 2 hops | 609,681 |
| 3 hops | 846,971 |
| 4 hops | 281,375 |
| 5 hops | 104,250 |
| 6 hops | 40,093 |
Most used dependents
- org.springframework.boot » spring-boot-starter-test20,993 usages
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-context18,670 usages
- org.springframework.boot » spring-boot-configuration-processor15,807 usages
- org.springframework.boot » spring-boot-autoconfigure15,709 usages
- org.springframework.boot » spring-boot-starter12,901 usages
- org.springframework » spring-test12,234 usages
- org.springframework » spring-web12,086 usages
- org.springframework » spring-beans8,721 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- org.springframework » spring-webmvc7,538 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- org.springframework » spring-jdbc5,611 usages
- org.springframework.boot » spring-boot5,107 usages
- org.springframework » spring-tx5,095 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
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2016-5007
- Webhttps://github.com/spring-projects/spring-security/issues/3964
- Webhttps://github.com/spring-projects/spring-framework/commit/a30ab30e4e9ae021fdda04e9abfc228476b846b5
- Webhttps://github.com/spring-projects/spring-security/commit/e4c13e3c0ee7f06f59d3b43ca6734215ad7d8974
- Advisoryhttps://github.com/advisories/GHSA-8crv-49fr-2h6j
- Webhttps://pivotal.io/security/cve-2016-5007
- Webhttps://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- Webhttp://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- Webhttp://www.securityfocus.com/bid/91687
