Apache Camel security advisory
CVE-2026-109146
Camel-Chunk expands untrusted message data as template code, disclosing other headers and variables
Description
camel-chunk re-parsed untrusted message body and header content as Chunk template code, so template directives contained in attacker-controlled data were evaluated and could read other message headers and template variables. The fixed releases render the message data literally instead of re-parsing it as a template.
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.2. 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-25585 refers to the various commits that resolved the issue, and have more details.