CVE-2013-2165: Richfaces Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-4344-frcp-j22q
Published
Advisory Summary

CVE-2013-2165 is a HIGH remote code execution vulnerability (General Security Weakness) affecting Richfaces libraries in the Maven ecosystem. The issue involves remote code execution due to insecure deserialization. Remediation is available by upgrading affected packages to version 3.3.3, 4.3.2.

CVE-2013-2165 at a Glance

CVE Identifier CVE-2013-2165
GHSA Identifier GHSA-4344-frcp-j22q
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Richfaces
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-2165

To remediate this vulnerability, upgrade all affected Richfaces 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.richfaces:richfaces fixed: 3.3.3
<dependency>
    <groupId>org.richfaces</groupId>
    <artifactId>richfaces</artifactId>
    <version>3.3.3</version>
</dependency>
org.richfaces:richfaces fixed: 4.3.2
<dependency>
    <groupId>org.richfaces</groupId>
    <artifactId>richfaces</artifactId>
    <version>4.3.2</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.richfaces

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.richfaces

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

Note: The mvn dependency:tree -Dincludes=org.richfaces 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 General Security Weakness. In Richfaces, 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

A flaw was found in the way JBoss RichFaces handled deserialization. A remote attacker could use this flaw to trigger the execution of the deserialization methods in any serializable class deployed on the server. This could lead to a variety of security impacts depending on the deserialization logic of these classes.

CVE-2013-2165 Affected Richfaces Versions

2 component(s)
Fixed Versions:
3.3.34.3.2
Product / Package Ecosystem Affected Versions Fixed Version
org.richfaces:richfaces
Maven
≥ 3.1.0
< 3.3.3
3.3.3
org.richfaces:richfaces
Maven
≥ 4.0.0
< 4.3.2
4.3.2

References

Frequently Asked Questions

What is CVE-2013-2165?
CVE-2013-2165 is a security vulnerability in Richfaces involving Remote code execution due to insecure deserialization under General Security Weakness.
Which Richfaces versions are affected?
Affected versions include releases prior to 3.3.3, 4.3.2 across affected packages: org.richfaces:richfaces.
What version fixes CVE-2013-2165?
Upgrading to 3.3.3, 4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is richfaces affected?
Yes, org.richfaces:richfaces is affected in releases prior to 3.3.3, 4.3.2. Upgrade your dependency to 3.3.3, 4.3.2 or later.
What CWE is associated with CVE-2013-2165?
CVE-2013-2165 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2013-2165?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.richfaces'. 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-4344-frcp-j22q",
  "modified" : "2022-11-03T22:44:02Z",
  "published" : "2022-05-13T01:27:59Z",
  "aliases" : [ "CVE-2013-2165" ],
  "summary" : "Remote code execution due to insecure deserialization",
  "details" : "A flaw was found in the way JBoss RichFaces handled deserialization. A remote attacker could use this flaw to trigger the execution of the deserialization methods in any serializable class deployed on the server. This could lead to a variety of security impacts depending on the deserialization logic of these classes.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.richfaces:richfaces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.richfaces:richfaces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2165"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2013-2165"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=973570"
  }, {
    "type" : "WEB",
    "url" : "http://jvn.jp/en/jp/JVN38787103/index.html"
  }, {
    "type" : "WEB",
    "url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2013-000072"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/156663/Richsploit-RichFaces-Exploitation-Toolkit.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2020/Mar/21"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-03T22:44:02Z",
    "nvd_published_at" : "2013-07-23T11:03:00Z"
  }
}