CVE-2026-40860: Apache Camel: Unsafe Deserialization of JMS ObjectMessage in camel-jms, camel-sjms, camel-sjms2 and camel-amqp
CVE-2026-40860 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS base score
- 9.8 (Apache), 7.5 (Red Hat)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H· base score 9.8, scored by CISA-ADPAttack vector: network. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-502 Deserialization of Untrusted Data
- EPSS
- 1.71% chance of exploitation in the next 30 days (77th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: yes. Technical impact: total. CISA, .
- Fixed releases
- Apache: 4.14.7, 4.18.2, 4.20.0
- Red Hat: RHSA-2026:22453
- Assigned by
- apache (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-40860; each belongs to its advisory, not to every product listed. How records are collected and checked.
Am I affected by CVE-2026-40860?
You are affected if you run Apache Camel, ActiveMQ, Red Hat build of Apache Camel 4 for Quarkus 3 at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Apache: Apache Camel 3.0.0 before 4.14.7 | 4.14.7 |
| Apache: Apache Camel 4.15.0 before 4.18.2 | 4.18.2 |
| Apache: Apache Camel 4.19.0 before 4.20.0 | 4.20.0 |
| Red Hat: camel-jms | No fixed release on this branch listed by the vendor |
| Red Hat: camel-amqp | No fixed release on this branch listed by the vendor |
Also listed as fixed: Red Hat: RHSA-2026:22453
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.
Text from the CVE.org record (apache).
How do I fix CVE-2026-40860?
Upgrade to a fixed release named by the vendor:
- Apache: 4.14.7, 4.18.2, 4.20.0
- Red Hat: RHSA-2026:22453
- Users are recommended to upgrade to version 4.20.0, which fixes the issue. (Apache)
- If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.7. (Apache)
- Update the affected package(s) to the fixed version shipped in RHSA-2026:22453 (`sudo dnf update` / `yum update`). (Red Hat)
Vendor advisories for CVE-2026-40860
Apache
2 advisories- Advisory severityCritical9.8
Critical [CVE-2026-40860] Apache Camel: Unsafe Deserialization of JMS ObjectMessage in camel-jms, camel-sjms, camel-sjms2 and camel-amqp
CVE-2026-40860Source published Source updated
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…
- Affected products in this advisory
- Apache Camel
- ActiveMQ
- Source-reported affected versions
- Apache Camel 3.0.0 before 4.14.7
- Apache Camel 4.15.0 before 4.18.2
- Apache Camel 4.19.0 before 4.20.0
- Source-reported fixed versions
- 4.14.7
- 4.18.2
- 4.20.0
- Mitigation guidance
- 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.
- Advisory severityHigh7.3
High [CVE-2026-40860 +1] Deserialization of Untrusted Data vulnerability in Apache Camel, Apache Camel JMS component
CVE-2026-43866Source published Source updated
This bulletin covers 2 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
Deserialization of Untrusted Data vulnerability in Apache Camel, Apache Camel JMS component. JmsBinding.extractBodyFromJms() in camel-jms - and the equivalent JmsBinding in camel-sjms - deserializes the payload of an incoming JMS ObjectMessage via jakarta.jms.ObjectMessage.getObject() whenever the mapJmsMessage option is enabled (the default) and Camel acts as a JMS consumer. The CVE-2026-40860 hardening added a post-deserialization class check that rejects classes outside the default allow-list java.**;javax.**;org.apache.camel.**;!*. However org.apache.camel.support.DefaultExchangeHolder itself lives in the allow-listed org.apache.camel.** namespace, so an ObjectMessage whose top-level object is a DefaultExchangeHolder passes the check. The receiving side then calls…
- Affected products in this advisory
- Apache Camel JMS
- Source-reported affected versions
- 3.0.0 through 4.14.8
- 4.15.0 through 4.18.3
- 4.19.0 through 4.21.0
- 4.19.0 through 4.21.0.
- Source-reported fixed versions
- 4.21.0
- 4.14.8
- 4.18.3
- Mitigation guidance
- Users are recommended to upgrade to version 4.21.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.8.
- If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3.
- Workarounds
- For deployments that cannot upgrade immediately, restrict publish access to the queues and topics consumed by Camel to trusted producers via JMS broker authorization, and do not expose JMS consumers that map ObjectMessage bodies to untrusted networks; a JMS-provider deserialization allow-list does not mitigate this specific bypass because the crafted payload uses only universally-trusted classes.
Red Hat
1 advisory- Advisory severityHigh7.5
High [CVE-2026-40860] Remote Code Execution via deserialization of JMS ObjectMessage
CVE-2026-40860Source published
Remote Code Execution via deserialization of JMS ObjectMessage. Red Hat rates this important (CVSS 7.5). Weakness: CWE-502. Affected package(s): camel-jms, camel-amqp. Resolved in Red Hat advisory RHSA-2026:22453 — update the affected packages (`sudo dnf update`).
- Affected products in this advisory
- Red Hat build of Apache Camel 4 for Quarkus 3
- Source-reported affected versions
- camel-jms
- camel-amqp
- Source-reported fixed versions
- RHSA-2026:22453
- Mitigation guidance
- Update the affected package(s) to the fixed version shipped in RHSA-2026:22453 (`sudo dnf update` / `yum update`).
References
- CVE-2026-40860 recordCVE.org
- CVE-2026-40860 detailNVD
- camel.apache.org/security/CVE-2026-40860.htmlvendor-advisory
Timeline
- First vendor advisory listed by VulniPulse
- CVE record published
- CVE record last updated
More Apache advisories
CVE-2026-88901Oct 19, 2026Apache Camel XXECVE-2026-83531Oct 19, 2026Apache Camel: Camel-Dynamic-Router Control Endpoint Compiles Predicate ExpressionsCVE-2026-78162Oct 19, 2026Apache Camel: Camel-Hazelcast Managed Instances Missing Java Deserialization FilterCVE-2026-80354Sep 10, 2026Authorization bypass through User-Controlled key vulnerability in Apache Camel KCVE-2026-80351Sep 10, 2026Improper neutralization of directives in dynamically evaluated code ('eval injection')CVE-2026-80352Sep 10, 2026Apache Camel remote code execution
Get an email when Apache publishes the next one.
See Apache's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).