CVE-2026-40858: Camel infinispan Apache Camel-Infinispan Component Vulnerable To Vulnerability

HIGH
Advisory Identifier: GHSA-4xwx-hvv7-7prj
CVSS 8.8
CWE-502
Published
Advisory Summary

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

CVE Identifier CVE-2026-40858
GHSA Identifier GHSA-4xwx-hvv7-7prj
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Camel infinispan
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.apache.camel:camel-infinispan fixed: 4.14.7
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-infinispan</artifactId>
    <version>4.14.7</version>
</dependency>
org.apache.camel:camel-infinispan fixed: 4.18.2
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-infinispan</artifactId>
    <version>4.18.2</version>
</dependency>
org.apache.camel:camel-infinispan fixed: 4.20.0
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-infinispan</artifactId>
    <version>4.20.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-40858 Affected Camel infinispan Versions

3 component(s)
Fixed Versions:
4.14.74.18.24.20.0
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

NVD — CVE-2026-40858 NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-40858
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22152
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22151
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22150
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22149
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22148
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22147
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel/pull/22146
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/e074c01a719cccf3b1c2efbd2ff31e60fd6220ce
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/5c20de8f047de725e0b32a874cdb5108c3e46558
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/540d48e1cb5e492bd1c74bfc5a6e929fcf24fe3b
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/3926ab2b7745e36da2cd8e0dc019018bc415aff9
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/05cffa5ec05ff2ec3c50a77825625da6e426e7a8
Security Fix Commit FIX COMMIT
https://github.com/apache/camel/commit/0307dd4709a8136eba3206701004bcb528bc47fd
Camel infinispan Source Repository REPOSITORY
https://github.com/apache/camel
issues.apache.org/jira/browse/camel-2... WEB
https://issues.apache.org/jira/browse/CAMEL-23222
Camel infinispan Security Information SECURITY
https://camel.apache.org/security/CVE-2026-40858.html

Frequently Asked Questions

What is CVE-2026-40858?
CVE-2026-40858 is a security vulnerability in Camel infinispan involving Apache Camel-Infinispan Component Vulnerable to Deserialization of Untrusted Data under CWE-502: Deserialization of Untrusted Data.
Which Camel infinispan versions are affected?
Affected versions include releases prior to 4.14.7, 4.18.2, 4.20.0 across affected packages: org.apache.camel:camel-infinispan.
What version fixes CVE-2026-40858?
Upgrading to 4.14.7, 4.18.2, 4.20.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is camel-infinispan affected?
Yes, org.apache.camel:camel-infinispan is affected in releases prior to 4.14.7, 4.18.2, 4.20.0. Upgrade your dependency to 4.14.7, 4.18.2, 4.20.0 or later.
What is the CVSS score of CVE-2026-40858?
CVE-2026-40858 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-40858?
CVE-2026-40858 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2026-40858?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.camel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}