cve.bz

CVE-2026-40858 apache camel: Deserialization of Untrusted Data

8.8 highEPSS 1.3%Fix available

High (8.8) in apache camel. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.camel:camel-infinispan 4.14.7, 4.18.2, 4.20.0.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40858?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40858?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40858 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-40858

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-40858](https://cve.bz/cve/badge/CVE-2026-40858.svg)](https://cve.bz/cve/CVE-2026-40858)

HTML:

<a href="https://cve.bz/cve/CVE-2026-40858"><img src="https://cve.bz/cve/badge/CVE-2026-40858.svg" alt="CVE-2026-40858"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Camelfrom 4.0.0 before 4.14.7
Apache Software Foundation Apache Camelfrom 4.15.0 before 4.18.2
Apache Software Foundation Apache Camelfrom 4.19.0 before 4.20.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4xwx-hvv7-7prjMavenorg.apache.camel:camel-infinispan>=4.0.0 <4.14.74.14.7
GHSA-4xwx-hvv7-7prjMavenorg.apache.camel:camel-infinispan>=4.15.0 <4.18.24.18.2
GHSA-4xwx-hvv7-7prjMavenorg.apache.camel:camel-infinispan>=4.19.0 <4.20.04.20.0

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-infinispanFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-infinispan-commonFixed 2026-05-14RHSA-2026:17668
Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14camel-infinispan-embeddedFixed 2026-05-14RHSA-2026:17668
Red Hat Build of Apache Camel 4.18 for Quarkus 3.33camel-infinispanFixed 2026-06-02RHSA-2026:22453
Red Hat Build of Apache Camel 4.18 for Quarkus 3.33camel-infinispan-commonFixed 2026-06-02RHSA-2026:22453
Red Hat build of Apache Camel 4 for Quarkus 3camel-infinispanAffected
Red Hat build of Apache Camel 4 for Quarkus 3camel-infinispan-commonAffected
Red Hat Fuse 7camel-infinispanNot affected
Red Hat Fuse 7camel-infinispan-commonNot affected
Red Hat Fuse 7camel-infinispan-starterNot affected
Red Hat JBoss Enterprise Application Platform 8camel-infinispanNot affected
Red Hat JBoss Enterprise Application Platform 8camel-infinispan-commonNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-infinispanNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packcamel-infinispan-commonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40858.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • oscerd/CVE-2026-40858 Harbor Check: matches CVE 1 star, Java, created
    Reproducer for CVE-2026-40858 — Apache Camel camel-infinispan remote aggregation repository unsafe deserialization (RCE)

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON