CVE-2013-3827: Javax.faces Path Traversal Vulnerability
MODERATECVE-2013-3827 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Javax.faces libraries in the Maven ecosystem. The issue involves path traversal in eclipse mojarra. Remediation is available by upgrading affected packages to version 2.1.19.
CVE-2013-3827 at a Glance
How to Fix CVE-2013-3827
To remediate this vulnerability, upgrade all affected Javax.faces 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.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.1.19</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.glassfish
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2013-3827, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.glassfish
Analyze the terminal output to locate any version of Javax.faces in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.19), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.glassfish 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 Javax.faces, 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-2013-3827 Affected Javax.faces Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.glassfish:javax.faces
|
Maven |
≥ 2.0.0
< 2.1.19
|
2.1.19
|
References
Frequently Asked Questions
What is CVE-2013-3827?
Which Javax.faces versions are affected?
What version fixes CVE-2013-3827?
Is javax.faces affected?
What CWE is associated with CVE-2013-3827?
How can I check Maven dependencies for CVE-2013-3827?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q388-j7cw-ff7w",
"modified" : "2022-11-03T22:33:13Z",
"published" : "2022-05-17T03:13:10Z",
"aliases" : [ "CVE-2013-3827" ],
"summary" : "Path Traversal in Eclipse Mojarra",
"details" : "Multiple path traversal flaws where found in Mojarra JSF2 implementation for identifying resources by name or from libraries. An unauthenticated remote attacker can use these flaws to gather otherwise undisclosed information from within an application's root.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.glassfish:javax.faces"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.1.19"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-3827"
}, {
"type" : "WEB",
"url" : "https://bugs.gentoo.org/show_bug.cgi?id=CVE-2013-3827"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-0029.html"
}, {
"type" : "WEB",
"url" : "http://www.kb.cert.org/vuls/id/526012"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-03T22:33:13Z",
"nvd_published_at" : "2013-10-16T15:55:00Z"
}
}