CVE-2013-3827: Javax.faces Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-q388-j7cw-ff7w
CWE-22
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2013-3827
GHSA Identifier GHSA-q388-j7cw-ff7w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Javax.faces
Package Ecosystem Maven
Published Date
Last Updated

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.

org.glassfish:javax.faces fixed: 2.1.19
<dependency>
    <groupId>org.glassfish</groupId>
    <artifactId>javax.faces</artifactId>
    <version>2.1.19</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2013-3827 Affected Javax.faces Versions

1 component(s)
Fixed Versions:
2.1.19
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?
CVE-2013-3827 is a security vulnerability in Javax.faces involving Path Traversal in Eclipse Mojarra under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Javax.faces versions are affected?
Affected versions include releases prior to 2.1.19 across affected packages: org.glassfish:javax.faces.
What version fixes CVE-2013-3827?
Upgrading to 2.1.19 (or the latest patched release for your respective branch) resolves the vulnerability.
Is javax.faces affected?
Yes, org.glassfish:javax.faces is affected in releases prior to 2.1.19. Upgrade your dependency to 2.1.19 or later.
What CWE is associated with CVE-2013-3827?
CVE-2013-3827 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (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.).
How can I check Maven dependencies for CVE-2013-3827?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.glassfish'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}