CVE-2015-0264: Apache Camel allows remote actor to read arbitrary files via external entity in invalid XML string or GenericFile object

org.apache.camel:camel-core Updated 02 Oct 2025

Summary

16/10/2018
Yes i
Moderate
Not published

CVE-2015-0264: Multiple XML external entity (XXE) vulnerabilities in builder/xml/XPathBuilder.java in Apache Camel before 2.13.4 and 2.14.x before 2.14.2 allow remote attackers to read arbitrary files via an external entity in an inval... Affects org.apache.camel:camel-core across 2 version ranges.

< 2.13.4 >= 2.14.0, < 2.14.2

Fixed in 2.13.4 or 2.14.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It allows developers to build integration solutions using various protocols and technologies. The 'camel-core' package is a fundamental component of Apache Camel, providing core functionality and features for message routing and transformation. This package is vulnerable to multiple XML external entity (XXE) attacks.

Vulnerability Detail

The vulnerability in Apache Camel arises from the improper handling of XML external entities. Specifically, the 'XPathBuilder' class in the 'builder/xml/XPathBuilder.java' file is affected. Remote attackers can exploit this vulnerability by injecting malicious external entities into an invalid XML string or a 'GenericFile' object used in an XPath query. By leveraging this vulnerability, attackers can read arbitrary files on the system, potentially exposing sensitive information.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.13.4 2.13.4
  • >= 2.14.0, < 2.14.2 2.14.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, it is advised to sanitize user input and validate XML data before passing it to the affected XPathBuilder class. Additionally, restricting access to the XPathBuilder functionality or implementing proper access controls can help mitigate the risk associated with this vulnerability.

Conclusion

The vulnerability in Apache Camel allows remote actors to read arbitrary files on the system by exploiting XML external entity (XXE) vulnerabilities. It is crucial to upgrade to the fixed versions of Apache Camel to mitigate this risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.camel:camel-core →

Share this vulnerability

FAQ

Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It enables developers to build integration solutions using various protocols and technologies.

The 'camel-core' package is a fundamental component of Apache Camel, providing core functionality and features for message routing and transformation.

An XML external entity (XXE) vulnerability is a type of attack that exploits the improper handling of external entities in XML parsing. By injecting malicious entities, an attacker can read arbitrary files, potentially exposing sensitive information.

This vulnerability can be exploited by injecting malicious external entities into an invalid XML string or a 'GenericFile' object used in an XPath query. By doing so, an attacker can read arbitrary files on the system.

To fix this vulnerability, it is recommended to upgrade to a fixed version of Apache Camel. For versions prior to 2.13.4, upgrade to 2.13.4 or later. For versions between 2.14.0 and 2.14.2, upgrade to 2.14.2 or later.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.camel:camel-core.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 2.13.4 2.13.4
  • >= 2.14.0, < 2.14.2 2.14.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.