Apache camel-coap allows header injection that can lead to remote code execution
Critical severity
GitHub Reviewed
Published
Apr 27, 2026
to the GitHub Advisory Database
•
Updated May 5, 2026
Package
Affected versions
>= 4.14.0, <= 4.14.5
>= 4.18.0, < 4.18.1
Patched versions
4.14.6
4.18.1
Description
Published by the National Vulnerability Database
Apr 27, 2026
Published to the GitHub Advisory Database
Apr 27, 2026
Reviewed
May 5, 2026
Last updated
May 5, 2026
Apache Camel's camel-coap component is vulnerable to header injection because it maps CoAP request URI query parameters directly into Camel message headers without applying a HeaderFilterStrategy. An unauthenticated attacker can send a crafted CoAP request to inject arbitrary Camel internal headers into the exchange.
When a vulnerable route forwards that exchange to a header-sensitive downstream producer, the attacker may be able to control producer behavior. For example, in routes using camel-exec, injected headers can override the configured executable and arguments, which can result in arbitrary command execution with the privileges of the Camel process. Command output may be returned to the attacker in the CoAP response.
This issue affects org.apache.camel:camel-coap from 4.14.0 through 4.14.5 and from 4.18.0 before 4.18.1. It is fixed in 4.14.6, 4.18.1, and 4.19.0.
References