CVE-2011-4367: Myfaces impl Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-gjfx-9wx3-j6r7
CWE-22
Published
Advisory Summary

CVE-2011-4367 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Myfaces impl libraries in the Maven ecosystem. The issue involves apache myfaces vulnerable to path traversal. Remediation is available by upgrading affected packages to version 2.0.12, 2.1.6.

CVE-2011-4367 at a Glance

CVE Identifier CVE-2011-4367
GHSA Identifier GHSA-gjfx-9wx3-j6r7
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 Myfaces impl
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2011-4367

To remediate this vulnerability, upgrade all affected Myfaces impl 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.apache.myfaces.core:myfaces-impl fixed: 2.0.12
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-impl</artifactId>
    <version>2.0.12</version>
</dependency>
org.apache.myfaces.core:myfaces-impl fixed: 2.1.6
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-impl</artifactId>
    <version>2.1.6</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.apache.myfaces.core

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2011-4367, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.myfaces.core

Analyze the terminal output to locate any version of Myfaces impl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.12), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.myfaces.core 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 Myfaces impl, 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 directory traversal vulnerabilities in MyFaces JavaServer Faces (JSF) in Apache MyFaces Core 2.0.x before 2.0.12 and 2.1.x before 2.1.6 allow remote attackers to read arbitrary files via a `..` (dot dot) in the (1) ln parameter to `faces/javax.faces.resource/web.xml` or (2) the `PATH_INFO` to `faces/javax.faces.resource/`.

CVE-2011-4367 Affected Myfaces impl Versions

2 component(s)
Fixed Versions:
2.0.122.1.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.myfaces.core:myfaces-impl
Maven
≥ 2.0.0
< 2.0.12
2.0.12
org.apache.myfaces.core:myfaces-impl
Maven
≥ 2.1.0
< 2.1.6
2.1.6

References

Frequently Asked Questions

What is CVE-2011-4367?
CVE-2011-4367 is a security vulnerability in Myfaces impl involving Apache MyFaces Vulnerable to Path Traversal under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Myfaces impl versions are affected?
Affected versions include releases prior to 2.0.12, 2.1.6 across affected packages: org.apache.myfaces.core:myfaces-impl.
What version fixes CVE-2011-4367?
Upgrading to 2.0.12, 2.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is myfaces-impl affected?
Yes, org.apache.myfaces.core:myfaces-impl is affected in releases prior to 2.0.12, 2.1.6. Upgrade your dependency to 2.0.12, 2.1.6 or later.
What CWE is associated with CVE-2011-4367?
CVE-2011-4367 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-2011-4367?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.myfaces.core'. 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-gjfx-9wx3-j6r7",
  "modified" : "2023-08-16T23:00:39Z",
  "published" : "2022-05-13T01:24:34Z",
  "aliases" : [ "CVE-2011-4367" ],
  "summary" : "Apache MyFaces Vulnerable to Path Traversal",
  "details" : "Multiple directory traversal vulnerabilities in MyFaces JavaServer Faces (JSF) in Apache MyFaces Core 2.0.x before 2.0.12 and 2.1.x before 2.1.6 allow remote attackers to read arbitrary files via a `..` (dot dot) in the (1) ln parameter to `faces/javax.faces.resource/web.xml` or (2) the `PATH_INFO` to `faces/javax.faces.resource/`.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.core:myfaces-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.myfaces.core:myfaces-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4367"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/73100"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120213042504/http://www.securityfocus.com/bid/51939"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/myfaces-announce/201202.mbox/%3C4F33ED1F.4070007%40apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2012/Feb/150"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-02T00:42:02Z",
    "nvd_published_at" : "2014-06-19T14:55:00Z"
  }
}