cve.bz

CVE-2026-40453 apache camel: Improper Handling of Case Sensitivity

9.9 criticalEPSS 2.1%Fix available

Critical (9.9) in apache camel. EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.camel:camel-coap 4.14.6, 4.18.2, 4.20.0.

On this page
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.

Severity

CVSS 3.1

9.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-178 Improper Handling of Case Sensitivity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.apache.camel:camel-coap (Maven): fixed in 4.14.6, 4.18.2, 4.20.0
  • org.apache.camel:camel-google-pubsub (Maven): fixed in 4.14.6, 4.18.2, 4.20.0
  • org.apache.camel:camel-jms (Maven): fixed in 4.14.6, 4.18.2, 4.20.0
  • org.apache.camel:camel-sjms (Maven): fixed in 4.14.6, 4.18.2, 4.20.0
  • Vendor advisory: https://camel.apache.org/security/CVE-2026-40453.html

Ask an AI about this CVE

Show the promptExplain CVE-2026-40453 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40453?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40453?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40453 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-40453

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-40453](https://cve.bz/cve/badge/CVE-2026-40453.svg)](https://cve.bz/cve/CVE-2026-40453)

HTML:

<a href="https://cve.bz/cve/CVE-2026-40453"><img src="https://cve.bz/cve/badge/CVE-2026-40453.svg" alt="CVE-2026-40453"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Camel JMSfrom 3.0.0 before 4.14.6
Apache Software Foundation Apache Camel JMSfrom 4.15.0 before 4.18.2
Apache Software Foundation Apache Camel JMSfrom 4.19.0 before 4.20.0
Apache Software Foundation Apache Camel CoAPfrom 3.0.0 before 4.14.6
Apache Software Foundation Apache Camel CoAPfrom 4.15.0 before 4.18.2
Apache Software Foundation Apache Camel CoAPfrom 4.19.0 before 4.20.0
Apache Software Foundation Apache Camel Google PubSubfrom 3.0.0 before 4.14.6
Apache Software Foundation Apache Camel Google PubSubfrom 4.15.0 before 4.18.2
Apache Software Foundation Apache Camel Google PubSubfrom 4.19.0 before 4.20.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-coap>=3.0.0 <4.14.64.14.6
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-coap>=4.15.0 <4.18.24.18.2
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-coap>=4.19.0 <4.20.04.20.0
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-google-pubsub>=3.0.0 <4.14.64.14.6
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-google-pubsub>=4.15.0 <4.18.24.18.2
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-google-pubsub>=4.19.0 <4.20.04.20.0
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-jms>=3.0.0 <4.14.64.14.6
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-jms>=4.15.0 <4.18.24.18.2
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-jms>=4.19.0 <4.20.04.20.0
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-sjms>=3.0.0 <4.14.64.14.6
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-sjms>=4.15.0 <4.18.24.18.2
GHSA-jg2m-9x48-3gvjMavenorg.apache.camel:camel-sjms>=4.19.0 <4.20.04.20.0

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This Critical flaw in Apache Camel allows remote code execution and arbitrary file write. An attacker with Java Message Service (JMS) producer access can exploit a discrepancy in header processing, where case-variant internal headers are filtered case-sensitively but processed case-insensitively. This enables the injection of malicious headers into Camel routes that forward JMS messages to header-driven components, posing a significant risk to affected Red Hat products.

The critical severity is tied to the low complexity and low privileges required by the attack to exploit this vulnerability, this flaw also differs from the CVE-2025-27636 in the fact that an attacker may leverage this flaw to execute code that are beyond the methods already in the classpath meaning the impact for Integrity, Availability and Confidentiality is higher for this CVE and the impact scope may go beyond of only Apache Camel component but can impact the whole server hosting it.

Red Hat's mitigation

This flaw may be mitigated by temporarily disabling routes that allows arbitrary writes and executions (camel-exec and camel-file)

ProductPackageStateAdvisory
Red Hat Build of Apache Camel 4.14 for Quarkus 3.27camel-google-pubsubFixed 2026-05-20RHSA-2026:19835
Red Hat Build of Apache Camel 4.14 for Quarkus 3.27camel-jmsFixed 2026-05-20RHSA-2026:19835
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-google-pubsubFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-httpFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-http-baseFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-http-commonFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-http-starterFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-jmsFixed 2026-05-14RHSA-2026:17668
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-ddb-streams-source-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-s3-sink-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-s3-source-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-sns-sink-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-sqs-sink-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-aws-sqs-source-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-log-sink-rhel9Under investigation
OpenShift Serverlessopenshift-serverless-1/kn-eventing-integrations-timer-source-rhel9Under investigation
Red Hat build of Apache Camel 4 for Quarkus 3camel-google-pubsubAffected
Red Hat build of Apache Camel 4 for Quarkus 3camel-httpNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-http-baseNot affected
Red Hat build of Apache Camel 4 for Quarkus 3camel-http-commonNot affected
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40453.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • oscerd/CVE-2026-40453 Harbor Check: matches CVE 0 stars, Java, created
    Reproducer for CVE-2026-40453: Apache Camel case-variant Camel header injection (incomplete fix of CVE-2025-27636)

References

Check your stackJSON