← Security advisories
Apache Camel security advisory

CVE-2026-112194

Camel-Smooks XML External Entity Processing and File Disclosure via Message Bodies Already Converted to a Smooks Source (Incomplete Fix for CVE-2026-88901)

Description

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.

Mitigation

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.

Credit

This issue was discovered by Shashank Mohan Jain

Notes

The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25787 refers to the various commits that resolved the issue, and have more details.

References