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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source nvd
Exploit chance (EPSS)
2.802%
chance of exploitation in the next 30 days
higher than 86.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2017-05-25Published by the CNA17:00 UTC
  2. 2018-10-17GitHub advisory published (GHSA-8crv-49fr-2h6j)510 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-8crv-49fr-2h6j, affected packages:

PackageVulnerable versionsFixed in
Maven org.springframework.security:spring-security-corebefore 4.1.14.1.1
Maven org.springframework:spring-corebefore 4.3.14.3.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
pivotal_software spring_framework3.2.0no fix listed4.0.0no fix listed4.1.0no fix listed4.2.0no fix listednot listednot listednot listednot listed
vmware spring_framework3.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_security3.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

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources