CVE-2016-5007 · dell
CVE-2016-5007
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.
Published 2017-05-25, last changed 2026-06-17. Weakness: CWE-264.
How to fix
Upgrade to a fixed version: org.springframework:spring-core 4.3.1 (Maven); org.springframework.security:spring-security-core 4.1.1 (Maven). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-05-25 | Published |
| 2018-10-17 | Package advisory GHSA-8crv-49fr-2h6j |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.80% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-8crv-49fr-2h6j | org.springframework:spring-core (Maven) | 4.3.1 |
| GHSA-8crv-49fr-2h6j | org.springframework.security:spring-security-core (Maven) | 4.1.1 |
Also known as: GHSA-8crv-49fr-2h6j
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-41848 | 2026-06-09 | 7.5 | Spring Framework Denial of Service via AntPathMatcher |
| CVE-2025-41249 | 2025-09-16 | 7.5 | CVE-2025-41249: Spring Framework Annotation Detection Vulnerability |
| CVE-2024-22233 | 2024-01-22 | 7.5 | CVE-2024-22233: Spring Framework server Web DoS Vulnerability |
| CVE-2021-22060 | 2022-01-10 | 4.3 | same package: org.springframework:spring-core (Maven) |
| CVE-2021-22096 | 2021-10-28 | 4.3 | same package: org.springframework:spring-core (Maven) |
| CVE-2018-15756 | 2018-10-18 | 7.5 | DoS Attack via Range Requests |
| CVE-2018-11040 | 2018-06-25 | 7.5 | same package: org.springframework:spring-core (Maven) |
| CVE-2018-1258 | 2018-05-11 | 8.8 | same package: org.springframework:spring-core (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-5007, or call /api/v1/vulnerabilities/CVE-2016-5007. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.