CVE-2016-5007
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 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.
Weakness
Timeline
- 2017-05-25Published by the CNA17:00 UTC
- 2018-10-17GitHub advisory published (GHSA-8crv-49fr-2h6j)510 days after publication
Exploit and advisory records
GitHub advisory GHSA-8crv-49fr-2h6j, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.springframework.security:spring-security-core | before 4.1.1 | 4.1.1 |
| Maven org.springframework:spring-core | before 4.3.1 | 4.3.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pivotal_software spring_framework | 3.2.0no fix listed4.0.0no fix listed4.1.0no fix listed4.2.0no fix listed | not listednot listednot listednot listed |
| vmware spring_framework | 3.2.1no fix listed3.2.10no fix listed3.2.11no fix listed3.2.12no fix listed3.2.13no fix listed(+40 more) | not listednot listednot listednot listednot listed |
| vmware spring_security | 3.2.0no fix listed3.2.1no fix listed3.2.10no fix listed3.2.2no fix listed3.2.3no fix listed(+12 more) | not listednot listednot listednot listednot listed |
References
- https://pivotal.io/security/cve-2016-5007
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- http://www.securityfocus.com/bid/91687
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2016-5007'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2016-5007'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2016-5007'curl 'https://api.contrastcyber.com/cve_products/CVE-2016-5007'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).