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.
Published by phil.on on
Affected products
Affected products
- Apache Camel
camel-hazelcastcomponent- Affected: from
4.0.0before4.18.5 - Affected: from
4.19.0before4.22.1 - Fixed:
4.23.0(unaffected),4.22.1and later4.22.x(unaffected),4.18.5and later4.18.x(unaffected) - Not fixed and no longer supported:
4.14.xand 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)
- Affected: from
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
- 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.
- Flag any deployment on Camel
4.0.0through4.18.4, or4.19.0through4.22.0, as affected. Deployments on4.14.xor earlier are end-of-life and also unresolved. - Identify routes that use
camel-hazelcast, specifically:ReplicatedHazelcastAggregationRepositorywhere nohazelcastInstanceis supplied.- Endpoints in
hazelcastMode=clientmode where neither a referencedClientConfignorhazelcastConfigUriis supplied.
- 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.
- Confirm whether an explicit user-supplied Hazelcast configuration (
Config,ClientConfigor a pre-builtHazelcastInstance) is already in place, as Camel does not overwrite user-supplied configuration.
Remediation steps
Preferred fix for all environments
- Upgrade Apache Camel to
4.23.0, which contains the fix on both previously uncovered paths. - If constrained to a release stream, upgrade to
4.22.1(4.22.xline) or4.18.5(4.18.xline). - Deployments on
4.14.xor earlier must move to a supported release, as no fix will be issued for those lines. - Rebuild application artefacts and container images against the upgraded dependency and redeploy them.
Self-hosted Ubuntu/Linux hosts
- 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.
- 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.
- Do not assume
aptwill resolve this; the fix must come through your application's own dependency build.
AWS
- 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.
- 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.
- If the Hazelcast cluster spans AWS resources, ensure the cluster is not reachable from untrusted networks while remediation is in progress.
GCP
- For customer-managed hosts (Compute Engine, GKE workloads, Cloud Run containers you build), rebuild images with a fixed Camel version and redeploy.
- For managed services, confirm with the provider that the runtime has been updated to a fixed Camel version.
- Restrict network reachability to any Hazelcast cluster while remediation is in progress.
Temporary workarounds when immediate upgrade is not possible
- Supply an explicit Hazelcast configuration (
ConfigorClientConfig) carrying aJavaSerializationFilterConfig, or inject a pre-builtHazelcastInstance. Camel does not overwrite user-supplied configuration. - Alternatively, set the JVM-wide filter
-Djdk.serialFilter=!java.net.;java.;javax.;org.apache.camel.;!*on the affected process. - Enable Hazelcast cluster authentication and TLS to restrict who can reach the cluster.
- Treat these measures as reversible mitigations only; plan the upgrade to a fixed version.
Verification
- Confirm the deployed artefact contains a fixed Camel version (
4.23.0,4.22.1, or4.18.5as applicable). - Confirm the previously uncovered configuration paths now carry the default filter: routes using
ReplicatedHazelcastAggregationRepositorywithout a supplied instance, and client-mode endpoints without a referencedClientConfigorhazelcastConfigUri. - If using the workaround, confirm the explicit filter configuration or JVM serialization filter is active and that Hazelcast cluster authentication and TLS are enabled.
- 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





