{"id":"GHSA-m5vh-3fw5-5wgh","summary":"Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage","details":"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.","aliases":["CVE-2026-40860"],"modified":"2026-08-26T15:41:19.740941Z","published":"2026-04-27T09:34:39Z","database_specific":{"cwe_ids":["CWE-502"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-08-26T15:19:50Z","nvd_published_at":"2026-04-27T09:16:01Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40860"},{"type":"WEB","url":"https://github.com/apache/camel/pull/22598"},{"type":"WEB","url":"https://github.com/apache/camel/pull/22603"},{"type":"WEB","url":"https://github.com/apache/camel/pull/22604"},{"type":"WEB","url":"https://github.com/apache/camel/pull/22639"},{"type":"WEB","url":"https://github.com/apache/camel/commit/0c06142c46a1422b6b49fab784a1087c50e48ee8"},{"type":"WEB","url":"https://github.com/apache/camel/commit/107e8c279cf9bf488843e33fb6333cc2d7f37c67"},{"type":"WEB","url":"https://github.com/apache/camel/commit/6a82709f0fc5431f46d2939547aacd2c7395c97a"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40860.json"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/CAMEL-23321"},{"type":"WEB","url":"https://github.com/apache/camel/releases/tag/camel-4.20.0"},{"type":"WEB","url":"https://github.com/apache/camel/releases/tag/camel-4.18.2"},{"type":"WEB","url":"https://github.com/apache/camel/releases/tag/camel-4.14.7"},{"type":"PACKAGE","url":"https://github.com/apache/camel"},{"type":"WEB","url":"https://camel.apache.org/security/CVE-2026-40860.html"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463172"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-40860"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:22453"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:17668"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/04/26/10"}],"affected":[{"package":{"name":"org.apache.camel:camel-jms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-jms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.11.4","3.11.5","3.11.6","3.11.7","3.12.0","3.13.0","3.14.0","3.14.1","3.14.10","3.14.2","3.14.3","3.14.4","3.14.5","3.14.6","3.14.7","3.14.8","3.14.9","3.15.0","3.16.0","3.17.0","3.18.0","3.18.1","3.18.2","3.18.3","3.18.4","3.18.5","3.18.6","3.18.7","3.18.8","3.19.0","3.2.0","3.20.0","3.20.1","3.20.2","3.20.3","3.20.4","3.20.5","3.20.6","3.20.7","3.20.8","3.20.9","3.21.0","3.21.1","3.21.2","3.21.3","3.21.4","3.21.5","3.22.0","3.22.1","3.22.2","3.22.3","3.22.4","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.5.0","3.6.0","3.7.0","3.7.1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.8.0","3.9.0","4.0.0","4.0.0-M1","4.0.0-M2","4.0.0-M3","4.0.0-RC1","4.0.0-RC2","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.0","4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.2.0","4.3.0","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.5.0","4.6.0","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-jms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-jms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-jms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-jms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.11.4","3.11.5","3.11.6","3.11.7","3.12.0","3.13.0","3.14.0","3.14.1","3.14.10","3.14.2","3.14.3","3.14.4","3.14.5","3.14.6","3.14.7","3.14.8","3.14.9","3.15.0","3.16.0","3.17.0","3.18.0","3.18.1","3.18.2","3.18.3","3.18.4","3.18.5","3.18.6","3.18.7","3.18.8","3.19.0","3.2.0","3.20.0","3.20.1","3.20.2","3.20.3","3.20.4","3.20.5","3.20.6","3.20.7","3.20.8","3.20.9","3.21.0","3.21.1","3.21.2","3.21.3","3.21.4","3.21.5","3.22.0","3.22.1","3.22.2","3.22.3","3.22.4","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.5.0","3.6.0","3.7.0","3.7.1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.8.0","3.9.0","4.0.0","4.0.0-M1","4.0.0-M2","4.0.0-M3","4.0.0-RC1","4.0.0-RC2","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.0","4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.2.0","4.3.0","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.5.0","4.6.0","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms2","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.11.4","3.11.5","3.11.6","3.11.7","3.12.0","3.13.0","3.14.0","3.14.1","3.14.10","3.14.2","3.14.3","3.14.4","3.14.5","3.14.6","3.14.7","3.14.8","3.14.9","3.15.0","3.16.0","3.17.0","3.18.0","3.18.1","3.18.2","3.18.3","3.18.4","3.18.5","3.18.6","3.18.7","3.18.8","3.19.0","3.2.0","3.20.0","3.20.1","3.20.2","3.20.3","3.20.4","3.20.5","3.20.6","3.20.7","3.20.8","3.20.9","3.21.0","3.21.1","3.21.2","3.21.3","3.21.4","3.21.5","3.22.0","3.22.1","3.22.2","3.22.3","3.22.4","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.5.0","3.6.0","3.7.0","3.7.1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.8.0","3.9.0","4.0.0","4.0.0-M1","4.0.0-M2","4.0.0-M3","4.0.0-RC1","4.0.0-RC2","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.0","4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.2.0","4.3.0","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.5.0","4.6.0","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms2","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-sjms2","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-sjms2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-amqp","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-amqp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.11.4","3.11.5","3.11.6","3.11.7","3.12.0","3.13.0","3.14.0","3.14.1","3.14.10","3.14.2","3.14.3","3.14.4","3.14.5","3.14.6","3.14.7","3.14.8","3.14.9","3.15.0","3.16.0","3.17.0","3.18.0","3.18.1","3.18.2","3.18.3","3.18.4","3.18.5","3.18.6","3.18.7","3.18.8","3.19.0","3.2.0","3.20.0","3.20.1","3.20.2","3.20.3","3.20.4","3.20.5","3.20.6","3.20.7","3.20.8","3.20.9","3.21.0","3.21.1","3.21.2","3.21.3","3.21.4","3.21.5","3.22.0","3.22.1","3.22.2","3.22.3","3.22.4","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.5.0","3.6.0","3.7.0","3.7.1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.8.0","3.9.0","4.0.0","4.0.0-M1","4.0.0-M2","4.0.0-M3","4.0.0-RC1","4.0.0-RC2","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.0","4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.2.0","4.3.0","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.5.0","4.6.0","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-amqp","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-amqp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-amqp","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-amqp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["3.0.0","3.0.1","3.1.0","3.10.0","3.11.0","3.11.1","3.11.2","3.11.3","3.11.4","3.11.5","3.11.6","3.11.7","3.12.0","3.13.0","3.14.0","3.14.1","3.14.10","3.14.2","3.14.3","3.14.4","3.14.5","3.14.6","3.14.7","3.14.8","3.14.9","3.15.0","3.16.0","3.17.0","3.18.0","3.18.1","3.18.2","3.18.3","3.18.4","3.18.5","3.18.6","3.18.7","3.18.8","3.19.0","3.2.0","3.20.0","3.20.1","3.20.2","3.20.3","3.20.4","3.20.5","3.20.6","3.20.7","3.20.8","3.20.9","3.21.0","3.21.1","3.21.2","3.21.3","3.21.4","3.21.5","3.22.0","3.22.1","3.22.2","3.22.3","3.22.4","3.3.0","3.4.0","3.4.1","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.5.0","3.6.0","3.7.0","3.7.1","3.7.2","3.7.3","3.7.4","3.7.5","3.7.6","3.7.7","3.8.0","3.9.0","4.0.0","4.0.0-RC1","4.0.0-RC2","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.0","4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.2.0","4.3.0","4.4.0","4.4.1","4.4.2","4.4.3","4.4.4","4.4.5","4.5.0","4.6.0","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq6","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq6"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.14.7"}]}],"versions":["4.10.0","4.10.1","4.10.2","4.10.3","4.10.4","4.10.5","4.10.6","4.10.7","4.10.8","4.10.9","4.11.0","4.12.0","4.13.0","4.14.0","4.14.1","4.14.2","4.14.3","4.14.4","4.14.5","4.14.6","4.7.0","4.8.0","4.8.1","4.8.2","4.8.3","4.8.4","4.8.5","4.8.6","4.8.7","4.8.8","4.8.9","4.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq6","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq6"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.18.2"}]}],"versions":["4.15.0","4.16.0","4.17.0","4.18.0","4.18.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}},{"package":{"name":"org.apache.camel:camel-activemq6","ecosystem":"Maven","purl":"pkg:maven/org.apache.camel/camel-activemq6"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"4.20.0"}]}],"versions":["4.19.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-m5vh-3fw5-5wgh/GHSA-m5vh-3fw5-5wgh.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}