Skip to content

CVE-2026-33453 Apache Camel: CoAP URI Query Parameter to Exchange Header Injection in camel-coap Allows Single-Packet Pre-Auth Remote Code Execution

HighCVSS 8.1 EPSS 9.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Red Hat

Description

Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerability in Apache Camel Camel-Coap component.

Apache Camel's camel-coap component is vulnerable to Camel message header injection, leading to remote code execution when routes forward CoAP requests to header-sensitive producers (e.g. camel-exec)

The camel-coap component maps incoming CoAP request URI query parameters directly into Camel Exchange In message headers without applying any HeaderFilterStrategy.  
Specifically, CamelCoapResource.handleRequest() iterates over OptionSet.getUriQuery() and calls camelExchange.getIn().setHeader(...) for every query parameter. CoAPEndpoint extends DefaultEndpoint rather than DefaultHeaderFilterStrategyEndpoint, and CoAPComponent does not implement HeaderFilterStrategyComponent; the component contains no references to HeaderFilterStrategy at all.

As a result, an unauthenticated attacker who can send a single CoAP UDP packet to a Camel route consuming from coap:// can inject arbitrary Camel internal headers (those prefixed with Camel*) into the Exchange. When the route delivers the message to a header-sensitive producer such as camel-exec, camel-sql, camel-bean, camel-file, or template components (camel-freemarker, camel-velocity), the injected headers can alter the producer's behavior. In the case of camel-exec, the CamelExecCommandExecutable and CamelExecCommandArgs headers override the executable and arguments configured on the endpoint, resulting in arbitrary OS command execution under the privileges of the Camel process.

The producer's output is written back to the Exchange body and returned in the CoAP response payload by CamelCoapResource, giving the attacker an interactive RCE channel without any need for out-of-band exfiltration.
                                                                                                                                                                       
Exploitation prerequisites are minimal: a single unauthenticated UDP datagram to the CoAP port (default 5683). CoAP (RFC 7252) has no built-in authentication, and DTLS is optional and disabled by default. Because the protocol is UDP-based, HTTP-layer WAF/IDS controls do not apply.
This issue affects Apache Camel: from 4.14.0 through 4.14.5, from 4.18.0 before 4.18.1, 4.19.0.

Users are recommended to upgrade to version 4.18.1 or 4.19.0, fixing the issue.

Upgrade path

7 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
redhat jbosseapxp All versions No fix listed No fix yet
redhat/camel-coap(Red Hat apache_camel_spring_boot 4.18) All versions No fix listed No fix yet
apache camel = 4.18.0; = 4.19.0; >= 4.14.0, <= 4.14.5 after 4.14.5 Fixed
org.apache.camel/camel-coap(Maven) = 4.14.0; = 4.14.1; = 4.14.2; = 4.14.3 +7 more 4.14.6, 4.18.1 Fixed
redhat apache camel spring boot = 4.18 No fix listed Versions listed
redhat jboss enterprise application platform = 8 No fix listed Versions listed
redhat jboss fuse = 7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
org.apache.camel/camel-coap(Maven) >= 4.14.0, < 4.14.6 4.14.6
org.apache.camel/camel-coap(Maven) = 4.14.0 No fix listed
org.apache.camel/camel-coap(Maven) = 4.14.1 No fix listed
org.apache.camel/camel-coap(Maven) = 4.14.2 No fix listed
org.apache.camel/camel-coap(Maven) = 4.14.3 No fix listed
org.apache.camel/camel-coap(Maven) = 4.14.4 No fix listed
org.apache.camel/camel-coap(Maven) = 4.14.5 No fix listed
org.apache.camel/camel-coap(Maven) >= 4.18.0, < 4.18.1 4.18.1
org.apache.camel/camel-coap(Maven) = 4.18.0 No fix listed
org.apache.camel/camel-coap(Maven) >= 4.14.0, <= 4.14.5 No fix listed
org.apache.camel/camel-coap(Maven) = 4.19.0 No fix listed
redhat apache camel spring boot = 4.18 No fix listed
redhat jboss fuse = 7 No fix listed
redhat jboss enterprise application platform = 8 No fix listed
redhat jbosseapxp All versions No fix listed
redhat/camel-coap(Red Hat:apache_camel_spring_boot:4.18) All versions No fix listed
apache camel >= 4.14.0, <= 4.14.5 No fix listed
apache camel = 4.18.0 No fix listed
apache camel = 4.19.0 No fix listed

References