CVE-2026-40858

Apache Camel: Camel-Infinispan: Unsafe Deserialization in Remote Aggregation Repository

Published Apr 27, 2026 CVSS 3.1 · 8.8 High EPSS 1.3% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability resides in the camel-infinispan component’s remote aggregation repository, which deserializes data from a remote Infinispan cache using java.io.ObjectInputStream without applying an ObjectInputFilter. If an attacker can write to the cache, they can inject a crafted serialized Java object that, when later read during normal aggregation operations such as get or recover, triggers arbitrary code execution in the application’s context. This flaw is classified as CWE‑502 and allows the attacker to execute code with the privileges of the Camel application.

Affected Systems

Apache Camel versions 4.0.0 through 4.14.6, 4.15.0 through 4.18.1, and 4.19.0 through 4.19.9 are vulnerable. Versions 4.14.7, 4.18.2, and 4.20.0 contain the fix and are not affected.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity risk. Although the EPSS score is less than 1%, suggesting a low likelihood of exploitation at present, the possibility of malicious insiders or compromised components granting write access to the Infinispan cache cannot be ignored. The vulnerability is not listed in the CISA KEV catalog, but the potential impact remains severe. The attack vector is inferred to require write access to the Infinispan cache; once such access is achieved, the attacker can trigger code execution during routine repository operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Camel to version 4.20.0. For users on the 4.14.x LTS stream upgrade to 4.14.7, and for those on the 4.18.x stream upgrade to 4.18.2.
  • Reconfigure your Infinispan deployment to restrict write permissions to trusted services or authenticated clients, thereby preventing unauthenticated write access that could be exploited.
  • If an upgrade is not immediately possible, apply a runtime ObjectInputFilter to the ObjectInputStream used by camel-infinispan to reject unexpected serialized objects and mitigate the unsafe deserialization risk.

Generated by OpenCVE AI on April 28, 2026 at 13:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4xwx-hvv7-7prj Apache Camel-Infinispan Component Vulnerable to Deserialization of Untrusted Data
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:camel:4.19.0:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Apache
Apache camel
Vendors & Products Apache
Apache camel
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Apache Camel: Camel-Infinispan: Unsafe Deserialization in Remote Aggregation Repository
Weaknesses CWE-502
References
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Sep 9, 2026, 12:04 PM
Reserved
Apr 15, 2026, 12:16 PM
Status
Modified
Published
Apr 27, 2026, 10:16 AM
Modified
Oct 26, 2026, 10:10 PM
Severity
Important
Public date
Apr 27, 2026, 9:38 AM