Skip to main content

Apache Camel CVE-2026-40860

| EUVDEUVD-2026-25794 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-04-27 security@apache.org GHSA-m5vh-3fw5-5wgh
9.8
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain publish access to consumed JMS destination
  2. Delivery
    Craft ObjectMessage with serialized gadget payload
  3. Exploit
    Send message to queue/topic
  4. Execution
    Camel consumer calls getObject() (mapJmsMessage default)
  5. Persist
    Gadget chain deserialized on classpath
  6. Impact
    Execute arbitrary code in Camel JVM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that Camel is acting as a JMS consumer with the mapJmsMessage option enabled (this is the DEFAULT) using an affected JMS-family component (camel-jms, camel-sjms, camel-sjms2, camel-amqp, camel-activemq, or camel-activemq6); that the attacker can publish a crafted javax.jms.ObjectMessage to a queue or topic that a Camel route consumes; and - critically - that a usable Java deserialization gadget chain is present on the application classpath, since without a gadget the getObject() call deserializes but does not yield code execution. Limiting factors: the attacker needs publish access to the target JMS destination (often gated by broker authentication and ACLs), the affected component must be in use as a consumer, and no code execution occurs if the classpath lacks an exploitable gadget. No user interaction is required and, per the NVD vector, no authentication to the Camel application itself (PR:N).

Impact

The signals are partly conflicting and warrant nuance. The NVD CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N, C/I/A:H) reflects worst-case unauthenticated network RCE, and SSVC rates Technical Impact as total and Automatable as yes - all pointing to high severity. However, SSVC Exploitation is 'none', the CVE is not on CISA KEV, no public PoC is referenced, and EPSS is only 0.30% (53rd percentile), indicating no observed or imminent mass exploitation. Two real-world preconditions materially lower practical risk below the raw 9.8: (1) a compatible deserialization gadget chain must already be present on the Camel application's classpath, and (2) the attacker must be able to publish a message to a JMS destination that a Camel route consumes, which in many deployments implies some level of broker access or network position. This is why an independent assessment favors AC:H rather than AC:L. Net: a genuinely dangerous flaw in a widely used integration framework that should be patched promptly, but exploitation is conditional rather than trivially universal, so it is a high priority for exposed or broker-reachable deployments and a lower one for internal-only, gadget-free classpaths.

Exploit ScenarioDerived

An attacker with the ability to write to a JMS queue or topic that a Camel application consumes crafts a malicious ObjectMessage embedding a serialized gadget-chain payload (e.g., ysoserial-style). When the Camel consumer receives it with the default mapJmsMessage enabled, JmsBinding.extractBodyFromJms() calls getObject(), deserializing the payload and triggering the gadget chain to run attacker code in the Camel JVM. No public exploit is identified at time of analysis, but the technique reuses well-documented Java deserialization gadgets.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Remote code execution in Apache Camel's JMS-family components (camel-jms, camel-sjms, camel-sjms2, camel-amqp, camel-activemq, camel-activemq6) allows an attacker who can publish a crafted JMS ObjectMessage to a consumed queue or topic to execute arbitrary code, because JmsBinding.extractBodyFromJms() calls ObjectMessage.getObject() with no ObjectInputFilter, allowlist, or denylist. Exploitation requires a usable deserialization gadget chain on the application classpath and is reachable in the default configuration (mapJmsMessage enabled) whenever Camel acts as a JMS consumer. There is no public exploit identified at time of analysis and the vulnerability is not on CISA KEV; EPSS is low at 0.30% (53rd percentile).

RemediationAI

Vendor-released patch: upgrade to Apache Camel 4.20.0, which fixes the issue; users on the 4.14.x LTS stream should upgrade to 4.14.7 and users on the 4.18.x stream should upgrade to 4.18.2 (per https://camel.apache.org/security/CVE-2026-40860.html). Red Hat consumers should apply RHSA-2026:17668 or RHSA-2026:22453. Where immediate patching is not possible, disable the mapJmsMessage option on affected JMS consumer endpoints so Camel does not auto-convert ObjectMessage bodies (trade-off: routes that rely on automatic JMS body mapping will need explicit handling and may break). Additionally, prevent producers from sending serialized Java objects by avoiding or refusing ObjectMessage on consumed destinations, and configure a JVM-wide deserialization filter (jdk.serialFilter / ObjectInputFilter) to allowlist only expected classes (trade-off: over-tight filters can block legitimate payloads). Restrict who can publish to Camel-consumed queues and topics via broker authentication and ACLs, and remove known deserialization gadget libraries from the classpath where feasible to eliminate exploitable chains.

Affected VersionsENISA

Apache Camel 4.19.0 <4.20.0
Apache Camel 3.0.0 <4.14.7
Apache Camel 4.15.0 <4.18.2

Affected Packages

maven org.apache.camel:camel-activemq fix: 4.14.7, 4.18.2, 4.20.0
maven org.apache.camel:camel-activemq6 fix: 4.14.7, 4.18.2, 4.20.0
maven org.apache.camel:camel-amqp fix: 4.14.7, 4.18.2, 4.20.0
maven org.apache.camel:camel-jms fix: 4.14.7, 4.18.2, 4.20.0
maven org.apache.camel:camel-sjms fix: 4.14.7, 4.18.2, 4.20.0
maven org.apache.camel:camel-sjms2 fix: 4.14.7, 4.18.2, 4.20.0
euvd apache_camel fix: 4.14.7, 4.18.2, 4.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 7 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic CWE-502 unsafe deserialization of untrusted data. Java's native serialization (java.io.ObjectInputStream) reconstructs arbitrary object graphs from a byte stream; when the target application contains gadget classes (e.g., from Commons-Collections, Spring, or similar libraries on the classpath), a crafted stream can be coerced into invoking dangerous methods during deserialization, yielding RCE. In Camel, the JMS message-conversion layer (JmsBinding.extractBodyFromJms in camel-jms and the equivalent class in camel-sjms) unwraps javax.jms.ObjectMessage bodies by calling getObject(), which triggers this deserialization without any ObjectInputFilter or class filtering. Because Sjms2Endpoint extends SjmsEndpoint, AMQPJmsBinding extends JmsBinding, and camel-activemq/activemq6 are built on JmsComponent, the same vulnerable path is inherited transitively across the JMS component family. The CPE data (cpe:2.3:a:apache:camel) confirms Apache Camel itself as the affected product across the listed version ranges, including the explicitly enumerated 4.19.0.

Know when Camel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Network-reachable JMS with no auth to Camel (PR:N), but AC:H because exploitation depends on a classpath gadget chain and publish access to a consumed destination; successful RCE yields full C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 28, 2026 - 19:42 nvd
Patch available
CVSS changed
Apr 27, 2026 - 16:22 NVD
9.8 (CRITICAL)
Patch available
Apr 27, 2026 - 10:01 EUVD
CVE Published
Apr 27, 2026 - 09:16 nvd
CRITICAL 9.8

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 19 maven packages depend on org.apache.camel:camel-activemq (3 direct, 16 indirect)
  • 18 maven packages depend on org.apache.camel:camel-amqp (2 direct, 16 indirect)
  • 29 maven packages depend on org.apache.camel:camel-jms (11 direct, 18 indirect)
  • 25 maven packages depend on org.apache.camel:camel-sjms (4 direct, 21 indirect)
  • 21 maven packages depend on org.apache.camel:camel-sjms2 (3 direct, 18 indirect)

Ecosystem-wide dependent count for version 3.0.0 and other introduced versions.

Executive ViewAI

Why It Matters

Apache Camel's JMS-family components contain a critical remote code execution vulnerability allowing attackers with message queue access to execute arbitrary code through unsafe deserialization. This threatens any organization using Camel for JMS message consumption, with potential impact including complete system compromise and unauthorized data access.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patching is complete, implement strict authentication and authorization controls limiting JMS message publishing to trusted sources, monitor queue activity for anomalous messages, and restrict system access to personnel with legitimate JMS operational needs.

Threat Intelligence Overview

EPSS Score
0.3%
Top 47% exploitable
Prevalence
High
widely deployed enterprise Java integration framework across many backends
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Camel

View all
CVE-2025-27636 MEDIUM POC
5.6 Mar 09

Bypass/Injection vulnerability in Apache Camel components under particular conditions.10.0 through <= 4.10.1, from 4.8.0

CVE-2014-0002 HIGH POC
7.5 Mar 21

The XSLT component in Apache Camel before 2.11.4 and 2.12.x before 2.12.3 allows remote attackers to read arbitrary file

CVE-2016-8749 CRITICAL POC
9.8 Mar 28

Apache Camel's Jackson and JacksonXML unmarshalling operation are vulnerable to Remote Code Execution attacks. Rated cri

CVE-2014-0003 HIGH POC
7.5 Mar 21

The XSLT component in Apache Camel 2.11.x before 2.11.4, 2.12.x before 2.12.3, and possibly earlier versions allows remo

CVE-2026-23552 CRITICAL POC
9.1 Feb 23

Cross-realm token acceptance bypass in Apache Camel Keycloak security policy. The KeycloakSecurityPolicy fails to proper

CVE-2026-25747 HIGH POC
8.8 Feb 23

Deserialization of Untrusted Data vulnerability in Apache Camel LevelDB component. The Camel-LevelDB DefaultLevelDBSeria

CVE-2026-40473 HIGH POC
8.8 Apr 27

Unsafe Java deserialization in the Apache Camel camel-mina component (versions 3.0.0 through 4.14.5, 4.15.0 through 4.18

CVE-2019-0194 HIGH POC
7.5 Apr 30

Apache Camel's File is vulnerable to directory traversal. Rated high severity (CVSS 7.5), this vulnerability is remotely

CVE-2017-12634 CRITICAL
9.8 Nov 15

The camel-castor component in Apache Camel 2.x before 2.19.4 and 2.20.x before 2.20.1 is vulnerable to Java object de-se

CVE-2015-5344 CRITICAL
9.8 Feb 03

The camel-xstream component in Apache Camel before 2.15.5 and 2.16.x before 2.16.1 allow remote attackers to execute arb

CVE-2017-12633 CRITICAL
9.8 Nov 15

The camel-hessian component in Apache Camel 2.x before 2.19.4 and 2.20.x before 2.20.1 is vulnerable to Java object de-s

CVE-2013-4330 MEDIUM
6.8 Oct 04

Apache Camel before 2.9.7, 2.10.0 before 2.10.7, 2.11.0 before 2.11.2, and 2.12.0 allows remote attackers to execute arb

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy