CVE-2019-0188: Camel core XML External Entity Injection Vulnerability

HIGH
Advisory Identifier: GHSA-h896-mx9x-g32g
CVSS 7.5
CWE-611
Published
Advisory Summary

CVE-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.

CVE-2019-0188 at a Glance

CVE Identifier CVE-2019-0188
GHSA Identifier GHSA-h896-mx9x-g32g
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Camel core
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

org.apache.camel:camel-core fixed: 2.24.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>2.24.0</version>
</dependency>
org.apache.camel:camel-xmljson fixed: Latest secure release
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-xmljson</artifactId>
    <version>Latest secure release</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.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

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.

CVE-2019-0188 Affected Camel core Versions

2 component(s)
Fixed Versions:
2.24.0
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

jvn.jp/en/jp/jvn71498764/i... WEB
http://jvn.jp/en/jp/JVN71498764/index.html
NVD — CVE-2019-0188 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-0188
Camel core Source Repository REPOSITORY
https://github.com/apache/camel/blob/master/docs/user-manual/en/security-advisories/CVE-2019-0188.txt.asc
issues.apache.org/jira/browse/tamaya-... WEB
https://issues.apache.org/jira/browse/TAMAYA-410
lists.apache.org/thread.html/0011838... WEB
https://lists.apache.org/thread.html/00118387610522b107cbdcec5369ddd512b576ff0236a02bfca12f44@%3Cusers.camel.apache.org%3E
lists.apache.org/thread.html/45349f8... WEB
https://lists.apache.org/thread.html/45349f8bd98c1c13a84beddede18fe79b8619ebab99d90f1fb43d7ab@%3Cdev.tamaya.apache.org%3E
lists.apache.org/thread.html/61601cd... WEB
https://lists.apache.org/thread.html/61601cda2c5f9832184ea14647b0c0589c94126a460c8eb196be1313@%3Ccommits.tamaya.apache.org%3E
lists.apache.org/thread.html/63d1cec... WEB
https://lists.apache.org/thread.html/63d1cec8541befeb59dbed23a6b227bdcca7674aa234fb43354dac82@%3Ccommits.tamaya.apache.org%3E
lists.apache.org/thread.html/6fefbd9... WEB
https://lists.apache.org/thread.html/6fefbd90f7fb4c8412d85ea3e9e97a4b76b47e206f502c73c29dc0b7@%3Ccommits.tamaya.apache.org%3E
lists.apache.org/thread.html/84ba9b7... WEB
https://lists.apache.org/thread.html/84ba9b79e801a4148dde73d1969cdae0247d11ff63de7ce11b394dc5@%3Ccommits.tamaya.apache.org%3E
lists.apache.org/thread.html/ac51944... WEB
https://lists.apache.org/thread.html/ac51944aef91dd5006b8510b0bef337adaccfe962fb90e7af9c22db4@%3Cissues.activemq.apache.org%3E
lists.apache.org/thread.html/eed73fc... WEB
https://lists.apache.org/thread.html/eed73fc18d4fa3e2341cd0ab101b47f06b16c7efc1cb73791c524c9d@%3Cdev.tamaya.apache.org%3E
lists.apache.org/thread.html/fe74d17... WEB
https://lists.apache.org/thread.html/fe74d173689600d9a395d026f0bf5d154c0bf7bd195ecfbc2c987036@%3Cdev.tamaya.apache.org%3E
Camel core Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2021.html
Camel core Security Information SECURITY
https://www.oracle.com/security-alerts/cpujul2020.html
Camel core Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
Camel core Security Information SECURITY
http://www.openwall.com/lists/oss-security/2019/05/24/2
Camel core Security Information SECURITY
http://www.securityfocus.com/bid/108422

Frequently Asked Questions

What is CVE-2019-0188?
CVE-2019-0188 is a security vulnerability in Camel core involving XML External Entity injection in Apache Camel under CWE-611: Improper Restriction of XML External Entity Reference.
Which Camel core versions are affected?
Affected versions include releases prior to 2.24.0 across affected packages: org.apache.camel:camel-core, org.apache.camel:camel-xmljson.
What version fixes CVE-2019-0188?
Upgrading to 2.24.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-core affected?
Yes, org.apache.camel:camel-core is affected in releases prior to 2.24.0. Upgrade your dependency to 2.24.0 or later.
Is camel-xmljson affected?
Yes, org.apache.camel:camel-xmljson is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-0188?
CVE-2019-0188 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-0188?
CVE-2019-0188 is classified under CWE-611: Improper Restriction of XML External Entity Reference (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.).
How can I check Maven dependencies for CVE-2019-0188?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. 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-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"
  }
}