{"cve":"CVE-2016-5007","nvd":{"published":"2017-05-25T17:29:00.740","modified":"2026-06-17T00:48:36.203","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-264"],"references":["http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html","http://www.securityfocus.com/bid/91687","https://pivotal.io/security/cve-2016-5007","https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"],"products":["pivotal_software:spring_framework","vmware:spring_framework","vmware:spring_security"],"source":"nvd","synced_at":"2026-10-19T20:43:44.556243339+00:00"},"epss":{"cve":"CVE-2016-5007","score":0.02802,"percentile":0.86477,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8crv-49fr-2h6j","url":"https://osv.dev/vulnerability/GHSA-8crv-49fr-2h6j","summary":"Spring Security and Spring Framework may not recognize certain paths that should be protected","modified":"2024-12-02T05:54:00.856162Z","packages":[{"ecosystem":"Maven","name":"org.springframework:spring-core","purl":"pkg:maven/org.springframework/spring-core","ranges":["<4.3.1"],"fixed":["4.3.1"]},{"ecosystem":"Maven","name":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","ranges":["<4.1.1"],"fixed":["4.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}