CVE-2026-40860 Details
Description
JmsBinding.extractBodyFromJms() in camel-jms, and the equivalent JmsBinding class in camel-sjms, deserialized the payload of incoming JMS ObjectMessage values via javax.jms.ObjectMessage.getObject() without applying any ObjectInputFilter, class allowlist or class denylist. Because this code path is reached whenever the mapJmsMessage option is enabled (the default) and Camel acts as a JMS consumer, an attacker able to publish a crafted ObjectMessage to a queue or topic consumed by a Camel application could achieve remote code execution when a deserialization gadget chain was present on the classpath. The same handling was reached transitively through camel-sjms2 (whose Sjms2Endpoint extends SjmsEndpoint) and through camel-amqp (whose AMQPJmsBinding extends JmsBinding), and by other JMS-family components built on JmsComponent such as camel-activemq and camel-activemq6. This issue affects Apache Camel: from 3.0.0 before 4.14.7, 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.7. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.2.
A remote code execution vulnerability exists in Apache Camel's JMS components, specifically in camel-jms, camel-sjms, camel-sjms2, and camel-amqp. The issue arises because the JmsBinding.extractBodyFromJms() method deserializes the payload of incoming JMS ObjectMessage values without applying any ObjectInputFilter, class allowlist, or class denylist. This vulnerability is triggered when the mapJmsMessage option is enabled, which is the default setting, and Camel is acting as a JMS consumer. An attacker can exploit this vulnerability by publishing a crafted ObjectMessage to a queue or topic that is consumed by a Camel application, leading to remote code execution if a deserialization gadget chain is present on the classpath.
Users are advised to upgrade to Apache Camel version 4.20.0, 4.14.7 (for 4.14.x LTS releases), or 4.18.2 (for 4.18.x releases).
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:17668 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:22453 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-40860 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2463172 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40860.json | redhat-SADP | |
| http://www.openwall.com/lists/oss-security/2026/04/26/10 | CVE | Mailing ListThird Party Advisory |
| https://camel.apache.org/security/CVE-2026-40860.html | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | redhat-SADP |
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache camel | >= 3.0.0, < 4.14.7 >= 4.15.0, < 4.18.2 4.19.0 |
CPE
Remediation
| |
Change History
11 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 9, 2026 | CVE Modified | [email protected] |
| Sep 9, 2026 | CVE Modified | redhat-SADP |
| Sep 9, 2026 | CVE Modified | CVE |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Apr 28, 2026 | Initial Analysis | [email protected] |
| Apr 27, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | New CVE Received | [email protected] |
| Apr 27, 2026 | CVE Modified | CVE |