CVE-2026-40859 — Vulnerability in camel-netty-http — CVE Details
Apache Camel-Vertx-Http and Camel-Netty-Http: Unsafe Java deserialization of HTTP response bodies via a raw ObjectInputStream when transferException is enabled
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.89%). Schedule for your next planned update.
Does your project use an affected org.apache.camel:camel-netty-http version?
Paste your pom.xml to check it for CVE-2026-40859 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Deserialization of Untrusted Data vulnerability in Apache Camel.
The 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. This 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.
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.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.
Advisory Timeline
- First published July 6, 2026 (143 days ago).
- Last revised September 10, 2026 — 66 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-netty-http -->
<!-- Update pom.xml dependency version to 4.14.8 for org.apache.camel:camel-vertx-http -->
<!-- Update pom.xml dependency version to 4.20.0 for org.apache.camel:camel-vertx-http -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-netty-http -->
<!-- Update pom.xml dependency version to 4.18.3 for org.apache.camel:camel-vertx-http -->
<!-- Update pom.xml dependency version to 4.20.0 for org.apache.camel:camel-netty-http -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.apache.camel:camel-netty-http Maven · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+47 more) | 4.14.8 |
| org.apache.camel:camel-vertx-http Maven · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+47 more) | 4.14.8 |
| org.apache.camel:camel-vertx-http Maven · Affected: 4.19.0 | 4.20.0 |
| org.apache.camel:camel-netty-http Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-vertx-http Maven · Affected: 4.15.0, 4.16.0, 4.17.0, 4.18.0 (+2 more) | 4.18.3 |
| org.apache.camel:camel-netty-http Maven · Affected: 4.19.0 | 4.20.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-40859ADVISORY
- https://github.com/apache/camel/pull/22613WEB
- https://github.com/apache/camel/pull/22637WEB
- https://github.com/apache/camel/pull/22768WEB
- https://github.com/apache/camel/commit/04019cf90a4b09e263d2df4ad4cacea85a9d72eeWEB
- https://github.com/apache/camel/commit/a3835afef108fef9eaf04165faed91784889407fWEB
- https://github.com/apache/camel/commit/e735f56b4bcae040a6a113a83bf08d41b8696c43WEB
- https://camel.apache.org/security/CVE-2026-40859.htmlWEB
- https://github.com/apache/camelPACKAGE
- https://github.com/apache/camel/releases/tag/camel-4.14.8WEB
- https://github.com/apache/camel/releases/tag/camel-4.18.3WEB
- https://github.com/apache/camel/releases/tag/camel-4.20.0WEB
- https://issues.apache.org/jira/browse/CAMEL-23324WEB
- https://www.openwall.com/lists/oss-security/2026/07/05/3WEB
Frequently Asked Questions
- What is CVE-2026-40859?
- Apache Camel-Vertx-Http and Camel-Netty-Http: Unsafe Java deserialization of HTTP response bodies via a raw ObjectInputStream when transferException is enabled. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-40859?
- CVE-2026-40859 affects org.apache.camel:camel-netty-http and org.apache.camel:camel-vertx-http. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40859 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 57.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-40453CRITICAL
Apache Camel has an incomplete fix for CVE-2025-27636
- CVE-2026-40860CRITICAL
Apache camel-jms, camel-sjms, camel-sjms2 and camel-amqp: Unsafe Deserialization of JMS ObjectMessage
- CVE-2022-45046CRITICAL
camel-ldap component allows LDAP Injection when using the filter option
- CVE-2026-40022HIGH
Apache Camel Vulnerable to Authentication Bypass Using an Alternate Path or Channel
- CVE-2026-42527HIGH
Apache Camel: Permissive default ObjectInputFilter pattern admits java.net.** and enables DNS-based information disclosure
- CVE-2026-43866HIGH
Apache Camel JMS deserialization filter bypass
- CVE-2026-46592HIGH
Apache Camel-CXF: The SOAP operation-selection headers used non-Camel-prefixed names (operationName, operationNamespace) that bypass the HTTP header filter, allowing an HTTP client to redirect the invoked SOAP operation
- CVE-2026-43865HIGH
Apache Camel-Hazelcast: Unsafe Java deserialization in default-configured managed Hazelcast instances enables remote code execution