CVE-2014-3578: Spring Framework Improper Limitation Of A Pathname Vulnerability
MODERATECVE-2014-3578 is a MODERATE improper limitation of a pathname vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves improper limitation of a pathname to a restricted directory in spring framework. Remediation is available by upgrading affected packages to version 3.2.9, 4.0.5.
CVE-2014-3578 at a Glance
How to Fix CVE-2014-3578
To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.9</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.0.5</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.springframework
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2014-3578, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.springframework
Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.9), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.springframework command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-3578 Affected Spring Framework Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.springframework:spring-core
|
Maven |
≥ 3.0.0
< 3.2.9
|
3.2.9
|
|
org.springframework:spring-core
|
Maven |
≥ 4.0.0
< 4.0.5
|
4.0.5
|
References
Frequently Asked Questions
What is CVE-2014-3578?
Which Spring Framework versions are affected?
What version fixes CVE-2014-3578?
Is spring-core affected?
What CWE is associated with CVE-2014-3578?
How can I check Maven dependencies for CVE-2014-3578?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rhcg-rwhx-qj3j",
"modified" : "2024-03-18T15:04:58Z",
"published" : "2022-05-14T00:56:29Z",
"aliases" : [ "CVE-2014-3578" ],
"summary" : "Improper Limitation of a Pathname to a Restricted Directory in Spring Framework",
"details" : "Directory traversal vulnerability in Pivotal Spring Framework 3.x before 3.2.9 and 4.0 before 4.0.5 allows remote attackers to read arbitrary files via a crafted URL.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.springframework:spring-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3578"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/issues/16414"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/748167bfa33c3c69db2d8dbdc3a0e9da692da3a0"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/8ee465103850a3dca018273fe5952e40d5c45a66"
}, {
"type" : "WEB",
"url" : "https://github.com/spring-projects/spring-framework/commit/f6fddeb6eb7da625fd711ab371ff16512f431e8d"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1131882"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spring-projects/spring-framework"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/07/msg00012.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2015-0234.html"
}, {
"type" : "WEB",
"url" : "https://rhn.redhat.com/errata/RHSA-2015-0235.html"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN49154900/index.html"
}, {
"type" : "WEB",
"url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2014-000054"
}, {
"type" : "WEB",
"url" : "http://pivotal.io/security/cve-2014-3578"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2015-0720.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-07T22:40:29Z",
"nvd_published_at" : "2015-02-19T20:59:00Z"
}
}