Quick answers
- Is CVE-2026-40858 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-40858 being exploited in the wild.
- How severe is CVE-2026-40858?
- High severity, with a CVSS score of 8.8, published 27 April 2026.
- Which products and versions are affected?
- org.apache.camel:camel-infinispan (Maven) ECOSYSTEM:introduced=4.0.0,fixed=4.14.7; Red Hat build of Apache Camel for Quarkus 3.33; Red Hat build of Apache Camel for Spring Boot 4.18.1.
- Is there a fix for CVE-2026-40858?
- Yes. org.apache.camel:camel-infinispan (Maven): upgrade to 4.14.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-40858 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-40858?
- Check whether you run org.apache.camel:camel-infinispan (Maven), Red Hat build of Apache Camel for Quarkus or Red Hat build of Apache Camel for Spring Boot at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- org.apache.camel:camel-infinispan (Maven): upgrade to 4.14.7 or later
# set org.apache.camel:camel-infinispan to 4.14.7 in your pom.xml or build.gradle
Technical details
The camel-infinispan component's ProtoStream-based remote aggregation repository utilizes java.io.ObjectInputStream to deserialize data from a remote Infinispan cache without implementing an ObjectInputFilter. An attacker with the ability to write to the Infinispan cache can inject a malicious serialized Java object. When the Camel application performs standard repository operations such as 'get' or 'recover', it deserializes this object, leading to arbitrary code execution (RCE) in the application's context. The vulnerability is mitigated in versions 4.14.7, 4.18.2, and 4.20.0 by introducing proper filtering during deserialization.
Affected products
- Apache Software Foundation Apache Camel 4.0.0 to 4.14.6, 4.15.0 to 4.18.1, 4.19.0 to 4.19.9
- Red Hat Red Hat Build of Apache Camel for Quarkus 3.33
- Red Hat Red Hat build of Apache Camel for Spring Boot 4.18.1
Identifiers
- CVE-2026-40858
- GHSA-4xwx-hvv7-7prj
Timeline
- 2026-04-27: advisory: Initial advisory published by Apache and NVD
- 2026-05-14: patched: Red Hat released security updates for Camel Spring Boot and Quarkus variants
References
- https://repo.maven.apache.org/maven2
- https://camel.apache.org/security/CVE-2026-40858.html
- https://access.redhat.com/errata/RHSA-2026:17668
- https://access.redhat.com/errata/RHSA-2026:22453
- https://access.redhat.com/security/cve/CVE-2026-40858
- https://bugzilla.redhat.com/show_bug.cgi?id=2463179
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40858.json