CVE-2014-7839: Resteasy jaxrs XML External Entity Reference Vulnerability

MODERATE
Advisory Identifier: GHSA-pc54-pchm-xcw6
CWE-20 CWE-611
Published
Advisory Summary

CVE-2014-7839 is a MODERATE xml external entity reference vulnerability (CWE-20: Improper Input Validation) affecting Resteasy jaxrs libraries in the Maven ecosystem. The issue involves xml external entity reference in resteasy. Remediation is available by upgrading affected packages to version 3.0.11.Final.

CVE-2014-7839 at a Glance

CVE Identifier CVE-2014-7839
GHSA Identifier GHSA-pc54-pchm-xcw6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Resteasy jaxrs
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2014-7839

To remediate this vulnerability, upgrade all affected Resteasy jaxrs 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.jboss.resteasy:resteasy-jaxrs fixed: 3.0.11.Final
<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-jaxrs</artifactId>
    <version>3.0.11.Final</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.jboss.resteasy

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jboss.resteasy

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

Note: The mvn dependency:tree -Dincludes=org.jboss.resteasy 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Resteasy jaxrs, 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

DocumentProvider in RESTEasy 2.3.7 and 3.0.9 does not configure the (1) external-general-entities or (2) external-parameter-entities features, which allows remote attackers to conduct XML external entity (XXE) attacks via unspecified vectors.

CVE-2014-7839 Affected Resteasy jaxrs Versions

1 component(s)
Fixed Versions:
3.0.11.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.jboss.resteasy:resteasy-jaxrs
Maven
< 3.0.11.Final
3.0.11.Final

References

Frequently Asked Questions

What is CVE-2014-7839?
CVE-2014-7839 is a security vulnerability in Resteasy jaxrs involving XML External Entity Reference in RESTEasy under CWE-20: Improper Input Validation.
Which Resteasy jaxrs versions are affected?
Affected versions include releases prior to 3.0.11.Final across affected packages: org.jboss.resteasy:resteasy-jaxrs.
What version fixes CVE-2014-7839?
Upgrading to 3.0.11.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is resteasy-jaxrs affected?
Yes, org.jboss.resteasy:resteasy-jaxrs is affected in releases prior to 3.0.11.Final. Upgrade your dependency to 3.0.11.Final or later.
What CWE is associated with CVE-2014-7839?
CVE-2014-7839 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2014-7839?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jboss.resteasy'. 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-pc54-pchm-xcw6",
  "modified" : "2022-06-17T01:12:47Z",
  "published" : "2022-05-17T04:13:50Z",
  "aliases" : [ "CVE-2014-7839" ],
  "summary" : "XML External Entity Reference in RESTEasy",
  "details" : "DocumentProvider in RESTEasy 2.3.7 and 3.0.9 does not configure the (1) external-general-entities or (2) external-parameter-entities features, which allows remote attackers to conduct XML external entity (XXE) attacks via unspecified vectors.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.resteasy:resteasy-jaxrs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.11.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.10.Final"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7839"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/611/commits/3ab999c899c455a0b0a00bf5e455ed3e8d9ae347"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/resteasy/resteasy/pull/611/commits/8b5d8cfc963794a74636d9a840e899408ec8fdc6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/resteasy/Resteasy"
  }, {
    "type" : "WEB",
    "url" : "https://issues.jboss.org/browse/RESTEASY-1130"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0675.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0773.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0850.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0851.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-17T01:12:47Z",
    "nvd_published_at" : "2014-11-25T15:59:00Z"
  }
}