CVE-2026-40860
JSON

9.8critical

Apache Camel: Unsafe Deserialization of JMS ObjectMessage in camel-jms, camel-sjms, camel-sjms2 and camel-amqp

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.77% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-m5vh-3fw5-5wgh

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.

Affected

Product or packageVersionsReported by
org.apache.camel:camel-jmsfrom 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0CVE List
camel-amqpNot specifiedCVE List
camel-jmsNot specifiedCVE List
camel-jms-starterNot specifiedCVE List
org.apache.camel:camel-jms (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
org.apache.camel:camel-sjms (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
org.apache.camel:camel-sjms2 (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
org.apache.camel:camel-amqp (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
org.apache.camel:camel-activemq (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
org.apache.camel:camel-activemq6 (Maven)from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0GitHub Advisory Database
apache camelfrom 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, 4.19.0NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

JmsBinding.extractBodyFromJms() en camel-jms, y la clase JmsBinding equivalente en camel-sjms, deserializó la carga útil de los valores entrantes de JMS ObjectMessage a través de javax.jms.ObjectMessage.getObject() sin aplicar ningún ObjectInputFilter, lista de permitidos de clases o lista de denegados de clases. Debido a que esta ruta de código se alcanza siempre que la opción mapJmsMessage está habilitada (el valor predeterminado) y Camel actúa como un consumidor JMS, un atacante capaz de publicar un ObjectMessage manipulado en una cola o tema consumido por una aplicación Camel podría lograr la ejecución remota de código cuando una cadena de gadgets de deserialización estaba presente en el classpath. El mismo manejo se alcanzó transitivamente a través de camel-sjms2 (cuyo Sjms2Endpoint extiende SjmsEndpoint) y a través de camel-amqp (cuyo AMQPJmsBinding extiende JmsBinding), y por otros componentes de la familia JMS construidos sobre JmsComponent como camel-activemq y camel-activemq6. Este problema afecta a Apache Camel: desde 3.0.0 antes de 4.14.7, desde 4.15.0 antes de 4.18.2, desde 4.19.0 antes de 4.20.0. Se recomienda a los usuarios actualizar a la versión 4.20.0, que corrige el problema. Si los usuarios están en la rama de versiones LTS 4.14.x, se les sugiere actualizar a 4.14.7. Si los usuarios están en la rama de versiones 4.18.x, se les sugiere actualizar a 4.18.2.

References

https://camel.apache.org/security/CVE-2026-40860.htmlvendor-advisory, web
http://www.openwall.com/lists/oss-security/2026/04/26/10mailing-list, third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-40860vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2463172issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40860.jsonweb
https://access.redhat.com/errata/RHSA-2026:22453vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:17668vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-40860advisory
https://github.com/apache/camel/pull/22598web
https://github.com/apache/camel/pull/22603web
https://github.com/apache/camel/pull/22604web
https://github.com/apache/camel/pull/22639web

Sources

SourceRecordLicence
CVE ListCVE-2026-40860 changed 2026-09-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-m5vh-3fw5-5wgh changed 2026-08-26CC-BY-4.0
NVDCVE-2026-40860 changed 2026-10-26Public domain