# CVE-2016-9878: Pivotal Spring Framework Paths provided to the ResourceServlet were not properly sanitized

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 4.91% (percentile 93, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-2m8h-fgr8-2q9w
- **Published:** 2016-12-29T09:02:00.000Z
- **Modified:** 2026-06-17T00:56:43.017Z

## Who should check

- Projects that depend on Maven package org.springframework:spring-webmvc (\< 3.2.18)
- Anyone running Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5 Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5

## 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.

## Affected and fixed versions

- Maven `org.springframework:spring-webmvc`: affected \< 3.2.18; fixed 3.2.18, 4.2.9, 4.3.5 (osv)
- Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5: Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5 (cvelist)

## Mitigation

- Upgrade org.springframework:spring-webmvc to one of 3.2.18, 4.2.9, 4.3.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2016-9878. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2016-9878.md
Affected: org.springframework:spring-webmvc < 3.2.18
Fixed in: 3.2.18, 4.2.9, 4.3.5

Steps:
1. Search this machine and project for org.springframework:spring-webmvc (Maven), Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2016-9878 being exploited?

There is no confirmed exploitation: CVE-2016-9878 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.91% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2016-9878?

High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2016-9878?

org.springframework:spring-webmvc \< 3.2.18.

### Is there a fix for CVE-2016-9878?

Yes. Fixed in 3.2.18, 4.2.9, 4.3.5. Upgrade org.springframework:spring-webmvc to one of 3.2.18, 4.2.9, 4.3.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2016-9878?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://pivotal.io/security/cve-2016-9878>
- vendor: <https://access.redhat.com/errata/RHSA-2017:3115>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-9878>
- vendor: <https://github.com/advisories/GHSA-2m8h-fgr8-2q9w>
- patch: <https://github.com/spring-projects/spring-framework/commit/43bf008fbcd0d7945e2fcd5e30039bc4d74c7a98>
- patch: <https://github.com/spring-projects/spring-framework/commit/a7dc48534ea501525f11369d369178a60c2f47d0>
- patch: <https://github.com/spring-projects/spring-framework/commit/e2d6e709c3c65a4951eb096843ee75d5200cfcad>
- other: <http://www.securitytracker.com/id/1040698>
- other: <http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html>
- other: <http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html>
- other: <https://security.netapp.com/advisory/ntap-20180419-0002/>
- other: <http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html>
- other: <http://www.securityfocus.com/bid/95072>
- other: <https://lists.debian.org/debian-lts-announce/2019/07/msg00012.html>
- other: <https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html>
- other: <https://github.com/spring-projects/spring-framework/issues/19513>
- other: <https://github.com/spring-projects/spring-framework>
- other: <https://security.netapp.com/advisory/ntap-20180419-0002>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2016-9878>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2m8h-fgr8-2q9w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2016-9878> · JSON: <https://flawdb.com/api/v1/entries/CVE-2016-9878>
