CVE-2026-33453
JSON

10.0critical

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

Severity
10.0critical CVSS:3.1 by CISA-ADP
Exploit likelihood
9.18% (higher than 95% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-695c-x5gc-94gj

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.

Affected

Product or packageVersionsReported by
org.apache.camel:camel-coapfrom 4.14.0 up to 4.14.5, from 4.18.0 before 4.18.1, 4.19.0CVE List
camel-coapNot specifiedCVE List
apache-camelNot specifiedCVE List
apache-camel-k-runtimeNot specifiedCVE List
camel-coap-starterNot specifiedCVE List
org.apache.camel:camel-coap (Maven)from 4.14.0 before 4.14.6, from 4.18.0 before 4.18.1GitHub Advisory Database
apache camelfrom 4.14.0 up to 4.14.5, 4.18.0, 4.19.0NVD

All scores

CISA-ADP10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-915

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Vulnerabilidad de Modificación Incontrolada de Atributos de Objeto Determinados Dinámicamente en el componente Camel-Coap de Apache Camel. El componente camel-coap de Apache Camel es vulnerable a la inyección de encabezados de mensajes de Camel, lo que lleva a la ejecución remota de código cuando las rutas reenvían solicitudes CoAP a productores sensibles a encabezados (p. ej., camel-exec). El componente camel-coap mapea los parámetros de consulta URI de las solicitudes CoAP entrantes directamente en los encabezados de mensajes de entrada de Camel Exchange sin aplicar ninguna HeaderFilterStrategy. Específicamente, CamelCoapResource.handleRequest() itera sobre OptionSet.getUriQuery() y llama a camelExchange.getIn().setHeader(...) para cada parámetro de consulta. CoAPEndpoint extiende DefaultEndpoint en lugar de DefaultHeaderFilterStrategyEndpoint, y CoAPComponent no implementa HeaderFilterStrategyComponent; el componente no contiene ninguna referencia a HeaderFilterStrategy en absoluto. Como resultado, un atacante no autenticado que puede enviar un único paquete UDP CoAP a una ruta Camel que consume de coap:// puede inyectar encabezados internos arbitrarios de Camel (aquellos prefijados con Camel) en el Exchange. Cuando la ruta entrega el mensaje a un productor sensible a encabezados como camel-exec, camel-sql, camel-bean, camel-file, o componentes de plantilla (camel-freemarker, camel-velocity), los encabezados inyectados pueden alterar el comportamiento del productor. En el caso de camel-exec, los encabezados CamelExecCommandExecutable y CamelExecCommandArgs anulan el ejecutable y los argumentos configurados en el endpoint, lo que resulta en la ejecución arbitraria de comandos del sistema operativo bajo los privilegios del proceso Camel. La salida del productor se escribe de nuevo en el cuerpo del Exchange y es devuelta en la carga útil de la respuesta CoAP por CamelCoapResource, dando al atacante un canal RCE interactivo sin necesidad de exfiltración fuera de banda. Los requisitos previos para la explotación son mínimos: un único datagrama UDP no autenticado al puerto CoAP (predeterminado 5683). CoAP (RFC 7252) no tiene autenticación incorporada, y DTLS es opcional y está deshabilitado por defecto. Debido a que el protocolo es basado en UDP, los controles WAF/IDS de capa HTTP no se aplican. Este problema afecta a Apache Camel: desde 4.14.0 hasta 4.14.5, desde 4.18.0 antes de 4.18.1, 4.19.0. Se recomienda a los usuarios actualizar a la versión 4.18.1 o 4.19.0, solucionando el problema.

References

https://camel.apache.org/security/CVE-2026-33453.htmlbroken-link, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2026/04/26/3mailing-list, third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-33453vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2463184issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33453.json
https://access.redhat.com/errata/RHSA-2026:17668vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-33453advisory
https://github.com/apache/camel/pull/22146web
https://github.com/apache/camel/pull/22147web
https://github.com/apache/camel/pull/22148web
https://github.com/apache/camel/commit/05cffa5ec05ff2ec3c50a77825625da6e426e7a8web
https://github.com/apache/camel/commit/3926ab2b7745e36da2cd8e0dc019018bc415aff9web

Sources

SourceRecordLicence
CVE ListCVE-2026-33453 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-695c-x5gc-94gj changed 2026-05-05CC-BY-4.0
NVDCVE-2026-33453 changed 2026-10-26Public domain