{"cve":"CVE-2026-40860","nvd":{"published":"2026-04-27T09:16:01.770","modified":"2026-10-26T22:10:00.163","status":"Modified","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.\n\nThis 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.\n\nUsers 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-502"],"references":["https://camel.apache.org/security/CVE-2026-40860.html","http://www.openwall.com/lists/oss-security/2026/04/26/10","https://access.redhat.com/errata/RHSA-2026:17668","https://access.redhat.com/errata/RHSA-2026:22453","https://access.redhat.com/security/cve/CVE-2026-40860"],"products":["apache:camel"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40860","score":0.01739,"percentile":0.77559,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-m5vh-3fw5-5wgh","url":"https://osv.dev/vulnerability/GHSA-m5vh-3fw5-5wgh","summary":"Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage","modified":"2026-08-26T15:41:19.740941Z","packages":[{"ecosystem":"Maven","name":"org.apache.camel:camel-jms","purl":"pkg:maven/org.apache.camel/camel-jms","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-jms","purl":"pkg:maven/org.apache.camel/camel-jms","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-jms","purl":"pkg:maven/org.apache.camel/camel-jms","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms","purl":"pkg:maven/org.apache.camel/camel-sjms","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms","purl":"pkg:maven/org.apache.camel/camel-sjms","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms","purl":"pkg:maven/org.apache.camel/camel-sjms","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms2","purl":"pkg:maven/org.apache.camel/camel-sjms2","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms2","purl":"pkg:maven/org.apache.camel/camel-sjms2","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-sjms2","purl":"pkg:maven/org.apache.camel/camel-sjms2","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-amqp","purl":"pkg:maven/org.apache.camel/camel-amqp","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-amqp","purl":"pkg:maven/org.apache.camel/camel-amqp","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-amqp","purl":"pkg:maven/org.apache.camel/camel-amqp","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq","purl":"pkg:maven/org.apache.camel/camel-activemq","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq","purl":"pkg:maven/org.apache.camel/camel-activemq","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq","purl":"pkg:maven/org.apache.camel/camel-activemq","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq6","purl":"pkg:maven/org.apache.camel/camel-activemq6","ranges":[">=3.0.0 <4.14.7"],"fixed":["4.14.7"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq6","purl":"pkg:maven/org.apache.camel/camel-activemq6","ranges":[">=4.15.0 <4.18.2"],"fixed":["4.18.2"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-activemq6","purl":"pkg:maven/org.apache.camel/camel-activemq6","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}