{"cve":"CVE-2026-40859","nvd":{"published":"2026-07-06T09:16:35.520","modified":"2026-10-25T15:10:00.147","status":"Analyzed","description":"Deserialization of Untrusted Data vulnerability in Apache Camel.\n\nThe camel-vertx-http component deserializes HTTP response bodies carrying the Content-Type application/x-java-serialized-object using a raw java.io.ObjectInputStream, without applying any ObjectInputFilter (VertxHttpHelper.deserializeJavaObjectFromStream) This deserialization path is reached only when the producer endpoint is configured with transferException=true (or the component-level allowJavaSerializedObject=true) and throwExceptionOnFailure is left at its default value of true; in that case a backend HTTP response with a 5xx status and the application/x-java-serialized-object content type has its body deserialized with no class restrictions. An attacker who controls the backend the Camel producer talks to - through a man-in-the-middle position on an unencrypted (plain HTTP) connection, or by compromising the backend service - can return a crafted serialized Java object and, if a suitable gadget chain is present on the classpath, achieve remote code execution on the Camel application host. The path is not reachable in the default configuration, where transferException is false.\nThis issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, 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.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, the deserialization performed by both helper utilities is constrained by a default ObjectInputFilter (allow-list java.**;javax.**;org.apache.camel.**;!*), which can be customised through the new deserializationFilter endpoint option or the JVM-wide -Djdk.serialFilter system property. For deployments that cannot upgrade immediately: do not enable transferException=true (or allowJavaSerializedObject=true) on producers that talk to untrusted or network-reachable backends; ensure producer connections use TLS (https) so that a response cannot be substituted by a man-in-the-middle; and, where the option is required, set an explicit -Djdk.serialFilter allow-list (for example java.**;org.apache.camel.**;!*) to constrain deserialization.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1},"cwes":["CWE-502"],"references":["https://camel.apache.org/security/CVE-2026-40859.html","http://www.openwall.com/lists/oss-security/2026/07/05/3"],"products":["apache:camel"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-40859","score":0.00886,"percentile":0.59012,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-6qw3-4796-5984","url":"https://osv.dev/vulnerability/GHSA-6qw3-4796-5984","summary":"Apache Camel-Vertx-Http and Camel-Netty-Http: Unsafe Java deserialization of HTTP response bodies via a raw ObjectInputStream when transferException is enabled","modified":"2026-09-10T03:51:10.913538208Z","packages":[{"ecosystem":"Maven","name":"org.apache.camel:camel-vertx-http","purl":"pkg:maven/org.apache.camel/camel-vertx-http","ranges":[">=4.0.0 <4.14.8"],"fixed":["4.14.8"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-vertx-http","purl":"pkg:maven/org.apache.camel/camel-vertx-http","ranges":[">=4.15.0 <4.18.3"],"fixed":["4.18.3"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-vertx-http","purl":"pkg:maven/org.apache.camel/camel-vertx-http","ranges":[">=4.19.0 <4.20.0"],"fixed":["4.20.0"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-netty-http","purl":"pkg:maven/org.apache.camel/camel-netty-http","ranges":[">=4.0.0 <4.14.8"],"fixed":["4.14.8"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-netty-http","purl":"pkg:maven/org.apache.camel/camel-netty-http","ranges":[">=4.15.0 <4.18.3"],"fixed":["4.18.3"]},{"ecosystem":"Maven","name":"org.apache.camel:camel-netty-http","purl":"pkg:maven/org.apache.camel/camel-netty-http","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."]}