CVE-2016-5007
Spring Security and Spring Framework may not recognize certain paths that should be protected
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2016-5007- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-5007- Updated
- 2026-11-02
EUVDEUVD-2018-0549 No score
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.
- Record
EUVD-2018-0549- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8crv-49fr-2h6j
7.5
Spring Security and Spring Framework may not recognize certain paths that should be protected
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.
- Record
GHSA-8crv-49fr-2h6j- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2016-5007- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-5007
7.5
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.
- Record
DEBIAN-CVE-2016-5007- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
Show 9 moreShow less
OSVGHSA-8crv-49fr-2h6j
7.5
Spring Security and Spring Framework may not recognize certain paths that should be protected
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.
- Record
GHSA-8crv-49fr-2h6j- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVOESA-2021-1416
7.5
springframework security update
The spring is based on code pubilshed in Expert One-on-One J2EE Design and Dvelopment by Rod Johnson (Wrox, 2002).it is a layered Java/J2ee application framework.
Security Fix(es):
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.(CVE-2016-5007)
- Record
OESA-2021-1416- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-5007
7.5
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.
- Record
UBUNTU-CVE-2016-5007- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1774311642 No score
TuxCare security update for org.springframework (8 CVEs)
TuxCare rebuilt 3 org.springframework packages to address 8 CVEs. Fixed in 4.1.7.RELEASE-tuxcare.2.
- Record
CLSA-2026-1774311642- Updated
- 2026-11-02
OSVCLSA-2026-1775003159 No score
TuxCare security update for org.springframework (3 CVEs)
TuxCare rebuilt 3 org.springframework packages to address 3 CVEs. Fixed in 4.0.0.RELEASE-tuxcare.2.
- Record
CLSA-2026-1775003159- Updated
- 2026-11-02
OSVCLSA-2026-1778028246 No score
TuxCare security update for org.springframework:spring-core (1 CVE)
TuxCare rebuilt org.springframework:spring-core to address 1 CVE. Fixed in 3.1.1.RELEASE-tuxcare.2.
- Record
CLSA-2026-1778028246- Updated
- 2026-11-02
OSVCLSA-2026-1781744134 No score
TuxCare security update for org.springframework:spring-core (2 CVEs)
TuxCare rebuilt org.springframework:spring-core to address 2 CVEs. Fixed in 4.2.9.RELEASE-tuxcare.4.
- Record
CLSA-2026-1781744134- Updated
- 2026-11-02
OSVCLSA-2026-1784509762 No score
TuxCare security update for org.springframework (11 CVEs)
TuxCare rebuilt 6 org.springframework packages to address 11 CVEs. Fixed in 3.0.5.RELEASE-tuxcare.8.
- Record
CLSA-2026-1784509762- Updated
- 2026-11-02
OSVROOT-APP-MAVEN-CVE-2016-5007 No score
CVE-2016-5007 in org.springframework:spring-webmvc - Patched by Root
Root has patched CVE-2016-5007 in the org.springframework:spring-webmvc package for Root:Maven. Multiple fixed versions available.
- Record
ROOT-APP-MAVEN-CVE-2016-5007- Updated
- 2026-11-04
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.springframework:spring-coreMaven |
before 4.3.1 | 4.3.1 |
org.springframework.security:spring-security-coreMaven |
before 4.1.1 | 4.1.1 |
org.springframework:spring-contextTuxCare:Maven |
4.1.7.RELEASE up to 4.1.7.RELEASE-tuxcare.2, plus listed versions 4.1.7.RELEASE-tuxcare.1 |
4.1.7.RELEASE-tuxcare.2 |
org.springframework:spring-coreTuxCare:Maven |
4.1.7.RELEASE up to 4.1.7.RELEASE-tuxcare.2, plus listed versions 4.1.7.RELEASE-tuxcare.1 |
4.1.7.RELEASE-tuxcare.2 |
org.springframework:spring-webTuxCare:Maven |
4.1.7.RELEASE up to 4.1.7.RELEASE-tuxcare.2, plus listed versions 4.1.7.RELEASE-tuxcare.1 |
4.1.7.RELEASE-tuxcare.2 |
org.springframework:spring-coreTuxCare:Maven |
4.0.0.RELEASE up to 4.0.0.RELEASE-tuxcare.2, plus listed versions 4.0.0.RELEASE-tuxcare.1 |
4.0.0.RELEASE-tuxcare.2 |
org.springframework:spring-messagingTuxCare:Maven |
4.0.0.RELEASE up to 4.0.0.RELEASE-tuxcare.2, plus listed versions 4.0.0.RELEASE-tuxcare.1 |
4.0.0.RELEASE-tuxcare.2 |
org.springframework:spring-websocketTuxCare:Maven |
4.0.0.RELEASE up to 4.0.0.RELEASE-tuxcare.2, plus listed versions 4.0.0.RELEASE-tuxcare.1 |
4.0.0.RELEASE-tuxcare.2 |
org.springframework:spring-coreTuxCare:Maven |
3.1.1.RELEASE up to 3.1.1.RELEASE-tuxcare.2, plus listed versions 3.1.1.RELEASE-tuxcare.1 |
3.1.1.RELEASE-tuxcare.2 |
org.springframework:spring-coreTuxCare:Maven |
4.2.9.RELEASE up to 4.2.9.RELEASE-tuxcare.4, plus listed versions 4.2.9.RELEASE-tuxcare.14.2.9.RELEASE-tuxcare.24.2.9.RELEASE-tuxcare.3 |
4.2.9.RELEASE-tuxcare.4 |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.springframework:spring-beansTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
org.springframework:spring-contextTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
org.springframework:spring-coreTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
org.springframework:spring-expressionTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
org.springframework:spring-webTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
org.springframework:spring-webmvcTuxCare:Maven |
3.0.5.RELEASE up to 3.0.5.RELEASE-tuxcare.8, plus listed versions 3.0.5.RELEASE-tuxcare.13.0.5.RELEASE-tuxcare.23.0.5.RELEASE-tuxcare.33.0.5.RELEASE-tuxcare.43.0.5.RELEASE-tuxcare.53.0.5.RELEASE-tuxcare.63.0.5.RELEASE-tuxcare.7 |
3.0.5.RELEASE-tuxcare.8 |
libspring-javaDebian:12 |
before 4.3.2-1 | 4.3.2-1 |
libspring-javaDebian:13 |
before 4.3.2-1 | 4.3.2-1 |
libspring-javaDebian:14 |
before 4.3.2-1 | 4.3.2-1 |
org.springframework:spring-coreMaven |
before 4.3.1, plus listed versions 1.01.0-rc11.0.11.11.1-rc1 Show 45 moreShow less1.1-rc21.1.11.1.21.1.31.1.41.1.51.21.2-rc11.2-rc21.2.11.2.21.2.31.2.41.2.51.2.61.2.71.2.81.2.92.02.0-m12.0-m22.0-m32.0-m42.0-m52.0-rc12.0-rc22.0.12.0.22.0.32.0.42.0.52.0.62.0.72.0.82.52.5.12.5.22.5.32.5.42.5.52.5.62.5.6.SEC012.5.6.SEC022.5.6.SEC033.0.0.RELEASE |
4.3.1 |
org.springframework.security:spring-security-coreMaven |
before 4.1.1, plus listed versions 2.0.02.0.12.0.22.0.32.0.4 Show 38 moreShow less2.0.5.RELEASE2.0.6.RELEASE2.0.7.RELEASE2.0.8.RELEASE3.0.0.RELEASE3.0.1.RELEASE3.0.2.RELEASE3.0.3.RELEASE3.0.4.RELEASE3.0.5.RELEASE3.0.6.RELEASE3.0.7.RELEASE3.0.8.RELEASE3.1.0.RELEASE3.1.1.RELEASE3.1.2.RELEASE3.1.3.RELEASE3.1.4.RELEASE3.1.5.RELEASE3.1.6.RELEASE3.1.7.RELEASE3.2.0.RELEASE3.2.1.RELEASE3.2.10.RELEASE3.2.2.RELEASE3.2.3.RELEASE3.2.4.RELEASE3.2.5.RELEASE3.2.6.RELEASE3.2.7.RELEASE3.2.8.RELEASE3.2.9.RELEASE4.0.0.RELEASE4.0.1.RELEASE4.0.2.RELEASE4.0.3.RELEASE4.0.4.RELEASE4.1.0.RELEASE |
4.1.1 |
springframeworkopenEuler:20.03-LTS-SP1 |
before 3.2.18-8.oe1 | 3.2.18-8.oe1 |
springframeworkopenEuler:20.03-LTS-SP2 |
before 3.2.18-8.oe1 | 3.2.18-8.oe1 |
org.springframework:spring-webmvcRoot:Maven |
before 4.0.3.RELEASE-aikido.1 | 4.0.3.RELEASE-aikido.14.0.3.RELEASE-aikido.24.0.3.RELEASE-aikido.34.0.3.RELEASE-aikido.44.0.3.RELEASE-aikido.54.0.3.RELEASE-aikido.64.0.3.RELEASE-aikido.74.0.3.RELEASE-aikido.8 |
org.springframework:spring-coreRoot:Maven |
before 4.0.3.RELEASE-aikido.5 | 4.0.3.RELEASE-aikido.54.0.3.RELEASE-aikido.64.0.3.RELEASE-aikido.74.0.3.RELEASE-aikido.8 |
io.root.org.springframework:spring-webmvcRoot:Maven |
before 4.0.3.RELEASE-root.io.1 | 4.0.3.RELEASE-root.io.14.0.3.RELEASE-root.io.24.0.3.RELEASE-root.io.34.0.3.RELEASE-root.io.44.0.3.RELEASE-root.io.54.0.3.RELEASE-root.io.64.0.3.RELEASE-root.io.74.0.3.RELEASE-root.io.8 |
io.root.org.springframework:spring-coreRoot:Maven |
before 4.0.3.RELEASE-root.io.5 | 4.0.3.RELEASE-root.io.54.0.3.RELEASE-root.io.64.0.3.RELEASE-root.io.74.0.3.RELEASE-root.io.8 |
libspring-javaUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 3.0.6.RELEASE-73.0.6.RELEASE-83.0.6.RELEASE-93.0.6.RELEASE-103.0.6.RELEASE-11 Show 4 moreShow less3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2 |
None known |
libspring-javaUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 3.2.13-33.2.13-43.2.13-53.2.13-5ubuntu0.1~esm1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected | OSV | |
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-5007 is a high vulnerability (CVSS 7.5) in Pivotal Spring Framework, published May 25, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.80%, the 86th percentile. Fixed in org.springframework:spring-core 4.3.1.
References
oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
securityfocus.com/bid/91687
pivotal.io/security/cve-2016-5007
oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
nvd.nist.gov/vuln/detail/CVE-2016-5007
github.com/advisories/GHSA-8crv-49fr-2h6j
Show 7 moreShow less
github.com/spring-projects/spring-security/issues/3964
github.com/spring-projects/spring-framework/commit/a30ab30e4e9ae021fdda04e9abfc228476b846b5
github.com/spring-projects/spring-security/commit/e4c13e3c0ee7f06f59d3b43ca6734215ad7d8974
security-tracker.debian.org/tracker/CVE-2016-5007
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1416
ubuntu.com/security/CVE-2016-5007
cve.org/CVERecord?id=CVE-2016-5007
Left out here: 62 versions. The JSON record has them.