← Back to Patch Radar
PATCH RADAR / CVE-2026-78162

CVE-2026-78162 — Apache Camel Hazelcast deserialization RCE: affected versions and fix

CVE-2026-78162 in Apache Camel's camel-hazelcast component allows remote code execution via deserialization in certain configurations. Check your version and upgrade.

Critical · CVSS-B 4.0 · 10.0 · CVE disclosed
Published by phil.on on

Affected products

Affected products

  • Apache Camel camel-hazelcast component
    • Affected: from 4.0.0 before 4.18.5
    • Affected: from 4.19.0 before 4.22.1
    • Fixed: 4.23.0 (unaffected), 4.22.1 and later 4.22.x (unaffected), 4.18.5 and later 4.18.x (unaffected)
    • Not fixed and no longer supported: 4.14.x and earlier (end of life before the fix); deployments on these lines must move to a supported release
    • CVSS: 10.0 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H)

Unaffected versions

  • Apache Camel 4.18.5, 4.22.1, 4.23.0

Affected version range not stated

  • Not applicable. The vendor lists affected and fixed versions explicitly.
  • Apache Software Foundation Apache Camel ↗
    Apache Software Foundation / Apache Camel: 4.0.0 | < 4.18.5 | affected | maven; 4.19.0 | < 4.22.1 | affected | maven; 4.18.5 | unaffected | maven; 4.22.1 | unaffected | maven; 4.23.0 | unaffected | maven

Why it matters

Apache Camel's `camel-hazelcast` component applied a default Hazelcast Java deserialization filter only on some of the Hazelcast configurations it builds itself. Two paths did not receive that protection: `ReplicatedHazelcastAggregationRepository`, which overrides `doStart()` without calling `super.doStart()` and therefore kept an unfiltered bootstrap block, and client-mode endpoints created through `HazelcastDefaultComponent#getOrCreateHzClientInstance()` when no `ClientConfig` or `hazelcastConfigUri` was supplied. In these cases Camel starts a Hazelcast member or client whose Java deserialization is unrestricted.

Because Hazelcast clusters have authentication and TLS disabled by default, an attacker who can publish into a Hazelcast cluster that an affected Camel instance is attached to can have a serialized Java object of their choosing deserialized inside Hazelcast's serialization layer before Camel processes the exchange. This can lead to remote code execution. Selecting client mode was a topology choice, not a security setting, so affected deployments did not have to opt in to unsafe behaviour.

Checks and remediation

What to check

  1. Inventory every Apache Camel deployment and determine the version of Camel in use, including transitive Maven/Gradle dependencies and bundled application servers or integration platforms.
  2. Flag any deployment on Camel 4.0.0 through 4.18.4, or 4.19.0 through 4.22.0, as affected. Deployments on 4.14.x or earlier are end-of-life and also unresolved.
  3. Identify routes that use camel-hazelcast, specifically:
    • ReplicatedHazelcastAggregationRepository where no hazelcastInstance is supplied.
    • Endpoints in hazelcastMode=client mode where neither a referenced ClientConfig nor hazelcastConfigUri is supplied.
  4. Determine whether the Hazelcast cluster is reachable by untrusted parties, since Hazelcast authentication and TLS are disabled by default. Treat any affected instance as exposed until remediation is applied.
  5. Confirm whether an explicit user-supplied Hazelcast configuration (Config, ClientConfig or a pre-built HazelcastInstance) is already in place, as Camel does not overwrite user-supplied configuration.

Remediation steps

Preferred fix for all environments

  1. Upgrade Apache Camel to 4.23.0, which contains the fix on both previously uncovered paths.
  2. If constrained to a release stream, upgrade to 4.22.1 (4.22.x line) or 4.18.5 (4.18.x line).
  3. Deployments on 4.14.x or earlier must move to a supported release, as no fix will be issued for those lines.
  4. Rebuild application artefacts and container images against the upgraded dependency and redeploy them.

Self-hosted Ubuntu/Linux hosts

  1. Update the Camel dependency in your build (Maven/Gradle) to a fixed version, since this is a Java library rather than an OS package. Update application code or dependency management files accordingly.
  2. Rebuild and redeploy the application on the host. On Ubuntu/Linux, if the application is run from a distribution package, use the package manager to apply the vendor-published update after confirming the package ships a fixed Camel version.
  3. Do not assume apt will resolve this; the fix must come through your application's own dependency build.

AWS

  1. For customer-managed hosts (EC2, ECS tasks, EKS workloads, Lambda layers you build), rebuild images and task definitions with a fixed Camel version and redeploy.
  2. For managed services you do not control, the vendor patches the underlying host; confirm with the provider or your configuration that the managed runtime uses a fixed Camel version, and apply the workaround below if not.
  3. If the Hazelcast cluster spans AWS resources, ensure the cluster is not reachable from untrusted networks while remediation is in progress.

GCP

  1. For customer-managed hosts (Compute Engine, GKE workloads, Cloud Run containers you build), rebuild images with a fixed Camel version and redeploy.
  2. For managed services, confirm with the provider that the runtime has been updated to a fixed Camel version.
  3. Restrict network reachability to any Hazelcast cluster while remediation is in progress.

Temporary workarounds when immediate upgrade is not possible

  1. Supply an explicit Hazelcast configuration (Config or ClientConfig) carrying a JavaSerializationFilterConfig, or inject a pre-built HazelcastInstance. Camel does not overwrite user-supplied configuration.
  2. Alternatively, set the JVM-wide filter -Djdk.serialFilter=!java.net.;java.;javax.;org.apache.camel.;!* on the affected process.
  3. Enable Hazelcast cluster authentication and TLS to restrict who can reach the cluster.
  4. Treat these measures as reversible mitigations only; plan the upgrade to a fixed version.

Verification

  1. Confirm the deployed artefact contains a fixed Camel version (4.23.0, 4.22.1, or 4.18.5 as applicable).
  2. Confirm the previously uncovered configuration paths now carry the default filter: routes using ReplicatedHazelcastAggregationRepository without a supplied instance, and client-mode endpoints without a referenced ClientConfig or hazelcastConfigUri.
  3. If using the workaround, confirm the explicit filter configuration or JVM serialization filter is active and that Hazelcast cluster authentication and TLS are enabled.
  4. Re-run the inventory from the checklist to ensure no affected versions remain.

Patch status

Patch status unconfirmed.

Workarounds

Workaround not documented.

CVSS and CWE

CVSS-B 4.0 · 10.0 · apache ↗
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Additional CVSS assessments by source and scope
  • CVSS-B 4.0 · 10.0 · [email protected] ↗
    CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • CVSS 3.1 · 9.8 · [email protected] ↗
    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • CVSS-B 4.0 · 10.0 · apache ↗
    CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References

SHARE THIS NOTE