Vulnerabilities / CVE-2026-40453

critical

CVE-2026-40453

Apache Camel: org.apache.camel: Apache Camel: Remote Code Execution and Arbitrary File Write via case-variant header injection

Published Modified CWE 178
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA10.0CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Red Hat9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by GHSA, Red Hat.

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 packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.camel:camel-coap, org.apache.camel:camel-google-pubsub, org.apache.camel:camel-jms and 1 more4.14.6, 4.18.2, 4.20.0
chainguardapache-activemq-6.1, apache-activemq-6.2, apache-activemq-fips-6.1 and 1 more6.1.8-r4 and 3 more
minimosapache-activemq-6.2, apache-activemq-6.2-fips6.2.8-r0
Show all 10 entries from 3 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.camel:camel-coap4.14.6, 4.18.2, 4.20.0
maven::GitHub Security Advisory Mavenorg.apache.camel:camel-google-pubsub4.14.6, 4.18.2, 4.20.0
maven::GitHub Security Advisory Mavenorg.apache.camel:camel-jms4.14.6, 4.18.2, 4.20.0
maven::GitHub Security Advisory Mavenorg.apache.camel:camel-sjms4.14.6, 4.18.2, 4.20.0
chainguardapache-activemq-6.16.1.8-r4
chainguardapache-activemq-6.26.2.5-r5
chainguardapache-activemq-fips-6.16.1.8-r6
chainguardapache-activemq-fips-6.26.2.5-r3
minimosapache-activemq-6.26.2.8-r0
minimosapache-activemq-6.2-fips6.2.8-r0

References

All 16 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.