Every CVE Search/ Get API key

CVE-2016-5007

Spring Security and Spring Framework may not recognize certain paths that should be protected

7.5 HighFix available

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

2.80%Up 1.8 points since Feb 4, 2022
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
org.springframework:spring-core
Maven
before 4.3.1
4.3.1
org.springframework.security:spring-security-core
Maven
before 4.1.1
4.1.1
org.springframework:spring-context
TuxCare: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-core
TuxCare: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-web
TuxCare: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-core
TuxCare: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-messaging
TuxCare: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-websocket
TuxCare: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-core
TuxCare: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-core
TuxCare: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
Affected packages
PackageAffectedFixed
org.springframework:spring-beans
TuxCare: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-context
TuxCare: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-core
TuxCare: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-expression
TuxCare: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-web
TuxCare: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-webmvc
TuxCare: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-java
Debian:12
before 4.3.2-1
4.3.2-1
libspring-java
Debian:13
before 4.3.2-1
4.3.2-1
libspring-java
Debian:14
before 4.3.2-1
4.3.2-1
org.springframework:spring-core
Maven
before 4.3.1, plus listed versions
1.01.0-rc11.0.11.11.1-rc1
Show 45 moreShow less
1.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-core
Maven
before 4.1.1, plus listed versions
2.0.02.0.12.0.22.0.32.0.4
Show 38 moreShow less
2.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
springframework
openEuler:20.03-LTS-SP1
before 3.2.18-8.oe1
3.2.18-8.oe1
springframework
openEuler:20.03-LTS-SP2
before 3.2.18-8.oe1
3.2.18-8.oe1
org.springframework:spring-webmvc
Root: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-core
Root: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-webmvc
Root: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-core
Root: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-java
Ubuntu: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 less
3.0.6.RELEASE-123.0.6.RELEASE-133.0.6.RELEASE-13ubuntu0.1~esm13.0.6.RELEASE-13ubuntu0.1~esm2
None known
libspring-java
Ubuntu: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

History
RecordedChangedSources
affected, factsOSV
affectedOSV
aliases, productsEUVD
first indexedCVE 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

Show 7 moreShow less
This page doesn't list everything

Left out here: 62 versions. The JSON record has them.

MoveEnter Open