Vulnerabilities in pkg:maven/org.apache.camel/camel-xmljson
PACKAGECVE-2019-0188 is a HIGH (CVSS 7.5) xml external entity injection vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Camel core libraries in the Maven ecosystem. The issue involves xml external entity injection in apache camel. Remediation is available by upgrading affected packages to version 2.24.0.
pkg:maven/org.apache.camel/camel-xmljson
Vulnerability advisories affecting package pkg:maven/org.apache.camel/camel-xmljson. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-h896-mx9x-g32g | CVE-2019-0188 | HIGH | XML External Entity injection in Apache Camel |
CVE-2019-0188 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-0188
To remediate this vulnerability, upgrade all affected Camel 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.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<version>2.24.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-xmljson</artifactId>
<version>Latest secure release</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.apache.camel
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-0188, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.camel
Analyze the terminal output to locate any version of Camel core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.24.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.camel 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Camel 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
CVE-2019-0188 Affected Camel core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.camel:camel-core
|
Maven |
< 2.24.0
|
2.24.0
|
|
org.apache.camel:camel-xmljson
|
Maven |
≤ 2.23.4
|
|
References
Frequently Asked Questions
What is CVE-2019-0188?
Which Camel core versions are affected?
What version fixes CVE-2019-0188?
Is camel-core affected?
Is camel-xmljson affected?
What is the CVSS score of CVE-2019-0188?
What CWE is associated with CVE-2019-0188?
How can I check Maven dependencies for CVE-2019-0188?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h896-mx9x-g32g",
"modified" : "2022-11-17T17:55:41Z",
"published" : "2019-05-29T18:15:50Z",
"aliases" : [ "CVE-2019-0188" ],
"summary" : "XML External Entity injection in Apache Camel",
"details" : "Apache Camel prior to 2.24.0 contains an XML external entity injection (XXE) vulnerability (CWE-611) due to using an outdated vulnerable JSON-lib library. This affects only the camel-xmljson component, which was removed.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.24.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-xmljson"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.23.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0188"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/blob/master/docs/user-manual/en/security-advisories/CVE-2019-0188.txt.asc"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/TAMAYA-410"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/00118387610522b107cbdcec5369ddd512b576ff0236a02bfca12f44@%3Cusers.camel.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/45349f8bd98c1c13a84beddede18fe79b8619ebab99d90f1fb43d7ab@%3Cdev.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/61601cda2c5f9832184ea14647b0c0589c94126a460c8eb196be1313@%3Ccommits.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/63d1cec8541befeb59dbed23a6b227bdcca7674aa234fb43354dac82@%3Ccommits.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/6fefbd90f7fb4c8412d85ea3e9e97a4b76b47e206f502c73c29dc0b7@%3Ccommits.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/84ba9b79e801a4148dde73d1969cdae0247d11ff63de7ce11b394dc5@%3Ccommits.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/ac51944aef91dd5006b8510b0bef337adaccfe962fb90e7af9c22db4@%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/eed73fc18d4fa3e2341cd0ab101b47f06b16c7efc1cb73791c524c9d@%3Cdev.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/fe74d173689600d9a395d026f0bf5d154c0bf7bd195ecfbc2c987036@%3Cdev.tamaya.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2021.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujul2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}, {
"type" : "WEB",
"url" : "http://jvn.jp/en/jp/JVN71498764/index.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2019/05/24/2"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/108422"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-05-29T18:15:06Z",
"nvd_published_at" : "2019-05-28T19:29:00Z"
}
}