← Security advisories
Apache Camel security advisory

CVE-2026-121883

Camel-Netty unmarshalls DefaultExchangeHolder without the transferExchange gate when using ObjectDecoder

Description

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.

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 Zhixi "Jace" Sun, independent security researcher

Notes

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

References