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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libspring-java | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libspring-java | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | libspring-java | Fix pending | UBUNTU-CVE-2016-5007 | |
| Ubuntu 14.04 | libspring-java | Fix pending | UBUNTU-CVE-2016-5007 | |
| Debian 14 | libspring-java | Fixed | 4.3.2-1 | DEBIAN-CVE-2016-5007 |
| Debian 13 | libspring-java | Fixed | 4.3.2-1 | DEBIAN-CVE-2016-5007 |
| Debian 12 | libspring-java | Fixed | 4.3.2-1 | DEBIAN-CVE-2016-5007 |
| Maven library | org.springframework.security:spring-security-core | Fixed | 4.1.1 | GHSA-8crv-49fr-2h6j |
| Maven library | org.springframework:spring-core | Fixed | 4.3.1 | GHSA-8crv-49fr-2h6j |
What the vendor says
As published in the CVE record by dell, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Pivotal Spring Security: affected: 3.2.x, 4.0.x, 4.1.0
- Pivotal Spring Framework: affected: 3.2.x, 4.0.x, 4.1.x, 4.2.x, older unsupported versions are also affected
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.