CVE-2016-9878 Pivotal Spring Framework Paths provided to the ResourceServlet were not properly sanitized
Attackers can exploit unsanitized paths in ResourceServlet to perform directory traversal and read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-9878?
CVE-2016-9878 is a high-severity path traversal vulnerability in Vmware Spring Framework, published on 29 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5. Paths provided to the ResourceServlet were not properly sanitized and as a result exposed to directory traversal attacks.
Weakness: CWE-22
Which versions are affected by CVE-2016-9878?
6 open source packages ship an affected version, including org.springframework:spring-webmvc. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-webmvc Maven | All versions | 3.2.18 |
org.springframework:spring-webmvc Maven | All versions | 3.2.18 |
org.springframework:spring-webmvc Maven | From 4.2.0 | 4.2.9 |
org.springframework:spring-webmvc Maven | From 4.2.0 | 4.2.9 |
org.springframework:spring-webmvc Maven | From 4.3.0 | 4.3.5 |
org.springframework:spring-webmvc Maven | From 4.3.0 | 4.3.5 |
Products include Pivotal Software Spring Framework, Vmware Spring Framework.
How do I fix CVE-2016-9878?
Upgrade org.springframework:spring-webmvc to a fixed version for your release line: 3.2.18, 4.2.9 or 4.3.5.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2016-9878 being exploited?
There is no known exploitation of CVE-2016-9878 in the wild and no public exploit code.
Other vulnerabilities in Vmware Spring Framework
- CVE-2014-0225 Improper Restriction of XML External Entity Reference in Spring Framework
- CVE-2016-5007 Spring Security and Spring Framework may not recognize certain paths that should be protected
- CVE-2013-6429 Cross-Site Request Forgery in Spring Framework
- CVE-2013-6430 Improper Neutralization of Input During Web Page Generation in Spring Framework
- CVE-2015-0201 Moderate severity vulnerability that affects org.springframework:spring-core
Sources
Also known as DEBIAN-CVE-2016-9878, GHSA-2m8h-fgr8-2q9w, UBUNTU-CVE-2016-9878.