CVE-2026-40858 Details
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.
A vulnerability exists in the Apache Camel Infinispan component's ProtoStream-based remote aggregation repository, specifically in versions 4.0.0 prior to 4.14.7, 4.15.0 prior to 4.18.2, and 4.19.0 prior to 4.20.0. The issue arises because the repository deserializes data from a remote Infinispan cache using java.io.ObjectInputStream without any ObjectInputFilter. This flaw allows an attacker with write access to the Infinispan cache used by a Camel application to inject a malicious serialized Java object. When this object is read during standard aggregation repository operations, such as 'get' or 'recover', it can lead to arbitrary code execution within the application's context.
Users are advised to upgrade to Apache Camel version 4.20.0. For those on the 4.14.x LTS release stream, version 4.14.7 is recommended. Users on the 4.18.x release stream should upgrade to version 4.18.2.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:17668 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:22453 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-40858 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2463179 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40858.json | redhat-SADP | |
| https://camel.apache.org/security/CVE-2026-40858.html | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | redhat-SADP |
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache camel | >= 4.0.0, < 4.14.7 >= 4.15.0, < 4.18.2 4.19.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 9, 2026 | CVE Modified | [email protected] |
| Sep 9, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 28, 2026 | Initial Analysis | [email protected] |
| Apr 27, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | New CVE Received | [email protected] |