CVE-2026-40858: CWE-502 Deserialization of Untrusted Data in Apache Software Foundation Apache Camel
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-40858 in Apache Camel's camel-infinispan component involves unsafe deserialization of data read from a remote Infinispan cache. The ProtoStream-based remote aggregation repository uses java.io.ObjectInputStream without applying ObjectInputFilter, allowing attackers who can write to the cache to inject crafted serialized Java objects. These objects can trigger arbitrary code execution when deserialized during aggregation repository operations such as get or recover. The flaw affects Apache Camel versions 4.0.0 up to but not including 4.14.7, 4.15.0 up to but not including 4.18.2, and 4.19.0 up to but not including 4.20.0. The issue has been addressed in Apache Camel releases 4.14.7, 4.18.2, and 4.20.0. Red Hat advisories confirm the vulnerability and provide updated builds to mitigate the risk.
Potential Impact
Successful exploitation allows an attacker with write access to the Infinispan cache used by a Camel application to execute arbitrary code within the application's context. This can lead to full compromise of the affected application, including confidentiality, integrity, and availability impacts. The CVSS v3.1 score is 8.8 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrading to Apache Camel versions 4.14.7, 4.18.2, or 4.20.0, depending on the release stream in use, fully addresses this vulnerability. Red Hat users should apply the corresponding security updates provided in their advisories (e.g., Red Hat Build of Apache Camel 4.18 for Quarkus 3.33.1.GA). Before applying updates, back up existing installations and configurations. There is no indication that any temporary or alternative mitigations exist; patching is the recommended and effective remediation.
CVE-2026-40858: CWE-502 Deserialization of Untrusted Data in Apache Software Foundation Apache Camel
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.
CVSS v3.1
Score 8.8high
Affected software
pkg:maven/org.apache.camel/camel-infinispanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-40858 in Apache Camel's camel-infinispan component involves unsafe deserialization of data read from a remote Infinispan cache. The ProtoStream-based remote aggregation repository uses java.io.ObjectInputStream without applying ObjectInputFilter, allowing attackers who can write to the cache to inject crafted serialized Java objects. These objects can trigger arbitrary code execution when deserialized during aggregation repository operations such as get or recover. The flaw affects Apache Camel versions 4.0.0 up to but not including 4.14.7, 4.15.0 up to but not including 4.18.2, and 4.19.0 up to but not including 4.20.0. The issue has been addressed in Apache Camel releases 4.14.7, 4.18.2, and 4.20.0. Red Hat advisories confirm the vulnerability and provide updated builds to mitigate the risk.
Potential Impact
Successful exploitation allows an attacker with write access to the Infinispan cache used by a Camel application to execute arbitrary code within the application's context. This can lead to full compromise of the affected application, including confidentiality, integrity, and availability impacts. The CVSS v3.1 score is 8.8 (High), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrading to Apache Camel versions 4.14.7, 4.18.2, or 4.20.0, depending on the release stream in use, fully addresses this vulnerability. Red Hat users should apply the corresponding security updates provided in their advisories (e.g., Red Hat Build of Apache Camel 4.18 for Quarkus 3.33.1.GA). Before applying updates, back up existing installations and configurations. There is no indication that any temporary or alternative mitigations exist; patching is the recommended and effective remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-15T12:16:41.226Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-40858","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22453","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17668","vendor":"Red Hat"}]
Threat ID: 69ef33a6ba26a39fba154134
Added to database: 04/27/2026, 10:00:06 UTC
Last enriched: 07/15/2026, 09:12:06 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 210
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.