{"id":"CVE-2026-40858","published":"2026-04-27T09:38:55Z","modified":"2026-09-09T12:04:43Z","title":"Apache Camel: Camel-Infinispan: Unsafe Deserialization in Remote Aggregation Repository","vendor":"Apache","product":"Apache Camel","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01364,"percentile":0.71942,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://camel.apache.org/security/CVE-2026-40858.html","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40858","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463179","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40858.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22453","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17668","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":25.5,"factors":[{"name":"EPSS percentile","points":14.39},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-10","earliestUrl":"https://github.com/oscerd/CVE-2026-40858","repos":[{"name":"oscerd/CVE-2026-40858","url":"https://github.com/oscerd/CVE-2026-40858","stars":1,"created":"2026-07-10"}]},"first":{"date":"2026-07-10","source":"PoC-in-GitHub","url":"https://github.com/oscerd/CVE-2026-40858"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Camel","versions":[">= 4.0.0, < 4.14.7",">= 4.15.0, < 4.18.2",">= 4.19.0, < 4.20.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-27T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.camel:camel-infinispan","vulnerableRanges":[">=4.0.0, <4.14.7",">=4.15.0, <4.18.2",">=4.19.0, <4.20.0"],"patched":["4.14.7","4.18.2","4.20.0"],"from":["GHSA-4xwx-hvv7-7prj"],"provenance":"source"}],"summary":{"text":"The camel-infinispan component's ProtoStream-based remote aggregation repository in Apache Camel deserializes data read from a remote Infinispan cache with java.io.ObjectInputStream and no ObjectInputFilter applied. An attacker with network access and low-privilege credentials that allow writing to the Infinispan cache used by a Camel application can inject a crafted serialized Java object that executes arbitrary code in the application's context when aggregation repository operations such as get or recover read it, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:50Z"},"euvd":{"id":"EUVD-2026-25808","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-camel-cve-2026-33453","parents":[{"from":"CVE-2026-33453","to":"CVE-2026-40858","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/coap+tcp.json","catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/coap.json","catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/coaps+tcp.json","catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/coaps.json","components/camel-coap/src/generated/java/org/apache/camel/coap/CoAPComponentConfigurer.java"],"commits":["https://github.com/apache/camel/commit/05cffa5ec05ff2ec3c50a77825625da6e426e7a8","https://github.com/apache/camel/commit/3926ab2b7745e36da2cd8e0dc019018bc415aff9","https://github.com/apache/camel/commit/e074c01a719cccf3b1c2efbd2ff31e60fd6220ce","https://github.com/apache/camel/commit/5c20de8f047de725e0b32a874cdb5108c3e46558"],"basis":"shared function","functions":["CoAPEndpoint","CoAPEndpointUriFactory","autowiredEnabled","basic","configure"]}]}],"children":[{"from":"CVE-2026-40858","to":"CVE-2026-46584","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java"],"commits":["https://github.com/apache/camel/commit/e074c01a719cccf3b1c2efbd2ff31e60fd6220ce","https://github.com/apache/camel/commit/5c20de8f047de725e0b32a874cdb5108c3e46558","https://github.com/apache/camel/commit/1e31abca3213cde447a2ded1adc070ffec6836f1","https://github.com/apache/camel/commit/2d2815d256068f15d42da3af27fa86fb5efad2ab"],"basis":"shared function","functions":["initialize"]}]}],"packageHistory":[{"cve":"CVE-2026-40858","published":"2026-04-27","fixed":"4.20.0","kev":false},{"cve":"CVE-2026-6857","published":"2026-04-22","fixed":"4.20.0","kev":false},{"cve":"CVE-2026-42527","published":"2026-07-06","fixed":"4.21.0","kev":false,"link":{"from":"CVE-2026-40858","to":"CVE-2026-42527","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.camel:camel-infinispan","fromFixed":"4.14.7","toFixed":"4.14.8","daysApart":70}]}}],"package":"Maven:org.apache.camel:camel-infinispan"}}