Vulnerabilities in pkg:maven/org.apache.myfaces.shared/myfaces-shared-core

PACKAGE
Advisory Identifier: GHSA-4fv4-cq5v-x45m
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.myfaces.shared/myfaces-shared-core

1 Known Advisory Record(s)

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

CVE Identifier CVE-2010-2057
GHSA Identifier GHSA-4fv4-cq5v-x45m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Myfaces shared core
Package Ecosystem Maven
Published Date
Last Updated

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.

org.apache.myfaces.shared:myfaces-shared-core fixed: 1.1.8
<dependency>
    <groupId>org.apache.myfaces.shared</groupId>
    <artifactId>myfaces-shared-core</artifactId>
    <version>1.1.8</version>
</dependency>
org.apache.myfaces.shared:myfaces-shared-core fixed: 1.2.9
<dependency>
    <groupId>org.apache.myfaces.shared</groupId>
    <artifactId>myfaces-shared-core</artifactId>
    <version>1.2.9</version>
</dependency>
org.apache.myfaces.shared:myfaces-shared-core fixed: 2.0.1
<dependency>
    <groupId>org.apache.myfaces.shared</groupId>
    <artifactId>myfaces-shared-core</artifactId>
    <version>2.0.1</version>
</dependency>
org.apache.myfaces.core:myfaces-impl fixed: 1.1.8
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-impl</artifactId>
    <version>1.1.8</version>
</dependency>
org.apache.myfaces.core:myfaces-impl fixed: 1.2.9
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-impl</artifactId>
    <version>1.2.9</version>
</dependency>
org.apache.myfaces.core:myfaces-impl fixed: 2.0.1
<dependency>
    <groupId>org.apache.myfaces.core</groupId>
    <artifactId>myfaces-impl</artifactId>
    <version>2.0.1</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.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

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.

CVE-2010-2057 Affected Myfaces shared core Versions

6 component(s)
Fixed Versions:
1.1.81.2.92.0.1
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?
CVE-2010-2057 is a security vulnerability in Myfaces shared core involving Improper Authentication in Apache MyFaces under CWE-287: Improper Authentication.
Which Myfaces shared core versions are affected?
Affected versions include releases prior to 1.1.8, 1.2.9, 2.0.1 across affected packages: org.apache.myfaces.shared:myfaces-shared-core, org.apache.myfaces.core:myfaces-impl.
What version fixes CVE-2010-2057?
Upgrading to 1.1.8, 1.2.9, 2.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is myfaces-shared-core affected?
Yes, org.apache.myfaces.shared:myfaces-shared-core is affected in releases prior to 1.1.8, 1.2.9, 2.0.1. Upgrade your dependency to 1.1.8, 1.2.9, 2.0.1 or later.
Is myfaces-impl affected?
Yes, org.apache.myfaces.core:myfaces-impl is affected in releases prior to 1.1.8, 1.2.9, 2.0.1. Upgrade your dependency to 1.1.8, 1.2.9, 2.0.1 or later.
What CWE is associated with CVE-2010-2057?
CVE-2010-2057 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2010-2057?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.myfaces.shared'. 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-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"
  }
}