CVE-2019-0188: XML External Entity injection in Apache Camel
Summary
CVE-2019-0188: XML External Entity injection in Apache Camel. Affects org.apache.camel:camel-core versions < 2.24.0. Fixed in 2.24.0. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It allows developers to integrate different systems using various protocols and technologies. The camel-xmljson component, which has been removed, was responsible for converting XML to JSON and vice versa.
Vulnerability Detail
The vulnerability (CVE-2019-0188) is an XML External Entity (XXE) injection flaw in Apache Camel prior to version 2.24.0. This vulnerability is caused by the usage of an outdated and vulnerable JSON-lib library. The camel-xmljson component, which is now removed, was affected by this vulnerability. An attacker could exploit this vulnerability by sending specially crafted XML input to an application using the camel-xmljson component, leading to the disclosure of internal files, denial of service, or server-side request forgery.
How To Fix
Latest published version: 4.23.0 as of 22 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.24.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As the camel-xmljson component has been removed, there is no specific workaround available for this vulnerability. However, users can mitigate the risk by ensuring that their Apache Camel version is up to date and by following secure coding practices.
Conclusion
The XML External Entity injection vulnerability in Apache Camel (CVE-2019-0188) can be mitigated by upgrading to version 2.24.0 or later and ensuring the usage of a secure version of the JSON-lib library. For further assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.apache.camel:camel-core →
FAQ
Apache Camel is an open-source integration framework that provides a rule-based routing and mediation engine. It allows developers to integrate different systems using various protocols and technologies.
XML External Entity (XXE) injection is a vulnerability that allows an attacker to exploit an XML parser's functionality to disclose internal files, perform denial of service attacks, or initiate server-side request forgery.
The camel-xmljson component of Apache Camel, responsible for converting XML to JSON and vice versa, is affected by this vulnerability. However, this component has been removed in the latest version of Apache Camel.
Exploiting this vulnerability could lead to the disclosure of internal files, denial of service attacks, or server-side request forgery, depending on the attacker's intentions.
To fix this vulnerability, it is recommended to upgrade Apache Camel to version 2.24.0 or later. Additionally, updating the vulnerable library, JSON-lib, to a secure version is advised.
Related vulnerabilities
Recent vulnerabilities recorded for org.apache.camel:camel-core.