---
title: "CVE-2026-40860: Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage"
url: https://erroneo.us/security/cve/CVE-2026-40860/
description: "CVE-2026-40860 (org.apache.camel:camel-jms (Maven)): JmsBinding.extractBodyFromJms() in camel-jms, and the equivalent JmsBinding class in camel-sjms…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-27
date_modified: 2026-09-10
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-40860"
kev: false
cvss: 7.5
epss: 0.01534
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Normal patch cycle. No exploitation signal; fix it in your next routine update if you are affected. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.5% , percentile 75: FIRST’s model estimates a 1.5% chance of exploitation activity in the next 30 days, higher than 75% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes org.apache.camel:camel-jms (Maven) >= 3.0.0, < 4.14.7, fixed in 4.14.7 ; org.apache.camel:camel-jms (Maven) >= 4.15.0, < 4.18.2, fixed in 4.18.2 ; org.apache.camel:camel-jms (Maven) >= 4.19.0, < 4.20.0, fixed in 4.20.0 ; org.apache.camel:camel-sjms (Maven) >= 3.0.0, < 4.14.7, fixed in 4.14.7 . Check your lockfile, including transitive dependencies.

## What it is

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 packages

- Maven `org.apache.camel:camel-jms` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-jms` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-jms` >= 4.19.0, < 4.20.0 → fixed: 4.20.0
- Maven `org.apache.camel:camel-sjms` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-sjms` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-sjms` >= 4.19.0, < 4.20.0 → fixed: 4.20.0
- Maven `org.apache.camel:camel-sjms2` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-sjms2` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-sjms2` >= 4.19.0, < 4.20.0 → fixed: 4.20.0
- Maven `org.apache.camel:camel-amqp` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-amqp` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-amqp` >= 4.19.0, < 4.20.0 → fixed: 4.20.0
- Maven `org.apache.camel:camel-activemq` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-activemq` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-activemq` >= 4.19.0, < 4.20.0 → fixed: 4.20.0
- Maven `org.apache.camel:camel-activemq6` >= 3.0.0, < 4.14.7 → fixed: 4.14.7
- Maven `org.apache.camel:camel-activemq6` >= 4.15.0, < 4.18.2 → fixed: 4.18.2
- Maven `org.apache.camel:camel-activemq6` >= 4.19.0, < 4.20.0 → fixed: 4.20.0

## Affected products (CVE record)

- Apache Software Foundation Apache Camel: 3.0.0 < 4.14.7, 4.15.0 < 4.18.2, 4.19.0 < 4.20.0

## Severity

- CISA-ADP CVSS 3.1: 9.8 `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 `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 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.53% probability of exploitation activity in the next 30 days; percentile 75.

## Sources

- [camel.apache.org](https://camel.apache.org/security/CVE-2026-40860.html)
- [access.redhat.com](https://access.redhat.com/errata/RHSA-2026:22453)
- [access.redhat.com](https://access.redhat.com/errata/RHSA-2026:17668)
- [GitHub Advisory GHSA-m5vh-3fw5-5wgh](https://github.com/advisories/GHSA-m5vh-3fw5-5wgh)
- [CVE.org record CVE-2026-40860](https://www.cve.org/CVERecord?id=CVE-2026-40860)
- [NVD entry CVE-2026-40860](https://nvd.nist.gov/vuln/detail/CVE-2026-40860)
- [openwall.com](http://www.openwall.com/lists/oss-security/2026/04/26/10)
- [access.redhat.com](https://access.redhat.com/security/cve/CVE-2026-40860)
- [RHBZ#2463172](https://bugzilla.redhat.com/show_bug.cgi?id=2463172)
- [security.access.redhat.com](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40860.json)
- [github.com](https://github.com/apache/camel/pull/22598)
- [github.com](https://github.com/apache/camel/pull/22603)
- [github.com](https://github.com/apache/camel/pull/22604)
- [github.com](https://github.com/apache/camel/pull/22639)
- [github.com](https://github.com/apache/camel/commit/0c06142c46a1422b6b49fab784a1087c50e48ee8)
- [github.com](https://github.com/apache/camel/commit/107e8c279cf9bf488843e33fb6333cc2d7f37c67)
- [github.com](https://github.com/apache/camel/commit/6a82709f0fc5431f46d2939547aacd2c7395c97a)
- [issues.apache.org](https://issues.apache.org/jira/browse/CAMEL-23321)
- [github.com](https://github.com/apache/camel/releases/tag/camel-4.20.0)
- [github.com](https://github.com/apache/camel/releases/tag/camel-4.18.2)
- [github.com](https://github.com/apache/camel/releases/tag/camel-4.14.7)

---
Source page: https://erroneo.us/security/cve/CVE-2026-40860/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
