CVE-2026-109146: Apache Camel: Camel-Chunk expands untrusted message data as template code, disclosing other headers and variables
Improper Neutralization of Special Elements Used in a Template Engine vulnerability in Apache Camel Chunk component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2, from 4.23.0 before 4.24.0.
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.
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.
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.18.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.22.2
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using the Apache Camel Chunk component are affected if they run Camel 4.0.0 through versions before 4.18.6, 4.19.0 through versions before 4.22.2, or 4.23.0 through versions before 4.24.0.
What must an attacker be able to do to exploit this issue?
An attacker needs to cause attacker-controlled content to be present in a message body or header processed by camel-chunk. Template directives in that data can then be evaluated and read other message headers or template variables.
What information can be exposed?
The issue can disclose other message headers and template variables available to the Chunk template. The provided data does not indicate integrity impact or availability impact.
What should teams do if they are running an affected version?
Upgrade to Apache Camel 4.24.0, or to 4.22.2 on the 4.22.x LTS stream, or 4.18.6 on the 4.18.x LTS stream. These releases render message data literally rather than re-parsing it as Chunk template code.