Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-40860: Remote Code Execution via JMS ObjectMessage Deserialization in Apache Camel

Published Apr 27, 2026 · Updated 28 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS7.5High · v3.1
EPSS1.7%78th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2026-40860CWE-502 · Deserialization of Untrusted Data

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2026-40860This repository is a working Java/Spring Boot proof-of-concept reproducer for CVE-2026-40860, an unsafe deserialization issue in Apache Camel's JMS consumer path. The project contains both sides of the demonstration: an attacker-facing HTTP controller that publishes a crafted JMS ObjectMessage, and a victim Camel route that consumes from a JMS queue and triggers ObjectMessage.getObject() during message mapping. Repository structure is small and focused: Application.java is the Spring Boot entry point; JmsConfig.java configures an ActiveMQ OpenWire ConnectionFactory with trustAllPackages=true and exposes Camel's jms component; VictimRoute.java defines the vulnerable consumer route from("jms:queue:evil"); ExploitController.java exposes GET /exploit/attack, builds the malicious object, sends it to the queue, and waits for proof of execution; Gadget.java constructs a CommonsCollections6-style deserialization gadget that executes /usr/bin/touch /tmp/pwned during readObject(). Supporting files include pom.xml with vulnerable Camel 4.18.1 and commons-collections 3.2.1, docker-compose.yml for an Artemis broker and app container, Dockerfile, and application.properties. Main exploit capability: remote code execution via network-accessible JMS message injection. The attacker only needs the ability to publish a crafted ObjectMessage to a destination consumed by an affected Camel JMS route. In this PoC, exploitation is triggered indirectly over HTTP by calling /exploit/attack, which causes the app to act as the producer and send the malicious message to queue 'evil'. The actual vulnerability is exercised when the Camel consumer asynchronously receives that message and deserializes it. Notable targets and observables include the HTTP trigger endpoint on port 8080, the JMS broker on tcp://localhost:61616 or tcp://artemis:61616, the Camel destination jms:queue:evil, Artemis console port 8161, and the proof file /tmp/pwned. This is clearly exploit code rather than a detector, and while the payload is hardcoded and basic, it is functional, making the maturity OPERATIONAL rather than a mere conceptual PoC.oscerd · Disclosed Jul 10, 2026 · java · yaml · network · webOperationalCVE-2026-43866This repository is a working Java/Spring Boot proof-of-concept for CVE-2026-43866, a bypass of Apache Camel’s earlier CVE-2026-40860 deserialization filtering in JMS-family components. It is not a framework module; it is a standalone reproducer composed of a Spring Boot app, Camel JMS route, attacker controller, and Dockerized ActiveMQ Artemis broker. Structure and purpose: Application.java is the Spring Boot entry point. JmsConfig.java configures an ActiveMQConnectionFactory with broker credentials and a realistic trusted package allow-list (java, javax, org.apache.camel), then exposes a Camel jms component. VictimRoute.java defines the vulnerable consumer route from("jms:queue:cve") and records the body/header/property actually observed by the route. CapturedState.java stores those observed values for later reporting. ForgedHolderFactory.java creates the malicious payload by constructing a Camel Exchange and marshaling it into a DefaultExchangeHolder using Camel’s public API. ExploitController.java exposes GET /exploit/attack, which generates a marker, builds the forged holder, opens a JMS connection, sends it as an ObjectMessage to queue cve, waits for the victim route to consume it, and returns a textual proof showing whether body/header/property injection succeeded. Dockerfile and docker-compose.yml package the app and launch an Artemis broker plus the reproducer service. Main exploit capability: the exploit does not attempt code execution. Instead, it performs Exchange-state injection by abusing the fact that a top-level org.apache.camel.support.DefaultExchangeHolder passes Camel’s post-deserialization allow-list and is then unmarshaled into the receiving Exchange. The payload uses only trusted java.* values plus the Camel holder object itself, so no gadget chain is required. The demonstrated impact is attacker control over the routed Exchange body, headers, and properties; the README notes that variables, exchange id, and exception can also be influenced. Operational flow: an operator calls the HTTP endpoint /exploit/attack on port 8080. The app then publishes a JMS ObjectMessage to the cve queue on the Artemis broker at tcp://artemis:61616 (or tcp://localhost:61616 outside Docker). The victim Camel consumer receives from jms:queue:cve and unmarshals the forged holder before route processing, proving the bypass. Overall, this is a valid exploit PoC with a hardcoded but functional payload, intended to reproduce and demonstrate the vulnerability against affected Apache Camel JMS consumers.oscerd · Disclosed Jul 12, 2026 · java · yaml · network · webOperational
Exposure surface

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.

VendorProductType
Apache Software FoundationCamelapplication
FAQ

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.
Activity feed

Recent activity

24 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Nov 1, 2026Chainguard: apache-activemq-fips-6.2: security update to 6.2.1... | Tenable®An earlier Apache Camel JMS deserialization vulnerability whose fix introduced a post-deserialization class allow-list. The reference discusses it because CVE-2026-43866 bypasses that protection using the allow-listed DefaultExchangeHolder class; it explicitly characterizes the newer issue as a bypass rather than a flaw in the earlier fix.Read more ↗tenable cloud security pluginsNews · Oct 31, 2026Chainguard: apache-activemq-fips-6.2: security update to 6.2.1... | Tenable®An unsafe deserialization vulnerability in Apache Camel's JMS message handling can allow remote code execution. An attacker must be able to publish a crafted ObjectMessage to a queue or topic consumed by a Camel application, with mapJmsMessage enabled (the default) and a suitable deserialization gadget chain on the classpath. Affected versions are 3.0.0 through versions before 4.14.7, 4.15.0 through versions before 4.18.2, and 4.19.0 through versions before 4.20.0. Fixed releases are 4.14.7, 4.18.2, and 4.20.0. The package advisory recommends updating apache-activemq-fips-6.2 and related packages to 6.2.10-r6 or later.Read more ↗cyber security newsNews · Jul 14, 2026SAP Security Update July 2026 - Patch for Critical SAP NetWeaver Flaw that Enables Memory CorruptionOne of multiple Apache Camel vulnerabilities affecting SAP Integration Suite Edge Integration Cell.Read more ↗cryptika blogNews · Jul 14, 2026SAP Security Update July 2026 - Patch for Critical SAP NetWeaver Flaw that Enables Memory Corruption | Cryptika CybersecurityOne of multiple Apache Camel vulnerabilities affecting SAP Integration Suite Edge Integration Cell.Read more ↗
+7 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity10Community discussion across Reddit, Mastodon, and other social sources.