Vulnerabilities in pkg:maven/org.apache.myfaces.core/myfaces-impl
PACKAGECVE-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.
pkg:maven/org.apache.myfaces.core/myfaces-impl
Vulnerability advisories affecting package pkg:maven/org.apache.myfaces.core/myfaces-impl. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gjfx-9wx3-j6r7 | CVE-2011-4367 | MODERATE | Apache MyFaces Vulnerable to Path Traversal |
| GHSA-4fv4-cq5v-x45m | CVE-2010-2057 | MODERATE | Improper Authentication in Apache MyFaces |
CVE-2011-4367 at a Glance
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.
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>2.0.12</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>2.1.6</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.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
CVE-2011-4367 Affected Myfaces impl Versions
2 component(s)| 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?
Which Myfaces impl versions are affected?
What version fixes CVE-2011-4367?
Is myfaces-impl affected?
What CWE is associated with CVE-2011-4367?
How can I check Maven dependencies for CVE-2011-4367?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}