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 package | Versions | Reported by |
|---|---|---|
| org.apache.camel:camel-jms | from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, from 4.19.0 before 4.20.0 | CVE List |
| camel-amqp | Not specified | CVE List |
| camel-jms | Not specified | CVE List |
| camel-jms-starter | Not specified | CVE 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.0 | GitHub 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.0 | GitHub 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.0 | GitHub 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.0 | GitHub 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.0 | GitHub 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.0 | GitHub Advisory Database |
| apache camel | from 3.0.0 before 4.14.7, from 4.15.0 before 4.18.2, 4.19.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40860 changed 2026-09-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m5vh-3fw5-5wgh changed 2026-08-26 | CC-BY-4.0 |
| NVD | CVE-2026-40860 changed 2026-10-26 | Public domain |