CVE-2026-40453: CWE-178 Improper Handling of Case Sensitivity in Apache Software Foundation Apache Camel JMS
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-40453 in Apache Camel JMS stems from inconsistent application of case-insensitive filtering in header filter strategies. While the HTTP HeaderFilterStrategy was fixed in a prior CVE by enforcing lowercase filtering, five other strategies including JmsHeaderFilterStrategy and ClassicJmsHeaderFilterStrategy did not receive this fix. Because Camel stores headers in a case-insensitive map but filters headers using case-sensitive checks, an attacker with JMS producer access can inject headers with variant casing that bypass filtering. These injected headers are then interpreted by downstream components such as camel-exec and camel-file, potentially leading to remote code execution and arbitrary file writes. The vulnerability affects Apache Camel versions 3.0.0 up to but not including 4.14.6, 4.15.0 up to but not including 4.18.2, and 4.19.0 up to but not including 4.20.0. The vendor recommends upgrading to fixed versions 4.14.6, 4.18.2, or 4.20.0 depending on the release stream. Red Hat advisories confirm the critical severity and provide updates for their builds.
Potential Impact
Successful exploitation allows an attacker with JMS producer access to inject specially crafted headers with case variants that bypass filtering controls. This can lead to remote code execution and arbitrary file writes on routes that forward JMS messages to header-driven components such as camel-exec and camel-file. The vulnerability compromises confidentiality, integrity, and availability of affected systems, rated with a CVSS 3.1 score of 9.9 (critical).
Mitigation Recommendations
A fix is available. Users should upgrade to Apache Camel version 4.20.0 or later. For users on the 4.14.x LTS stream, upgrade to 4.14.6 is recommended. For those on the 4.18.x stream, upgrade to 4.18.2 is advised. Red Hat provides updated builds addressing this vulnerability. Applying these updates will remediate the issue. No alternative mitigations or workarounds are indicated in the vendor advisory.
CVE-2026-40453: CWE-178 Improper Handling of Case Sensitivity in Apache Software Foundation Apache Camel JMS
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.
CVSS v3.1
Score 9.9critical
Affected software
pkg:maven/org.apache.camel/camel-jmsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-40453 in Apache Camel JMS stems from inconsistent application of case-insensitive filtering in header filter strategies. While the HTTP HeaderFilterStrategy was fixed in a prior CVE by enforcing lowercase filtering, five other strategies including JmsHeaderFilterStrategy and ClassicJmsHeaderFilterStrategy did not receive this fix. Because Camel stores headers in a case-insensitive map but filters headers using case-sensitive checks, an attacker with JMS producer access can inject headers with variant casing that bypass filtering. These injected headers are then interpreted by downstream components such as camel-exec and camel-file, potentially leading to remote code execution and arbitrary file writes. The vulnerability affects Apache Camel versions 3.0.0 up to but not including 4.14.6, 4.15.0 up to but not including 4.18.2, and 4.19.0 up to but not including 4.20.0. The vendor recommends upgrading to fixed versions 4.14.6, 4.18.2, or 4.20.0 depending on the release stream. Red Hat advisories confirm the critical severity and provide updates for their builds.
Potential Impact
Successful exploitation allows an attacker with JMS producer access to inject specially crafted headers with case variants that bypass filtering controls. This can lead to remote code execution and arbitrary file writes on routes that forward JMS messages to header-driven components such as camel-exec and camel-file. The vulnerability compromises confidentiality, integrity, and availability of affected systems, rated with a CVSS 3.1 score of 9.9 (critical).
Mitigation Recommendations
A fix is available. Users should upgrade to Apache Camel version 4.20.0 or later. For users on the 4.14.x LTS stream, upgrade to 4.14.6 is recommended. For those on the 4.18.x stream, upgrade to 4.18.2 is advised. Red Hat provides updated builds addressing this vulnerability. Applying these updates will remediate the issue. No alternative mitigations or workarounds are indicated in the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-13T08:27:50.386Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-40453","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19835","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17668","vendor":"Red Hat"}]
Threat ID: 69ef291bba26a39fba10e17d
Added to database: 04/27/2026, 09:15:07 UTC
Last enriched: 07/15/2026, 09:11:01 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 160
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.