CVE-2026-40858: Camel infinispan Apache Camel-Infinispan Component Vulnerable To Vulnerability
HIGHCVE-2026-40858 is a HIGH (CVSS 8.8) apache camel-infinispan component vulnerable to vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Camel infinispan libraries in the Maven ecosystem. The issue involves apache camel-infinispan component vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 4.14.7, 4.18.2, 4.20.0.
CVE-2026-40858 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-40858
To remediate this vulnerability, upgrade all affected Camel infinispan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-infinispan</artifactId>
<version>4.14.7</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-infinispan</artifactId>
<version>4.18.2</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-infinispan</artifactId>
<version>4.20.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.camel
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-40858, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.camel
Analyze the terminal output to locate any version of Camel infinispan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.14.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.camel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Camel infinispan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-40858 Affected Camel infinispan Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.camel:camel-infinispan
|
Maven |
≥ 4.0.0
< 4.14.7
|
4.14.7
|
|
org.apache.camel:camel-infinispan
|
Maven |
≥ 4.15.0
< 4.18.2
|
4.18.2
|
|
org.apache.camel:camel-infinispan
|
Maven |
≥ 4.19.0
< 4.20.0
|
4.20.0
|
References
Frequently Asked Questions
What is CVE-2026-40858?
Which Camel infinispan versions are affected?
What version fixes CVE-2026-40858?
Is camel-infinispan affected?
What is the CVSS score of CVE-2026-40858?
What CWE is associated with CVE-2026-40858?
How can I check Maven dependencies for CVE-2026-40858?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4xwx-hvv7-7prj",
"modified" : "2026-05-05T21:44:13Z",
"published" : "2026-04-27T12:30:38Z",
"aliases" : [ "CVE-2026-40858" ],
"summary" : "Apache Camel-Infinispan Component Vulnerable to Deserialization of Untrusted Data",
"details" : "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.\n\nThis 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.\n\nUsers 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.\n\nThe 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" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-infinispan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.14.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-infinispan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.15.0"
}, {
"fixed" : "4.18.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.camel:camel-infinispan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.19.0"
}, {
"fixed" : "4.20.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40858"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22152"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22151"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22150"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22149"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22148"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22147"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/pull/22146"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/e074c01a719cccf3b1c2efbd2ff31e60fd6220ce"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/5c20de8f047de725e0b32a874cdb5108c3e46558"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/540d48e1cb5e492bd1c74bfc5a6e929fcf24fe3b"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/3926ab2b7745e36da2cd8e0dc019018bc415aff9"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/05cffa5ec05ff2ec3c50a77825625da6e426e7a8"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel/commit/0307dd4709a8136eba3206701004bcb528bc47fd"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/camel"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/CAMEL-23222"
}, {
"type" : "WEB",
"url" : "https://camel.apache.org/security/CVE-2026-40858.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T21:44:13Z",
"nvd_published_at" : "2026-04-27T10:16:09Z"
}
}