CVE-2026-40858: Unsafe Deserialization in Apache Camel camel-infinispan Remote Aggregation Repository
- Vendor
- Apache Software Foundation
CVE-2026-40858 is a high-severity unsafe deserialization vulnerability in the Apache Camel camel-infinispan component. The flaw is in the ProtoStream-based remote aggregation repository, which deserializes data read from a remote Infinispan cache using java.io.ObjectInputStream without applying an ObjectInputFilter. Because untrusted serialized Java objects can be read during normal repository operations such as get or recover, an attacker who is able to write crafted serialized data into the Infinispan cache can cause arbitrary code execution in the context of the Camel application. The issue affects Apache Camel versions 4.0.0 before 4.14.7, 4.15.0 before 4.18.2, and 4.19.0 before 4.20.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary code execution within the security context of the affected Camel application. This can enable full compromise of the application process, including execution of attacker-controlled code, access to application-held data, abuse of the application's privileges and connectivity, and potential follow-on actions such as lateral movement or service disruption depending on the deployment environment and runtime permissions.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by strictly limiting who and what can write to the remote Infinispan cache used by the Camel aggregation repository, isolating the cache to trusted systems and principals only, and avoiding use of the vulnerable remote aggregation repository path where feasible until patched. No complete workaround equivalent to the vendor fix is documented.
Remediation
Patch, then assume compromise.
Upgrade Apache Camel to a fixed version. Recommended fixed releases are 4.14.7 for deployments on the 4.14.x LTS stream, 4.18.2 for deployments on the 4.18.x stream, and 4.20.0 or later for affected newer streams. Apply the vendor-provided fixes associated with CAMEL-23322 across all affected camel-infinispan deployments.
Exploits
3 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-40858 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-40858 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40858?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-40858, the earliest disclosed Apr 27, 2026.
- Is there a patch for CVE-2026-40858?
- Upgrade Apache Camel to a fixed version. Recommended fixed releases are 4.14.7 for deployments on the 4.14.x LTS stream, 4.18.2 for deployments on the 4.18.x stream, and 4.20.0 or later for affected newer streams.
- What products are affected by CVE-2026-40858?
- Apache Software Foundation Camel.
- How severe is CVE-2026-40858?
- CVE-2026-40858 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 1.4% (72nd percentile) as of Sep 25, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.