CVE-2026-40859 json
Apache Camel: Camel-Vertx-Http: Unsafe Java deserialization of HTTP response bodies via a raw ObjectInputStream when transferException is enabled
published 2026-07-06 4 mo ago modified 2026-10-25 15 d ago also GHSA-6qw3-4796-5984 , EUVD-2026-41824
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
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.
Patch / fix
- maven org.apache.camel:camel-vertx-http 4.14.8, 4.18.3, 4.20.0
- maven org.apache.camel:camel-netty-http 4.14.8, 4.18.3, 4.20.0
- Apache Software Foundation Apache Camel 4.14.8, 4.18.3, 4.20.0
- github.com/apache/camel@04019cf commit
- github.com/apache/camel@a3835af commit
- github.com/apache/camel@e735f56 commit
- github.com/apache/camel#22613 pull request
- github.com/apache/camel#22637 pull request
- github.com/apache/camel#22768 pull request
- github.com/apache/camel/releases/tag/camel-4.14.8 release
- github.com/apache/camel/releases/tag/camel-4.18.3 release
- github.com/apache/camel/releases/tag/camel-4.20.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-40859 updated cvss 8.1
org.apache.camel/camel-vertx-http: Apache Camel (camel-vertx-http): Remote Code Execution via Deserialization of Untrusted Data
-
Red Hat build of Apache Camel 4 for Quarkus 3 camel-vertx-http 4.18.1.redhat-00026affected: workaround, no fix available
-
Red Hat Build of Apache Camel 3.33.2.SP3 camel-vertx-http 4.18.3.redhat-00001fixed: vendor fix RHSA-2026:48118
-
Red Hat build of Apache Camel 4.18.3 for Spring Boot 3.5.16fixed: vendor fix RHSA-2026:54622
-
Red Hat Build of Apache Camel 3.33.2.SP3 jimfs 1.1, jna 5.8.0, bcel 6.7.0, bson 5.6.4, gax 2.74.1, icu4j 78.2, +1630 morenot affected: vulnerable code not present
-
Red Hat JBoss Enterprise Application Platform Expansion Pack camel-vertx-http 4.18.1.redhat-00026not affected: component not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 4 mo ago
Exploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.camel:camel-vertx-http | >=4.0.0, <4.14.8 >=4.15.0, <4.18.3 >=4.19.0, <4.20.0 |
4.14.8 4.18.3 4.20.0 |
| maven | org.apache.camel:camel-netty-http | >=4.0.0, <4.14.8 >=4.15.0, <4.18.3 >=4.19.0, <4.20.0 |
4.14.8 4.18.3 4.20.0 |
Affected products
- Apache Software Foundation Apache Camel
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
-
github.com
/apache/camel/pull/22613
web
-
github.com
/apache/camel/pull/22637
web
-
github.com
/apache/camel/pull/22768
web
-
github.com
/apache/camel/commit/04019cf90a4b09e263d2df4ad4cacea85a9d72ee
web
-
github.com
/apache/camel/commit/a3835afef108fef9eaf04165faed91784889407f
web
-
github.com
/apache/camel/commit/e735f56b4bcae040a6a113a83bf08d41b8696c43
web
-
camel.apache.org
/security/CVE-2026-40859.html
vendor-advisory, web, mitigation
-
openwall.com
/lists/oss-security/2026/07/05/3
web, mailing-list, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-40859
advisory
-
github.com
/apache/camel
package
-
github.com
/apache/camel/releases/tag/camel-4.14.8
web
-
github.com
/apache/camel/releases/tag/camel-4.18.3
web
-
github.com
/apache/camel/releases/tag/camel-4.20.0
web
-
issues.apache.org
/jira/browse/CAMEL-23324
web
Sources
- CVE List CVE-2026-40859
- GitHub Advisory GHSA-6qw3-4796-5984
- NVD CVE-2026-40859
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.