CVE-2018-8027: Camel core Apache Is Vulnerable To XXE Vulnerability

CRITICAL
Advisory Identifier: GHSA-8vfm-4388-6rpc
CVSS 9.8
CWE-611
Published
Advisory Summary

CVE-2018-8027 is a CRITICAL (CVSS 9.8) apache is vulnerable to xxe vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Camel core libraries in the Maven ecosystem. The issue involves apache is vulnerable to xxe in xsd validation processor. Remediation is available by upgrading affected packages to version 2.20.4, 2.21.1.

CVE-2018-8027 at a Glance

CVE Identifier CVE-2018-8027
GHSA Identifier GHSA-8vfm-4388-6rpc
Severity CRITICAL
CVSS v3.1 Base Score 9.8
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: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2018-8027

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.20.4
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>2.20.4</version>
</dependency>
org.apache.camel:camel-core fixed: 2.21.1
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>2.21.1</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-2018-8027, 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.20.4), 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 2.20.0 to 2.20.3 and 2.21.0 Core is vulnerable to XXE in XSD validation processor.

CVE-2018-8027 Affected Camel core Versions

2 component(s)
Fixed Versions:
2.20.42.21.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.camel:camel-core
Maven
≥ 2.20.0
< 2.20.4
2.20.4
org.apache.camel:camel-core
Maven
≥ 2.21.0
< 2.21.1
All 1 versions
2.21.0
2.21.1

References

NVD — CVE-2018-8027 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-8027
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/ec3d0db81ba061b27e934d5ff56e9baca0049eb
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/9f7376abbff7434794f2c7c2909e02bac232fb5
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/9c6a8f61de40c20f28240fbb2af4cb425793d41
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/99cbcd78b7e64083fae1d9552ead7425a90994b
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/8afc5d1757795fde715902067360af5d90f046d
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/87c92b7b38890c217bc76f2c55036e6a5cca9a0
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/8467d644813a62f3a836c0c7dee8cf5a41de3c0
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/3fe03e361725b66c1c3eaa40bb11577fb3dc17b
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/2e8f21dec883b083ddcdddd802847b4c378a61a
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/2c6964ae94d8f9a9c9a32e5ae5a0b794e8b8d3b
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/24eefa559fe6b310629d2bf00663d2679ec81b9
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/22c355bb4ffb500405499d189db30932ca5aac9
Camel core Source Repository REPOSITORY
https://github.com/apache/camel
issues.apache.org/jira/browse/camel-1... WEB
https://issues.apache.org/jira/browse/CAMEL-10894
issues.apache.org/jira/browse/camel-1... WEB
https://issues.apache.org/jira/browse/CAMEL-12444
lists.apache.org/thread.html/2318d7f... WEB
https://lists.apache.org/thread.html/2318d7f7d87724d8716cd650c21b31cb06e4d34f6d0f5ee42f28fdaf@%3Ccommits.camel.apache.org%3E
lists.apache.org/thread.html/77f596f... WEB
https://lists.apache.org/thread.html/77f596fc63e63c2e9adcff3c34759b32c225cf0b582aedb755adaade@%3Cdev.camel.apache.org%3E
lists.apache.org/thread.html/b4014ea... WEB
https://lists.apache.org/thread.html/b4014ea7c5830ca1fc28edd5cafedfe93ad4af2d9e69c961c5def31d@%3Ccommits.camel.apache.org%3E
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-8vfm-4388-6rpc
Camel core Security Information SECURITY
http://camel.apache.org/security-advisories.data/CVE-2018-8027.txt.asc

Frequently Asked Questions

What is CVE-2018-8027?
CVE-2018-8027 is a security vulnerability in Camel core involving Apache is vulnerable to XXE in XSD validation processor under CWE-611: Improper Restriction of XML External Entity Reference.
Which Camel core versions are affected?
Affected versions include releases prior to 2.20.4, 2.21.1 across affected packages: org.apache.camel:camel-core.
What version fixes CVE-2018-8027?
Upgrading to 2.20.4, 2.21.1 (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.20.4, 2.21.1. Upgrade your dependency to 2.20.4, 2.21.1 or later.
What is the CVSS score of CVE-2018-8027?
CVE-2018-8027 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-8027?
CVE-2018-8027 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-2018-8027?
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-8vfm-4388-6rpc",
  "modified" : "2022-11-17T18:47:38Z",
  "published" : "2018-10-16T23:06:25Z",
  "aliases" : [ "CVE-2018-8027" ],
  "summary" : "Apache is vulnerable to XXE in XSD validation processor",
  "details" : "Apache Camel 2.20.0 to 2.20.3 and 2.21.0 Core is vulnerable to XXE in XSD validation processor.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.20.0"
      }, {
        "fixed" : "2.20.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.camel:camel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.21.0"
      }, {
        "fixed" : "2.21.1"
      } ]
    } ],
    "versions" : [ "2.21.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8027"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/ec3d0db81ba061b27e934d5ff56e9baca0049eb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/9f7376abbff7434794f2c7c2909e02bac232fb5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/9c6a8f61de40c20f28240fbb2af4cb425793d41"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/99cbcd78b7e64083fae1d9552ead7425a90994b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/8afc5d1757795fde715902067360af5d90f046d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/87c92b7b38890c217bc76f2c55036e6a5cca9a0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/8467d644813a62f3a836c0c7dee8cf5a41de3c0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/3fe03e361725b66c1c3eaa40bb11577fb3dc17b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/2e8f21dec883b083ddcdddd802847b4c378a61a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/2c6964ae94d8f9a9c9a32e5ae5a0b794e8b8d3b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/24eefa559fe6b310629d2bf00663d2679ec81b9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/camel/commit/22c355bb4ffb500405499d189db30932ca5aac9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/camel"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-10894"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/CAMEL-12444"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/2318d7f7d87724d8716cd650c21b31cb06e4d34f6d0f5ee42f28fdaf@%3Ccommits.camel.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/77f596fc63e63c2e9adcff3c34759b32c225cf0b582aedb755adaade@%3Cdev.camel.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b4014ea7c5830ca1fc28edd5cafedfe93ad4af2d9e69c961c5def31d@%3Ccommits.camel.apache.org%3E"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-8vfm-4388-6rpc"
  }, {
    "type" : "WEB",
    "url" : "http://camel.apache.org/security-advisories.data/CVE-2018-8027.txt.asc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:26:41Z",
    "nvd_published_at" : null
  }
}