/

CVE-2026-78162

Severity:

CRITICAL RISK

(9.8)

Unsafe Deserialization (CWE-502) in Apache Camel Hazelcast

CVE-2026-78162

Analyzed

Vulnerability type

Category:

Unsafe Deserialization

CWE:

CWE-502

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Apache Camel's Hazelcast integration can create instances without the Java deserialization filter applied to other configuration paths. If an attacker can publish crafted serialized data to the Hazelcast cluster used by an affected instance, that data may be deserialized inside Hazelcast and lead to remote code execution.

Affected context

The issue affects Apache Camel versions from 4.0.0 before 4.18.5 and from 4.19.0 before 4.22.1. It occurs in two Camel-managed Hazelcast instance creation paths that did not apply a Java serialization filter:

  • A ReplicatedHazelcastAggregationRepository starts without a supplied hazelcastInstance.
  • A Hazelcast client-mode endpoint is used without a referenced ClientConfig or hazelcastConfigUri.

In either case, the created instance can deserialize cluster data without a class restriction. Hazelcast clusters may lack authentication and TLS unless these protections are configured.

Exploit preconditions

  • Attack surface: The Hazelcast cluster to which the affected Camel instance is connected.
  • Required access: Ability to publish serialized data to that cluster; authentication requirements depend on the deployment's cluster configuration.
  • Trigger point: Hazelcast deserializes cluster data, potentially before Camel processes the exchange.
  • Affected paths: The repository path without a supplied instance, or the client-mode path without a supplied client configuration or configuration URI.
  • Why exploitation is possible: These Camel-managed instance creation paths omit the Java deserialization filter, allowing attacker-controlled serialized objects to be deserialized.

Why this happens

This is CWE-502: Deserialization of Untrusted Data. Camel applies a Hazelcast Java serialization filter in some instance creation paths, but two separately implemented bootstrap paths do not apply it. As a result, those instances can deserialize cluster-provided Java objects without a class restriction. The issue is an inconsistent security control, not an explicit choice by users to enable unsafe deserialization.

Potential impact

  • An attacker who can publish data to the cluster could cause code to execute in the affected Hazelcast process.
  • The affected Camel service or its host environment could be compromised.
  • Accessible credentials, data, or services could be exposed or misused.

General mitigation guidance

Reduce the risk by ensuring Hazelcast instances use restrictive Java deserialization filters, including instances created through custom or component-managed paths. Prefer secure-by-default configurations and avoid deserializing data from untrusted cluster members; where feasible, use data formats that do not require Java object deserialization.

Restrict cluster access with authentication and TLS, and apply least privilege to the Camel process and its network access. Where a deployment supplies its own Hazelcast configuration or pre-built instance, ensure that it carries an appropriate serialization filter. JVM-wide deserialization policies can also provide a defense-in-depth control.

How teams detect issues like this

  • Review code and configuration paths that create Hazelcast instances, including repository-specific startup methods and client-mode setup.
  • Use static analysis or code review checks to identify Java deserialization paths without restrictive filters and duplicated bootstrap logic that may bypass shared security controls.
  • Enforce policies requiring approved serialization filters and authenticated, encrypted cluster communications.
  • Monitor Hazelcast membership and publishing activity for unexpected participants or unusual serialized-data traffic. Automated code review tools may help identify unsafe deserialization patterns.

Sources

SourceLink
camel.apache.orgcamel.apache.org/security/CVE-2026-43865.html
camel.apache.orgcamel.apache.org/security/CVE-2026-78162.html
github.comgithub.com/apache/camel/pull/25566
github.comgithub.com/apache/camel/pull/25595
github.comgithub.com/apache/camel/pull/25599
github.comgithub.com/apache/camel/pull/25600
issues.apache.orgissues.apache.org/jira/browse/CAMEL-24413
issues.apache.orgissues.apache.org/jira/browse/CAMEL-24420

Frequently asked

questions

It can be exploitable by an attacker who can publish serialized data to the Hazelcast cluster connected to an affected instance. Whether that access is available remotely depends on network exposure and cluster security controls.

The attacker needs the ability to publish data to the relevant cluster. Hazelcast authentication and TLS are not enabled by default, but deployment settings determine the actual access requirements.

Ensure every Hazelcast instance uses a restrictive Java serialization filter, including instances created by Camel-managed paths. A supplied configuration or pre-built instance should also retain appropriate filtering.

Apply secure-by-default deserialization policies consistently, limit who can reach and publish to clusters, and review every instance-creation path for equivalent security controls.

Find out what's already
exploitable in your codebase.