CVE-2026-43866 — Vulnerability in org.apache.camel:camel-jms
Apache Camel JMS deserialization filter bypass
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.65%). Schedule for your next planned update.
Does your project use an affected org.apache.camel:camel-jms version?
Paste your pom.xml to check it for CVE-2026-43866 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Deserialization of Untrusted Data vulnerability in Apache Camel, Apache Camel JMS component.
JmsBinding.extractBodyFromJms() in camel-jms - and the equivalent JmsBinding in camel-sjms - deserializes the payload of an incoming JMS ObjectMessage via jakarta.jms.ObjectMessage.getObject() whenever the mapJmsMessage option is enabled (the default) and Camel acts as a JMS consumer. The CVE-2026-40860 hardening added a post-deserialization class check that rejects classes outside the default allow-list java.;javax.;org.apache.camel.;!*. However org.apache.camel.support.DefaultExchangeHolder itself lives in the allow-listed org.apache.camel. namespace, so an ObjectMessage whose top-level object is a DefaultExchangeHolder passes the check. The receiving side then calls DefaultExchangeHolder.unmarshal() on it without requiring the transferExchange option to be enabled - an asymmetric trust boundary, since the sending side gates ObjectMessage and transferExchange handling but the receiving side did not - writing every non-null field of the holder into the Exchange: the message body, the IN and OUT headers, the exchange properties, the variables, the exchange id and the exception. An attacker who can publish an ObjectMessage to a queue or topic consumed by an affected Camel application can therefore inject arbitrary Exchange state using only universally-trusted java.lang and java.util types, with no deserialization gadget chain required, to manipulate routing and headers, exchange properties and error handling. The same handling applies to camel-sjms and camel-sjms2, and to the JMS-family components built on JmsComponent and JmsBinding: camel-amqp, camel-activemq and camel-activemq6. This is a bypass of the CVE-2026-40860 fix rather than a flaw in it. This issue affects Apache Camel: from 3.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0; Apache Camel: from 3.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0.
Users are recommended to upgrade to version 4.21.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.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, JMS ObjectMessage handling is disabled by default in camel-jms, camel-sjms and the JMS-family components (a new objectMessageEnabled option defaults to false at the component and endpoint level), so an incoming ObjectMessage - including a DefaultExchangeHolder payload - is no longer deserialized unless the option is explicitly enabled; only set objectMessageEnabled=true when the consumed JMS destination is fed exclusively by trusted producers. For deployments that cannot upgrade immediately, restrict publish access to the queues and topics consumed by Camel to trusted producers via JMS broker authorization, and do not expose JMS consumers that map ObjectMessage bodies to untrusted networks; a JMS-provider deserialization allow-list does not mitigate this specific bypass because the crafted payload uses only universally-trusted classes.
Advisory Timeline
- First published July 6, 2026 (143 days ago).
- Last revised August 26, 2026 — 51 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-jms -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-activemq -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-amqp -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-sjms2 -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-sjms -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-sjms -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-amqp -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-activemq6 -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-amqp -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-sjms2 -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-activemq -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-activemq -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-sjms2 -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-jms -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-jms -->
<!-- Update pom.xml dependency version to 4.21.0 for org.apache.camel:camel-activemq6 -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-activemq6 -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-sjms -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (18)
Affects 1 ecosystem: Maven (6).
| Package | Fixed In |
|---|---|
| org.apache.camel:camel-jms Maven · Affected: 3.0.0, 3.0.1, 3.1.0, 3.10.0 (+132 more) | 4.14.8 |
| org.apache.camel:camel-activemq Maven · Affected: 3.0.0, 3.0.1, 3.1.0, 3.10.0 (+129 more) | 4.14.8 |
| org.apache.camel:camel-amqp Maven · Affected: 3.0.0, 3.0.1, 3.1.0, 3.10.0 (+132 more) | 4.14.8 |
| org.apache.camel:camel-sjms2 Maven · Affected: 3.0.0, 3.0.1, 3.1.0, 3.10.0 (+132 more) | 4.14.8 |
| org.apache.camel:camel-sjms Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-sjms Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-amqp Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-activemq6 Maven · Affected: 4.10.0, 4.10.1, 4.10.2, 4.10.3 (+29 more) | 4.14.8 |
| org.apache.camel:camel-amqp Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-sjms2 Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-activemq Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-activemq Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-sjms2 Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-jms Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-jms Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-activemq6 Maven · Affected: 4.19.0, 4.20.0 | 4.21.0 |
| org.apache.camel:camel-activemq6 Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-sjms Maven · Affected: 3.0.0, 3.0.1, 3.1.0, 3.10.0 (+132 more) | 4.14.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-43866ADVISORY
- https://github.com/apache/camel/pull/22970WEB
- https://github.com/apache/camel/pull/22968WEB
- https://github.com/apache/camel/pull/22945WEB
- https://github.com/apache/camel/pull/22920WEB
- https://github.com/apache/camel/pull/22918WEB
- https://github.com/apache/camel/pull/22866WEB
- https://github.com/apache/camel/commit/844bbf8c894c5e2bfa023579db80dcd3354c0e1bWEB
- https://github.com/apache/camel/commit/81449eb6ef3edf856c84117ce708beb2ada8f650WEB
- https://github.com/apache/camel/commit/75d7991b89265a2e8e62c7207165deb88c3a6ef3WEB
- https://github.com/apache/camel/commit/6cb29c0bbd7d1c46f057eac46c4afa62c9f5e00fWEB
- https://github.com/apache/camel/commit/17f8fcb22569f4c459b9e53c1485bfc764dc0015WEB
- https://github.com/apache/camel/commit/01ead5e8473a2b2fca4902c0236978805b990c31WEB
- https://github.com/apache/camelPACKAGE
- https://github.com/apache/camel/releases/tag/camel-4.14.8WEB
- https://github.com/apache/camel/releases/tag/camel-4.18.3WEB
- https://github.com/apache/camel/releases/tag/camel-4.21.0WEB
- https://issues.apache.org/jira/browse/CAMEL-23373WEB
- https://issues.apache.org/jira/browse/CAMEL-23409WEB
- https://camel.apache.org/security/CVE-2026-43866.htmlWEB
Frequently Asked Questions
- What is CVE-2026-43866?
- Apache Camel JMS deserialization filter bypass. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.3/10).
- How do I check if my project is affected by CVE-2026-43866?
- CVE-2026-43866 affects org.apache.camel:camel-jms, org.apache.camel:camel-activemq and org.apache.camel:camel-amqp (and 3 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-43866 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 46% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-48204CRITICAL
Apache Camel: camel-mongodb-gridfs producer allows GridFS operation override and NoSQL operator injection via unfiltered gridfs.* HTTP headers
- CVE-2026-48205CRITICAL
Apache Camel DNS Has Improper Input Validation, Leading to Server-Side Request Forgery (SSRF)
- CVE-2026-40453CRITICAL
Apache Camel has an incomplete fix for CVE-2025-27636
- CVE-2026-71300CRITICAL
Apache Camel-Atmosphere-Websocket: WebSocket dispatch header injection - the producer selected its target peers through Exchange headers whose names sat outside the filtered Camel namespace
- CVE-2026-40860CRITICAL
Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage
- CVE-2026-40859HIGH
Apache Camel-Vertx-Http and Camel-Netty-Http: Unsafe Java deserialization of HTTP response bodies via a raw ObjectInputStream when transferException is enabled
- CVE-2026-42527HIGH
Apache Camel: Permissive default ObjectInputFilter pattern admits java.net.** and enables DNS-based information disclosure
- CVE-2026-46592HIGH
Apache Camel-CXF: The SOAP operation-selection headers used non-Camel-prefixed names (operationName, operationNamespace) that bypass the HTTP header filter, allowing an HTTP client to redirect the invoked SOAP operation