CVE-2014-7839: Resteasy jaxrs XML External Entity Reference Vulnerability
MODERATECVE-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
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.
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.0.11.Final</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.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
CVE-2014-7839 Affected Resteasy jaxrs Versions
1 component(s)| 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?
Which Resteasy jaxrs versions are affected?
What version fixes CVE-2014-7839?
Is resteasy-jaxrs affected?
What CWE is associated with CVE-2014-7839?
How can I check Maven dependencies for CVE-2014-7839?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}