Vulnerabilities in pkg:maven/org.apache.myfaces.shared/myfaces-shared-core
PACKAGECVE-2010-2057 is a MODERATE improper authentication vulnerability (CWE-287: Improper Authentication) affecting Myfaces shared core libraries in the Maven ecosystem. The issue involves improper authentication in apache myfaces. Remediation is available by upgrading affected packages to version 1.1.8, 1.2.9, 2.0.1.
pkg:maven/org.apache.myfaces.shared/myfaces-shared-core
Vulnerability advisories affecting package pkg:maven/org.apache.myfaces.shared/myfaces-shared-core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4fv4-cq5v-x45m | CVE-2010-2057 | MODERATE | Improper Authentication in Apache MyFaces |
CVE-2010-2057 at a Glance
How to Fix CVE-2010-2057
To remediate this vulnerability, upgrade all affected Myfaces shared core 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.shared</groupId>
<artifactId>myfaces-shared-core</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.shared</groupId>
<artifactId>myfaces-shared-core</artifactId>
<version>1.2.9</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.shared</groupId>
<artifactId>myfaces-shared-core</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>1.1.8</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>1.2.9</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>2.0.1</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.shared
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2010-2057, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.myfaces.shared
Analyze the terminal output to locate any version of Myfaces shared core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.8), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.myfaces.shared 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Myfaces shared core, 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-2010-2057 Affected Myfaces shared core Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.myfaces.shared:myfaces-shared-core
|
Maven |
≥ 1.1.0
< 1.1.8
|
1.1.8
|
|
org.apache.myfaces.shared:myfaces-shared-core
|
Maven |
≥ 1.2.0
< 1.2.9
|
1.2.9
|
|
org.apache.myfaces.shared:myfaces-shared-core
|
Maven |
≥ 2.0.0
< 2.0.1
|
2.0.1
|
|
org.apache.myfaces.core:myfaces-impl
|
Maven |
≥ 1.1.0
< 1.1.8
|
1.1.8
|
|
org.apache.myfaces.core:myfaces-impl
|
Maven |
≥ 1.2.0
< 1.2.9
|
1.2.9
|
|
org.apache.myfaces.core:myfaces-impl
|
Maven |
≥ 2.0.0
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is CVE-2010-2057?
Which Myfaces shared core versions are affected?
What version fixes CVE-2010-2057?
Is myfaces-shared-core affected?
Is myfaces-impl affected?
What CWE is associated with CVE-2010-2057?
How can I check Maven dependencies for CVE-2010-2057?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4fv4-cq5v-x45m",
"modified" : "2022-07-08T18:54:49Z",
"published" : "2022-05-17T05:45:54Z",
"aliases" : [ "CVE-2010-2057" ],
"summary" : "Improper Authentication in Apache MyFaces",
"details" : "shared/util/StateUtils.java in Apache MyFaces 1.1.x before 1.1.8, 1.2.x before 1.2.9, and 2.0.x before 2.0.1 uses an encrypted View State without a Message Authentication Code (MAC), which makes it easier for remote attackers to perform successful modifications of the View State via a padding oracle attack.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.shared:myfaces-shared-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.shared:myfaces-shared-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.shared:myfaces-shared-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.core:myfaces-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.core:myfaces-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.myfaces.core:myfaces-impl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2010-2057"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=623799"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/MYFACES-2749"
}, {
"type" : "WEB",
"url" : "http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java?r1=943327&r2=951801"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-08T18:54:49Z",
"nvd_published_at" : "2010-10-20T18:00:00Z"
}
}