CVE-2026-121883: Apache Camel: Camel-Netty unmarshalls DefaultExchangeHolder without the transferExchange gate when using ObjectDecoder
Deserialization of Untrusted Data vulnerability in Apache Camel Netty component.
This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.3, from 4.23.0 before 4.24.0.
In Apache Camel camel-netty, when using Netty's object codec (ObjectDecoder) on a TCP consumer, NettyPayloadHelper unmarshalled incoming DefaultExchangeHolder objects without verifying whether transferExchange=true was enabled on the endpoint. An unauthenticated network attacker could transmit a crafted serialized DefaultExchangeHolder to take control of the resulting Exchange state, replacing its body, properties, variables, and headers (including Camel internal control headers) without passing through configured header filters.
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.18.6 - 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.24.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Affected deployments use the Apache Camel Netty component with Netty's object codec (ObjectDecoder) on a TCP consumer. The affected version ranges are 4.0.0 through before 4.18.6, 4.19.0 through before 4.22.3, and 4.23.0 through before 4.24.0.
Does an attacker need authentication or a user action to exploit this?
No. An unauthenticated network attacker can send a crafted serialized DefaultExchangeHolder to the affected TCP consumer, and no user interaction is required.
What can an attacker change if exploitation succeeds?
An attacker can take control of the resulting Exchange state, including replacing its body, properties, variables, and headers. This includes Camel internal control headers, and the injected headers do not pass through configured header filters.
What is the recommended remediation?
Upgrade to Apache Camel 4.24.0. For supported LTS streams, upgrade to 4.22.3 on the 4.22.x stream or 4.18.6 on the 4.18.x stream.