Apache Camel Deserialization Flaws Expose JMS, Mina, and Infinispan Deployments to RCE
Vulnerability Disclosure · 8 sources · Updated 5mo ago · First seen Apr 26, 2026

Apache disclosed three unsafe deserialization vulnerabilities in Apache Camel that can lead to remote code execution in deployments using camel-mina, JMS-related components, and camel-infinispan. CVE-2026-40473 affects camel-mina, where MinaConverter.toObjectInput() wraps network-supplied TCP or UDP data in java.io.ObjectInputStream without ObjectInputFilter or class-loading restrictions; a crafted serialized Java object can execute during readObject(). CVE-2026-40860 affects camel-jms, camel-sjms, camel-sjms2, and camel-amqp, where Camel deserializes JMS ObjectMessage payloads through ObjectMessage.getObject() with the default mapJmsMessage option enabled and without filtering or allow/deny lists, allowing an attacker who can publish to a consumed queue or topic to trigger code execution if a gadget chain is present.
Apache also disclosed CVE-2026-40858 in camel-infinispan, where the ProtoStream-based remote aggregation repository deserializes data from a remote Infinispan cache using java.io.ObjectInputStream without an input filter; an attacker able to write to the cache can inject a malicious serialized object that executes during normal get or recover operations. The affected versions span multiple Camel release lines, including 3.0.0 and later for the JMS issue, 3.0.0 and later for camel-mina, and 4.0.0 and later for camel-infinispan, with fixes released in 4.20.0 and backported to supported streams including 4.14.6/4.14.7 and 4.18.2. Apache tracks the flaws as CAMEL-23319, CAMEL-23321, and CAMEL-23322, with reports credited to researchers from Securin and Innora Pte. Ltd.
Why it matters
Impact assessment
Apache Camel deployments that use camel-mina, JMS-family consumers, or camel-infinispan are exposed to remote code execution through unsafe Java deserialization. The impact is severe because successful exploitation yields code execution in the application context, enabling full compromise of integration workloads, downstream systems, and connected data flows. Scope is broad across Camel 3.x and 4.x release lines, but exposure is configuration-dependent: attackers need network reachability to a MINA consumer, the ability to publish to a consumed JMS destination, or write access to a backing Infinispan cache.
Affected populations
- Organizations running Apache Camel integration services.
- Environments using org.apache.camel:camel-mina as a TCP or UDP consumer.
- Environments using JMS-related Camel components including camel-jms, camel-sjms, camel-sjms2, and camel-amqp.
- Environments using camel-infinispan with the ProtoStream-based remote aggregation repository.
- By inheritance or shared handling path, other JMS-family components built on JmsComponent such as camel-activemq and camel-activemq6 are also implicated by the same JMS deserialization path.
Severity and business impact
- Remote code execution can lead to service takeover, data theft, message tampering, lateral movement, and operational disruption.
- Integration platforms often bridge internal applications, brokers, caches, and external partners, so compromise can have outsized blast radius.
- JMS and cache-backed routes may process sensitive business events, credentials, or regulated data, increasing confidentiality and integrity risk.
Scope and exploitation status
- Exposure is not universal across all Camel users; it depends on enabled components and route behavior.
- CVE-2026-40473 is remotely reachable over TCP or UDP when vulnerable MINA consumers convert inbound data to ObjectInput.
- CVE-2026-40860 is reachable when Camel consumes JMS ObjectMessage payloads with default mapJmsMessage handling and an attacker can publish to the queue or topic.
- CVE-2026-40858 is reachable when an attacker can write to the remote Infinispan cache used by the Camel aggregation repository.
- No confirmed in-the-wild exploitation or public incident reporting is provided in the source material.
Structured facts extracted
- Product: Apache Camel.
- Vulnerabilities: CVE-2026-40473, CVE-2026-40860, CVE-2026-40858.
- Internal tracking: CAMEL-23319, CAMEL-23321, CAMEL-23322.
- Researchers credited: Venkatraman Kumar of Securin; Feng Ning of Innora Pte. Ltd.
- Related prior vulnerability class references: CVE-2024-22369, CVE-2024-23114, CVE-2026-25747.


