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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.77%, higher than 78% of CVEs (2026-12-01)
- Published: 2026-04-27T08:03:19.616Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-m5vh-3fw5-5wgh
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- 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
- camel-amqp: no versions given
- camel-jms: no versions given
- camel-jms-starter: no versions given
- 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
- 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
- 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
- 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
- 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
- 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
- apache camel: from 3.0.0 before 4.14.7; from 4.15.0 before 4.18.2; 4.19.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://camel.apache.org/security/CVE-2026-40860.html> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/04/26/10> (mailing-list, third-party-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-40860> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2463172> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40860.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:22453> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:17668> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40860> (advisory)
- <https://github.com/apache/camel/pull/22598> (web)
- <https://github.com/apache/camel/pull/22603> (web)
- <https://github.com/apache/camel/pull/22604> (web)
- <https://github.com/apache/camel/pull/22639> (web)
- <https://github.com/apache/camel/commit/0c06142c46a1422b6b49fab784a1087c50e48ee8> (web)
- <https://github.com/apache/camel/commit/107e8c279cf9bf488843e33fb6333cc2d7f37c67> (web)
- <https://github.com/apache/camel/commit/6a82709f0fc5431f46d2939547aacd2c7395c97a> (web)
- <https://issues.apache.org/jira/browse/CAMEL-23321> (web)
- <https://github.com/apache/camel/releases/tag/camel-4.20.0> (web)
- <https://github.com/apache/camel/releases/tag/camel-4.18.2> (web)
- <https://github.com/apache/camel/releases/tag/camel-4.14.7> (web)
- <https://github.com/apache/camel> (package)

## Sources

- CVE List: [CVE-2026-40860](https://www.cve.org/CVERecord?id=CVE-2026-40860), CVE Terms of Use, modified 2026-09-10
- GitHub Advisory Database: [GHSA-m5vh-3fw5-5wgh](https://github.com/advisories/GHSA-m5vh-3fw5-5wgh), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2026-40860](https://nvd.nist.gov/vuln/detail/CVE-2026-40860), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40860 · Whole record: https://cve.day/CVE-2026-40860.json · Rebuilt by cve.day 2026-11-25T22:59:19.643Z
