CamelApplication · Apache

CVE-2026-40859

HIGH · 8.1 CVSS v3.1 Published 2026-07-06
Fix available
A fix is available. Upgrade to 4.14.8 / 4.18.3 or later.
See remediation →
90/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The camel-vertx-http component deserializes Java objects from HTTP responses using a raw ObjectInputStream without any class restrictions when transferException=true or allowJavaSerializedObject=true. An attacker controlling the backend or positioned as MITM can inject a malicious serialized Java object and achieve RCE if gadget chains exist on the classpath.

MitigationUpgrade to Apache Camel 4.20.0 (or 4.14.8/4.18.3 for LTS streams) which adds a default ObjectInputFilter; alternatively, disable transferException/allowJavaSerializedObject for untrusted backends, enforce TLS, or set -Djdk.serialFilter.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
CamelApplication
Affected:>= 4.0.0, < 4.14.8>= 4.15.0, < 4.18.3= 4.19.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify camel-vertx-http component usage
    Search your codebase for Maven/Gradle dependencies containing 'camel-vertx-http', or grep for 'vertx-http://' in route definition files (XML, Java, YAML).
    Affected if The camel-vertx-http component is present in your project dependencies or used in route definitions.
  2. Check Apache Camel version
    Inspect your build file (pom.xml, build.gradle) or the deployed camel-core JAR MANIFEST.MF to find the Apache Camel version.
    Affected if The version falls within >=4.0.0,<4.14.8 OR >=4.15.0,<4.18.3 OR equals 4.19.0.
  3. Verify transferException configuration
    Search route definitions and Camel context XML/YAML files for 'transferException=true' parameter on vertx-http endpoints.
    Affected if transferException=true is explicitly set on a vertx-http consumer or producer.
  4. Verify allowJavaSerializedObject configuration
    Search route definitions and Camel context files for 'allowJavaSerializedObject=true' parameter on vertx-http endpoints.
    Affected if allowJavaSerializedObject=true is set on any vertx-http endpoint.
  5. Assess backend trust and TLS enforcement
    Review vertx-http endpoint URLs to determine if they connect to untrusted third-party backends and whether TLS/SSL is enforced on those connections.
    Affected if Endpoints connect to untrusted backends without TLS or the transferException/allowJavaSerializedObject options are enabled for untrusted connections.

You are affected if Apache Camel version is within the vulnerable ranges AND the camel-vertx-http component is used with transferException=true or allowJavaSerializedObject=true, especially when connecting to untrusted backends.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.14.8 / 4.18.3 or later
Fixed in 4.14.84.18.3
Interim mitigation

Upgrade to Apache Camel 4.20.0 (or 4.14.8/4.18.3 for LTS streams) which adds a default ObjectInputFilter; alternatively, disable transferException/allowJavaSerializedObject for untrusted backends, enforce TLS, or set -Djdk.serialFilter.

Recommended fix High confidence

Apache Camel 4.20.0 (or 4.14.8 for 4.14.x LTS, or 4.18.3 for 4.18.x releases)

  1. Identify your current Apache Camel version by checking your project dependencies or build configuration
  2. For Camel 4.14.x LTS releases: upgrade to version 4.14.8
  3. For Camel 4.15.x through 4.18.x releases: upgrade to version 4.18.3
  4. For Camel 4.19.x: upgrade to version 4.20.0
  5. For any other affected version (4.0.0+): upgrade to version 4.20.0
  6. After upgrading, verify the deserializationFilter endpoint option is available for fine-grained control if needed
  7. Test the upgrade in a non-production environment before deploying to production
Caveat Upgrading Camel minor versions may introduce breaking changes; review the release notes for your target version for any API or configuration changes that affect your integration routes

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Camel Scoped from the published advisory
  • Consultation4.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,970
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,152.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-40859 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-40859 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data