CVE-2013-1768: Openjpa Deserialization Of Untrusted Data Vulnerability

HIGH
Advisory Identifier: GHSA-j65f-mvgw-prp2
CWE-502
Published
Advisory Summary

CVE-2013-1768 is a HIGH deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Openjpa libraries in the Maven ecosystem. The issue involves deserialization of untrusted data in apache openjpa. Remediation is available by upgrading affected packages to version 1.2.3, 2.2.2.

CVE-2013-1768 at a Glance

CVE Identifier CVE-2013-1768
GHSA Identifier GHSA-j65f-mvgw-prp2
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Openjpa
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2013-1768

To remediate this vulnerability, upgrade all affected Openjpa 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.openjpa:openjpa fixed: 1.2.3
<dependency>
    <groupId>org.apache.openjpa</groupId>
    <artifactId>openjpa</artifactId>
    <version>1.2.3</version>
</dependency>
org.apache.openjpa:openjpa fixed: 2.2.2
<dependency>
    <groupId>org.apache.openjpa</groupId>
    <artifactId>openjpa</artifactId>
    <version>2.2.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.apache.openjpa

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.openjpa

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

Note: The mvn dependency:tree -Dincludes=org.apache.openjpa 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Openjpa, 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

The BrokerFactory functionality in Apache OpenJPA 1.x before 1.2.3 and 2.x before 2.2.2 creates local executable JSP files containing logging trace data produced during deserialization of certain crafted OpenJPA objects, which makes it easier for remote attackers to execute arbitrary code by creating a serialized object and leveraging improperly secured server programs.

CVE-2013-1768 Affected Openjpa Versions

2 component(s)
Fixed Versions:
1.2.32.2.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.openjpa:openjpa
Maven
≥ 1.0.0
< 1.2.3
1.2.3
org.apache.openjpa:openjpa
Maven
≥ 2.0.0
< 2.2.2
2.2.2

References

svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462225
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462268
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462318
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462328
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462488
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462512
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462558
Openjpa Security Information SECURITY
http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
NVD — CVE-2013-1768 NVD
https://nvd.nist.gov/vuln/detail/CVE-2013-1768
Security Fix Commit FIX COMMIT
https://github.com/apache/openjpa/commit/7f14c7df6b7c7ef42f0671138b9b5dd062fe99aa
Security Fix Commit FIX COMMIT
https://github.com/apache/openjpa/commit/87a4452be08b4f97274d0ccfac585ae85841e470
Security Fix Commit FIX COMMIT
https://github.com/apache/openjpa/commit/b8933dc24b84e7e7430ece56bd645d425dd89f24
exchange.xforce.ibmcloud.com/vulnerabilities/822... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/82268
Openjpa Source Repository REPOSITORY
https://github.com/apache/openjpa
seclists.org/fulldisclosure/2013... WEB
https://seclists.org/fulldisclosure/2013/Jun/98
rhn.redhat.com/errata/rhsa-2013-18... WEB
http://rhn.redhat.com/errata/RHSA-2013-1862.html
svn.apache.org/viewvc WEB
http://svn.apache.org/viewvc?view=revision&revision=1462076

Frequently Asked Questions

What is CVE-2013-1768?
CVE-2013-1768 is a security vulnerability in Openjpa involving Deserialization of Untrusted Data in Apache OpenJPA under CWE-502: Deserialization of Untrusted Data.
Which Openjpa versions are affected?
Affected versions include releases prior to 1.2.3, 2.2.2 across affected packages: org.apache.openjpa:openjpa.
What version fixes CVE-2013-1768?
Upgrading to 1.2.3, 2.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openjpa affected?
Yes, org.apache.openjpa:openjpa is affected in releases prior to 1.2.3, 2.2.2. Upgrade your dependency to 1.2.3, 2.2.2 or later.
What CWE is associated with CVE-2013-1768?
CVE-2013-1768 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2013-1768?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.openjpa'. 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-j65f-mvgw-prp2",
  "modified" : "2024-02-26T22:28:10Z",
  "published" : "2022-05-14T03:30:19Z",
  "aliases" : [ "CVE-2013-1768" ],
  "summary" : "Deserialization of Untrusted Data in Apache OpenJPA",
  "details" : "The BrokerFactory functionality in Apache OpenJPA 1.x before 1.2.3 and 2.x before 2.2.2 creates local executable JSP files containing logging trace data produced during deserialization of certain crafted OpenJPA objects, which makes it easier for remote attackers to execute arbitrary code by creating a serialized object and leveraging improperly secured server programs.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.openjpa:openjpa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.openjpa:openjpa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1768"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/openjpa/commit/7f14c7df6b7c7ef42f0671138b9b5dd062fe99aa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/openjpa/commit/87a4452be08b4f97274d0ccfac585ae85841e470"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/openjpa/commit/b8933dc24b84e7e7430ece56bd645d425dd89f24"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/82268"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/openjpa"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/fulldisclosure/2013/Jun/98"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-1862.html"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462076"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462225"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462268"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462318"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462328"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462488"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462512"
  }, {
    "type" : "WEB",
    "url" : "http://svn.apache.org/viewvc?view=revision&revision=1462558"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:03:11Z",
    "nvd_published_at" : "2013-07-11T22:55:00Z"
  }
}