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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-04-27 · Modified: 2026-09-10
- Aliases: GHSA-m5vh-3fw5-5wgh, CGA-47cc-7w9v-7fh5, CGA-583j-2h52-jw2v, CGA-fppv-jjvj-246w, CGA-928w-7762-88c3
- Record: https://cvemate.com/vulnerability/CVE-2026-40860 · JSON: https://cvemate.com/vulnerability/CVE-2026-40860/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.766%, percentile 78.85%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache camel: ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- apache camel: ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| 4.19.0
- chainguard apache-activemq-6.2 (Chainguard): \< 6.2.10-r5
- chainguard apache-activemq-fips-6.2 (Chainguard): All versions (No fix recorded) \| \< 6.2.10-r6
- org.apache.camel camel-activemq (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- org.apache.camel camel-activemq6 (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- org.apache.camel camel-amqp (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- org.apache.camel camel-jms (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- org.apache.camel camel-sjms (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0
- org.apache.camel camel-sjms2 (Maven): ≥ 3.0.0, \< 4.14.7 \| ≥ 4.15.0, \< 4.18.2 \| ≥ 4.19.0, \< 4.20.0

## References (first 20 of 22)

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

---

Data as of 2026-12-05T09:20:10.175Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
