CVE-2026-40858: Apache Camel: Camel-Infinispan: Unsafe Deserialization in Remote Aggregation Repository
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.
Security readout for executives and security teams
Plain-English summary
This flaw can let someone who can write to an Infinispan cache make an Apache Camel application run malicious Java objects when it later reads aggregation data. It is serious because successful exploitation means code execution inside the affected application, but the attacker first needs cache write access.
Executive priority
Prioritize remediation for systems where Infinispan cache write access crosses team, service, or tenant boundaries. Treat internet-adjacent or broadly writable cache environments as urgent because impact is full application compromise.
Technical view
Apache Camel camel-infinispan remote aggregation repository uses java.io.ObjectInputStream on cache data without ObjectInputFilter. In affected 4.x ranges, crafted serialized data written to the relevant Infinispan cache may execute code during normal repository operations such as get or recover.
Likely exposure
Exposure is most likely in Camel applications using org.apache.camel:camel-infinispan with a ProtoStream-based remote aggregation repository backed by remote Infinispan. Affected ranges are 4.0.0 before 4.14.7, 4.15.0 before 4.18.2, and 4.19.0 before 4.20.0.
Exploitation context
The provided sources do not report active exploitation or KEV listing. Exploitation requires an attacker able to write to the Infinispan cache used by the Camel application, then wait for normal aggregation repository reads.
Researcher notes
This is CWE-502 unsafe deserialization. The issue follows the same vulnerability class as prior Camel deserialization CVEs cited by Apache. Evidence supports arbitrary code execution only when cache-write capability exists; no source in the bundle confirms public exploitation.
Mitigation direction
Upgrade Apache Camel to 4.20.0 where possible.
Use 4.14.7 for the 4.14.x LTS stream.
Use 4.18.2 for the 4.18.x stream.
Restrict write access to affected Infinispan caches to trusted services only.
Check Red Hat errata for downstream package guidance.
Validation and detection
Inventory applications depending on org.apache.camel:camel-infinispan.
Confirm deployed Camel versions are outside the affected ranges.
Identify use of remote aggregation repositories backed by Infinispan.
Review who or what can write to the relevant Infinispan cache.
Verify remediation through dependency manifests and runtime deployment versions.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-502: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
7Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-502 · source CWE mapping
Deserialization of Untrusted Data
Deserialization of Untrusted Data represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.