CVE-2026-40860: Remote Code Execution via JMS ObjectMessage Deserialization in Apache Camel
- Vendor
- Apache Software Foundation
CVE-2026-40860 is an unsafe Java deserialization vulnerability in Apache Camel JMS-family components. JmsBinding.extractBodyFromJms() in camel-jms and equivalent handling in camel-sjms deserialize incoming JMS ObjectMessage payloads through javax.jms.ObjectMessage.getObject() without an ObjectInputFilter, class allowlist, or class denylist. This processing occurs when Camel acts as a JMS consumer with mapJmsMessage enabled, which is the default. The vulnerable handling is also reached through camel-sjms2, camel-amqp, and JmsComponent-based components including camel-activemq and camel-activemq6. An attacker able to publish a crafted ObjectMessage to a consumed queue or topic can achieve remote code execution if a usable deserialization gadget chain exists on the application's classpath. Affected Apache Camel versions are 3.0.0 before 4.14.7, 4.15.0 before 4.18.2, and 4.19.0 before 4.20.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution within the affected Camel application's security context, potentially compromising the confidentiality and integrity of application-accessible data and disrupting service availability. The extent of compromise depends on the application's operating-system privileges, credentials, and access to other resources. Remote code execution depends on a usable deserialization gadget chain being present on the application classpath.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable mapJmsMessage on affected Camel JMS consumers where operationally feasible. Use JMS broker authorization to restrict publishing to consumed queues and topics to trusted producers, and prevent untrusted network access to the messaging environment. Remove unnecessary gadget-capable libraries from the application classpath where possible; classpath reduction is defense in depth rather than a substitute for patching or preventing untrusted ObjectMessage deserialization.
Remediation
Patch, then assume compromise.
Upgrade Apache Camel to 4.20.0 or a later supported release. The original fixes for maintenance streams are 4.14.7 for 4.14.x LTS and 4.18.2 for 4.18.x. For additional protection against the separately tracked follow-on bypass CVE-2026-43866, use 4.14.8, 4.18.3, 4.21.0, or later applicable releases; these disable JMS ObjectMessage handling by default through objectMessageEnabled=false. Distribution-specific fixes include apache-activemq-fips-6.2 and related packages at 6.2.10-r6 or later, and SAP Integration Suite Edge Integration Cell 8.43.11 or later under SAP Security Note 3758101.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-40860 exploited in the wild?
- As of Nov 1, 2026, Mallory has no reports of CVE-2026-40860 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40860?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-40860, the earliest disclosed Jul 10, 2026.
- Is there a patch for CVE-2026-40860?
- Upgrade Apache Camel to 4.20.0 or a later supported release. The original fixes for maintenance streams are 4.14.7 for 4.14.x LTS and 4.18.2 for 4.18.x.
- What products are affected by CVE-2026-40860?
- Apache Software Foundation Camel.
- How severe is CVE-2026-40860?
- CVE-2026-40860 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.7% (78th percentile) as of Nov 1, 2026.
Recent activity
24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.