ADVISORIES

GitHub Advisory Database

GHSA-695c-x5gc-94gj

Apache camel-coap allows header injection that can lead to remote code execution

Critical CVE-2026-33453

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.apache.camel:camel-coap
From 4.14.0 before 4.14.6 (fixed in 4.14.6)
Mavenorg.apache.camel:camel-coap
From 4.18.0 before 4.18.1 (fixed in 4.18.1)

References