# CVE-2014-3625: Improper Limitation of a Pathname to a Restricted Directory in Spring Framework

> Remote attackers can read arbitrary files via directory traversal in Spring Framework static resource handling.

- **Severity:** Medium 5.0 (`AV:N/AC:L/Au:N/C:P/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Nov 2014
- **Updated:** 6 Aug 2024
- **Also known as:** DEBIAN-CVE-2014-3625, GHSA-hhm4-hwq6-3c6w, UBUNTU-CVE-2014-3625

## What is CVE-2014-3625?

CVE-2014-3625 is a medium-severity path traversal vulnerability in Vmware Spring Framework, published on 20 Nov 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Directory traversal vulnerability in Pivotal Spring Framework 3.0.4 through 3.2.x before 3.2.12, 4.0.x before 4.0.8, and 4.1.x before 4.1.2 allows remote attackers to read arbitrary files via unspecified vectors, related to static resource handling.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2014-3625?

6 open source packages ship an affected version, including org.springframework:spring-webmvc. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.springframework:spring-webmvc` | Maven | From 3.0.4 | 3.2.12 |
| `org.springframework:spring-webmvc` | Maven | From 3.0.4 | 3.2.12 |
| `org.springframework:spring-webmvc` | Maven | From 4.0.0 | 4.0.8 |
| `org.springframework:spring-webmvc` | Maven | From 4.0.0 | 4.0.8 |
| `org.springframework:spring-webmvc` | Maven | From 4.1.0 | 4.1.2 |
| `org.springframework:spring-webmvc` | Maven | From 4.1.0 | 4.1.2 |

Products: Pivotal Software Spring Framework, Vmware Spring Framework.

## How do I fix CVE-2014-3625?

Upgrade org.springframework:spring-webmvc to a fixed version for your release line: 3.2.12, 4.0.8 or 4.1.2.

## Is CVE-2014-3625 being exploited?

There is no known exploitation of CVE-2014-3625 in the wild and no public exploit code.

Public exploit code:

- spring mvc cve-2014-3625 (github_poc): https://github.com/ilmila/springcss-cve-2014-3625
- String MVC Framework Path-Traversal proof of concept. CVE-2014-3625  (github_poc): https://github.com/gforresu/SpringPathTraversal

## Other vulnerabilities in Vmware Spring Framework

- [CVE-2014-0225](https://insights.sbomify.com/CVE-2014-0225/): Improper Restriction of XML External Entity Reference in Spring Framework (high 8.8)
- [CVE-2016-5007](https://insights.sbomify.com/CVE-2016-5007/): Spring Security and Spring Framework may not recognize certain paths that should be protected (high 7.5)
- [CVE-2016-9878](https://insights.sbomify.com/CVE-2016-9878/): Pivotal Spring Framework Paths provided to the ResourceServlet were not properly sanitized (high 7.5)
- [CVE-2013-6429](https://insights.sbomify.com/CVE-2013-6429/): Cross-Site Request Forgery in Spring Framework (medium 6.8)
- [CVE-2013-6430](https://insights.sbomify.com/CVE-2013-6430/): Improper Neutralization of Input During Web Page Generation in Spring Framework (medium 5.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2014-3625 and fix it if it is affected.

What it is: CVE-2014-3625 is a medium-severity path traversal vulnerability in Vmware Spring Framework, published on 20 Nov 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2014-3625 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.springframework:spring-webmvc (Maven): affected from 3.0.4; fixed in 3.2.12
- org.springframework:spring-webmvc (Maven): affected from 3.0.4; fixed in 3.2.12
- org.springframework:spring-webmvc (Maven): affected from 4.0.0; fixed in 4.0.8
- org.springframework:spring-webmvc (Maven): affected from 4.0.0; fixed in 4.0.8
- org.springframework:spring-webmvc (Maven): affected from 4.1.0; fixed in 4.1.2
- org.springframework:spring-webmvc (Maven): affected from 4.1.0; fixed in 4.1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2014-3625/ (Markdown: https://insights.sbomify.com/CVE-2014-3625/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2014-3625
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2014-3625
- OSV: https://osv.dev/vulnerability/CVE-2014-3625

---
From sbomify Insights: https://insights.sbomify.com/CVE-2014-3625/
Summaries are generated and may contain mistakes; the official description above is the record.
