CVE-2026-40453
Apache Camel has an incomplete fix for CVE-2025-27636
Description
The fix for CVE-2025-27636 added setLowerCase(true) to HttpHeaderFilterStrategy so that case-variant header names such as 'CAmelExecCommandExecutable' are filtered out alongside 'CamelExecCommandExecutable'. The same setLowerCase(true) call was not applied to five non-HTTP HeaderFilterStrategy implementations: JmsHeaderFilterStrategy and ClassicJmsHeaderFilterStrategy in camel-jms, SjmsHeaderFilterStrategy in camel-sjms, CoAPHeaderFilterStrategy in camel-coap, and GooglePubsubHeaderFilterStrategy in camel-google-pubsub. Because those strategies use case-sensitive String.startsWith('Camel'/'camel') filtering while the Camel Exchange stores headers in a case-insensitive map, an attacker with JMS (or equivalent) producer access to the broker consumed by a Camel route can inject case-variant Camel internal headers, which are then resolved by downstream components such as camel-exec and camel-file using their canonical casing. This enables remote code execution and arbitrary file write on routes that forward JMS messages to header-driven components.
This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0.
Users are recommended to upgrade to version 4.20.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.2.
Affected Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-coap | >= 3.0.0, < 4.14.6>= 4.15.0, < 4.18.2>= 4.19.0, < 4.20.0 | 4.14.6, 4.18.2, 4.20.0 |
| org.apache.camel » camel-google-pubsub | >= 3.0.0, < 4.14.6>= 4.15.0, < 4.18.2>= 4.19.0, < 4.20.0 | 4.14.6, 4.18.2, 4.20.0 |
| org.apache.camel » camel-jms | >= 3.0.0, < 4.14.6>= 4.15.0, < 4.18.2>= 4.19.0, < 4.20.0 | 4.14.6, 4.18.2, 4.20.0 |
| org.apache.camel » camel-sjms | >= 3.0.0, < 4.14.6>= 4.15.0, < 4.18.2>= 4.19.0, < 4.20.0 | 4.14.6, 4.18.2, 4.20.0 |
Blast radius
22% of the dependent artifacts (118) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,697 |
| 2 hops | 9,700 |
| 3 hops | 5,737 |
| 4 hops | 2,217 |
| 5 hops | 2,340 |
| 6 hops | 18 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.alfresco » alfresco-repository121 usages
- org.apache.camel » camel-catalog87 usages
- org.alfresco » alfresco-remote-api67 usages
- org.apache.camel » camel-amqp57 usages
- org.apache.camel » camel-activemq47 usages
- org.apache.camel.springboot » camel-jackson-starter37 usages
- org.apache.camel.springboot » camel-servlet-starter31 usages
- org.apache.camel.springboot » camel-http-starter29 usages
- org.l2x6.cq » cq-maven-plugin22 usages
- org.apache.camel » camel-sjms219 usages
- org.apache.camel.quarkus » camel-quarkus-jms19 usages
Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-40453 | nvd.nist.gov |
| Package | apache/camel | github.com |
| Web | apache/camel pull request #22569 | github.com |
| Web | apache/camel pull request #22575 | github.com |
| Web | apache/camel pull request #22576 | github.com |
| Web | apache/camel commit 1e331da | github.com |
| Web | apache/camel commit 301bb74 | github.com |
| Web | apache/camel commit 3d2efee | github.com |
| Web | errata/RHSA-2026:17668 | access.redhat.com |
| Web | errata/RHSA-2026:19835 | access.redhat.com |
| Web | security/cve/CVE-2026-40453 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | security/CVE-2026-40453.html | camel.apache.org |
| Web | jira/browse/CAMEL-23313 | issues.apache.org |
