CVE-2026-43865
Apache Camel-Hazelcast: Unsafe Java deserialization in default-configured managed Hazelcast instances enables remote code execution
Description
Deserialization of Untrusted Data vulnerability in Apache Camel Hazelcast component.
The camel-hazelcast component creates and manages Hazelcast instances using a default configuration that applies no Java deserialization filter. When Camel builds the Hazelcast Config itself - that is, when no user-supplied HazelcastInstance, hazelcastConfigUri, or referenced Config bean is provided - neither Hazelcast's JavaSerializationFilterConfig nor a Camel-side ObjectInputFilter is configured, so objects received over the Hazelcast cluster protocol are deserialized inside Hazelcast's own serialization layer (ObjectInputStream.readObject) before Camel ever processes them. An attacker who can join or otherwise reach the Hazelcast cluster can publish a crafted serialized Java object that is then deserialized on every Camel node, resulting in remote code execution. The exposure is present by default and requires no opt-in endpoint configuration: any route using a hazelcast consumer (hazelcast-topic, hazelcast-queue, hazelcast-seda, hazelcast-map, hazelcast-multimap, hazelcast-replicatedmap, hazelcast-list, hazelcast-set), as well as the HazelcastAggregationRepository and HazelcastIdempotentRepository, is affected whenever the managed instance is created from Camel's default configuration. 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.21.0.
Users are recommended to upgrade to version 4.21.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. The fix makes Camel apply a default Hazelcast JavaSerializationFilterConfig (whitelisting the java., javax. and org.apache.camel. class-name prefixes and blacklisting java.net.) to instances it creates from its own default configuration, while leaving any user-supplied Config or HazelcastInstance untouched. For deployments that cannot upgrade immediately, configure a deserialization filter on the Hazelcast instance (Hazelcast JavaSerializationFilterConfig, or the JVM-wide system property -Djdk.serialFilter=!java.net.;java.;javax.;org.apache.camel.;!*) and enable Hazelcast cluster authentication and TLS to restrict who can reach the cluster.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-hazelcast | >= 4.0.0, < 4.14.8>= 4.15.0, < 4.18.3>= 4.19.0, < 4.21.0 | 4.14.8, 4.18.3, 4.21.0 |
Blast radius
13% of the dependent artifacts (5) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 226 |
| 2 hops | 624 |
| 3 hops | 112 |
| 4 hops | 101 |
| 5 hops | 255 |
| 6 hops | 7 |
Most used dependents
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- org.apache.camel » camel-jbang-core15 usages
- org.apache.camel » camel-catalog-lucene8 usages
- org.apache.camel » camel-route-parser7 usages
- org.apache.camel » camel-kamelet-main5 usages
- org.apache.camel » apache-camel5 usages
- io.kaoto.forage » integration-tests-common5 usages
- org.apache.camel.quarkus » camel-quarkus-hazelcast4 usages
- org.apache.camel » camel-catalog-console3 usages
- org.apache.camel » camel-report-maven-plugin3 usages
- org.apache.camel » camel-jbang-plugin-kubernetes3 usages
- org.apache.camel » camel-jbang-plugin-generate2 usages
- org.apache.camel » camel-jbang-plugin-test2 usages
- org.apache.camel.karaf » camel-hazelcast2 usages
Computed from the dependency graph of build 20261202.0245 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-43865 | nvd.nist.gov |
| Package | apache/camel | github.com |
| Web | apache/camel pull request #22943 | github.com |
| Web | apache/camel pull request #22946 | github.com |
| Web | apache/camel pull request #22955 | github.com |
| Web | apache/camel commit 5caf436 | github.com |
| Web | apache/camel commit 7a30904 | github.com |
| Web | apache/camel commit 974a11b | github.com |
| Web | security/CVE-2026-43865.html | camel.apache.org |
| Web | apache/camel release camel-4.14.8 | github.com |
| Web | apache/camel release camel-4.18.3 | github.com |
| Web | apache/camel release camel-4.21.0 | github.com |
| Web | jira/browse/CAMEL-23414 | issues.apache.org |
| Web | lists/oss-security/2026/07/05/5 | openwall.com |
