# CVE-2026-40858: Apache Camel unsafe deserialization in camel-infinispan

Source: https://junglewise.ai/threats/cve-2026-40858-apache-camel-unsafe-deserialization-in-camel-infinispan  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-27. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-40858 · Severity: high · CVSS 8.8 · Published 2026-04-27

Apache Camel is a popular integration framework used to connect different software applications. A security vulnerability in its Infinispan component allows an attacker who can write data to a shared cache to execute malicious code on the server. This could lead to a full system takeover, data theft, or disruption of business operations.

Technologies: [org.apache.camel:camel-infinispan (Maven)](https://junglewise.ai/threats/technologies/org-apache-camel-camel-infinispan), [Red Hat build of Apache Camel for Quarkus](https://junglewise.ai/threats/technologies/build-of-apache-camel-for-quarkus), [Red Hat build of Apache Camel for Spring Boot](https://junglewise.ai/threats/technologies/red-hat-build-of-apache-camel-for-spring-boot). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## 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

  ```sh
  # 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://repo.maven.apache.org/maven2)
- [https://camel.apache.org/security/CVE-2026-40858.html](https://camel.apache.org/security/CVE-2026-40858.html)
- [https://access.redhat.com/errata/RHSA-2026:17668](https://access.redhat.com/errata/RHSA-2026:17668)
- [https://access.redhat.com/errata/RHSA-2026:22453](https://access.redhat.com/errata/RHSA-2026:22453)
- [https://access.redhat.com/security/cve/CVE-2026-40858](https://access.redhat.com/security/cve/CVE-2026-40858)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2463179](https://bugzilla.redhat.com/show_bug.cgi?id=2463179)
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40858.json](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40858.json)

## Related threats

- [Apache Camel information disclosure via insecure deserialization filter](https://junglewise.ai/threats/cve-2026-42527-apache-camel-information-disclosure-via-insecure-deserialization)
- [Apache Thrift denial of service via excessive memory allocation](https://junglewise.ai/threats/cve-2026-43868-apache-thrift-denial-of-service-via-excessive-memory-allocation)
- [Spring Boot weak PRNG in random value property source](https://junglewise.ai/threats/cve-2026-40975-spring-boot-weak-prng-in-random-value-property-source)
- [Apache Camel authentication bypass in camel-platform-http-main](https://junglewise.ai/threats/cve-2026-40022-apache-camel-authentication-bypass-in-camel-platform-http-main)
- [Apache Camel header injection in Camel-Mail component](https://junglewise.ai/threats/cve-2026-33454-apache-camel-header-injection-in-camel-mail-component)
