Skip to content

Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage

Critical severity GitHub Reviewed Published Apr 27, 2026 to the GitHub Advisory Database • Updated Aug 26, 2026

Package

maven org.apache.camel:camel-activemq (Maven)

Affected versions

>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0

Patched versions

4.14.7
4.18.2
4.20.0
maven org.apache.camel:camel-activemq6 (Maven)
>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0
4.14.7
4.18.2
4.20.0
maven org.apache.camel:camel-amqp (Maven)
>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0
4.14.7
4.18.2
4.20.0
maven org.apache.camel:camel-jms (Maven)
>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0
4.14.7
4.18.2
4.20.0
maven org.apache.camel:camel-sjms (Maven)
>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0
4.14.7
4.18.2
4.20.0
maven org.apache.camel:camel-sjms2 (Maven)
>= 3.0.0, < 4.14.7
>= 4.15.0, < 4.18.2
>= 4.19.0, < 4.20.0
4.14.7
4.18.2
4.20.0

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.

References

Published by the National Vulnerability Database Apr 27, 2026
Published to the GitHub Advisory Database Apr 27, 2026
Reviewed Aug 26, 2026
Last updated Aug 26, 2026

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(67th percentile)

Weaknesses

Deserialization of Untrusted Data

The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. Learn more on MITRE.

CVE ID

CVE-2026-40860

GHSA ID

GHSA-m5vh-3fw5-5wgh

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.