CVE-2026-112194: Apache Camel: Camel-Smooks XML External Entity Processing and File Disclosure via Message Bodies Already Converted to a Smooks Source (Incomplete Fix for CVE-2026-88901)
Improper Restriction of XML External Entity Reference vulnerability in Apache Camel Smooks component.
This issue affects Apache Camel: from 4.7.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
Improper Restriction of XML External Entity Reference in the Smooks component (camel-smooks) of Apache Camel allows an attacker who supplies the XML message body to read local files, or to cause requests to hosts the document names, when the route passes that body to the Smooks component or SmooksProcessor already converted to a Smooks Source, such as a StringSource, StreamSource, ReaderSource, ByteSource or URLSource. The fix for CVE-2026-88901 parses the XML body with a hardened parser only when the body is not already a Smooks Source, so such a body is still parsed by the default Smooks XML reader, which resolves external entities, even when allowExternalEntities is left at its default of false; configurations that declare their own reader, such as EDI, CSV or JSON, are not affected. This issue affects Apache Camel: from 4.7.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0; users are recommended to upgrade to version 4.24.0, or to 4.22.3 or 4.18.6 on the LTS streams, which fix the issue.
Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.24.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.22.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.18.6
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using the Apache Camel Smooks component are exposed when an attacker can supply an XML message body and the route passes that body to Smooks or SmooksProcessor already represented as a Smooks Source, such as StringSource, StreamSource, ReaderSource, ByteSource, or URLSource. Configurations that explicitly declare an EDI, CSV, or JSON reader are not affected.
Does leaving allowExternalEntities disabled prevent exploitation?
No. The issue can still occur with allowExternalEntities at its default value of false when the XML body is already a Smooks Source, because it is parsed by the default Smooks XML reader, which resolves external entities.
What can an unauthenticated attacker do?
An attacker who can provide the XML message body can use external entity references to read local files or cause requests to hosts named in the document. The reported vector requires no privileges or user interaction.
Which versions should be used to remediate the issue?
Upgrade to Apache Camel 4.18.6, 4.22.3, or 4.24.0 or later within the applicable release line. Affected ranges are 4.7.0 through before 4.18.6, 4.19.0 through before 4.22.3, and 4.23.0 through before 4.24.0.