CVE-2026-40858
Apache Camel-Infinispan Component Vulnerable to Deserialization of Untrusted Data
Description
The camel-infinispan component's ProtoStream-based remote aggregation repository deserializes data read from a remote Infinispan cache using java.io.ObjectInputStream without applying any ObjectInputFilter. An attacker who can write to the Infinispan cache used by a Camel application can inject a crafted serialized Java object that, when read during normal aggregation repository operations such as get or recover, results in arbitrary code execution in the context of the application.
This issue affects Apache Camel: from 4.0.0 before 4.14.7, from 4.15.0 before 4.18.2, 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.7. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.2.
The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-23322 refers to the various commits that resolved the issue, and have more details. This issue follows the same class of vulnerability previously addressed in CVE-2024-22369, CVE-2024-23114 and CVE-2026-25747.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-infinispan | >= 4.0.0, < 4.14.7>= 4.15.0, < 4.18.2>= 4.19.0, < 4.20.0 | 4.14.7, 4.18.2, 4.20.0 |
Blast radius
4% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 254 |
| 2 hops | 640 |
| 3 hops | 197 |
| 4 hops | 97 |
| 5 hops | 230 |
| 6 hops | 5 |
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-main6 usages
- org.apache.camel.quarkus » camel-quarkus-infinispan6 usages
- io.kaoto.forage » integration-tests-common6 usages
- org.apache.camel » apache-camel5 usages
- org.apache.camel.springboot » camel-infinispan-starter4 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.quarkus » camel-quarkus-infinispan-cluster-service3 usages
- org.apache.camel.quarkus » camel-quarkus-infinispan-deployment2 usages
Computed from the dependency graph of build 20261204.0837 (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-40858 | nvd.nist.gov |
| Web | apache/camel pull request #22152 | github.com |
| Web | apache/camel pull request #22151 | github.com |
| Web | apache/camel pull request #22150 | github.com |
| Web | apache/camel pull request #22149 | github.com |
| Web | apache/camel pull request #22148 | github.com |
| Web | apache/camel pull request #22147 | github.com |
| Web | apache/camel pull request #22146 | github.com |
| Web | apache/camel commit e074c01 | github.com |
| Web | apache/camel commit 5c20de8 | github.com |
| Web | apache/camel commit 540d48e | github.com |
| Web | apache/camel commit 3926ab2 | github.com |
| Web | apache/camel commit 05cffa5 | github.com |
| Web | apache/camel commit 0307dd4 | github.com |
| Web | apache/camel | github.com |
| Web | jira/browse/CAMEL-23222 | issues.apache.org |
| Web | security/CVE-2026-40858.html | camel.apache.org |
