{"id":"CVE-2026-40048","published":"2026-04-27T07:53:54Z","modified":"2026-07-15T01:01:31Z","title":"Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager","vendor":"Apache","product":"Apache Camel PQC","tier":"tail","description":{"text":"The Camel-PQC FileBasedKeyLifecycleManager class deserializes the contents of `<keyId>.key` files in the configured key directory using java.io.ObjectInputStream without applying any ObjectInputFilter or class-loading restrictions. The cast to `java.security.KeyPair` is evaluated only after `readObject()` has already returned, so any `readObject()` side effects in the deserialized object run before the type check. An attacker who can write to the key directory used by a Camel application — for example through a path traversal into the directory, misconfigured filesystem permissions on the volume where keys are stored, a compromised key provisioning pipeline, or a symlink attack — can place a crafted serialized Java object that, when deserialized during normal key lifecycle operations, results in arbitrary code execution in the context of the application.\n\nThis issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2.\n\nUsers are recommended to upgrade to version 4.20.0, which fixes the issue by replacing java.io.ObjectInputStream-based key and metadata storage with standard PKCS#8 (private key) / X.509 SubjectPublicKeyInfo (public key) Base64 JSON encoding. For users on the 4.18.x LTS releases stream, upgrade to 4.18.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00511,"percentile":0.36778,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://camel.apache.org/security/CVE-2026-40048.html","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/26/6","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40048","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463176","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-08","earliestUrl":"https://github.com/oscerd/CVE-2026-40048","repos":[{"name":"oscerd/CVE-2026-40048","url":"https://github.com/oscerd/CVE-2026-40048","stars":0,"created":"2026-07-08"}]},"first":{"date":"2026-07-08","source":"PoC-in-GitHub","url":"https://github.com/oscerd/CVE-2026-40048"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Camel PQC","versions":[">= 4.19.0, < 4.20.0",">= 4.18.0, < 4.18.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-28T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.camel:camel-pqc","vulnerableRanges":["<4.18.2",">=4.19.0, <4.20.0"],"patched":["4.18.2","4.20.0"],"from":["GHSA-v3vg-332r-mw99"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-25790","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-camel-cve-2026-40048","children":[{"from":"CVE-2026-40048","to":"CVE-2026-43867","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.camel:camel-pqc","fromFixed":"4.18.2","toFixed":"4.18.3","daysApart":70},{"kind":"same-code","provenance":"machine","files":["components/camel-pqc/src/main/java/org/apache/camel/component/pqc/lifecycle/FileBasedKeyLifecycleManager.java"],"commits":["https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","https://github.com/apache/camel/commit/12a9ac3c94d6fda12d16b2c0039db41c6204727e","https://github.com/apache/camel/commit/feea08e7847f35dc0e177652b0b02bd45f6c1b4f"],"basis":"shared function","functions":["getKeyMetadata"]},{"kind":"similar","provenance":"machine","score":0.43,"basis":"same package + description similarity"}]},{"from":"CVE-2026-40048","to":"CVE-2026-46590","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete-remediation follow-on to CVE-2026-40048 (CAMEL-23200), which changed FileBasedKeyLifecycleManager to store metadata as JSON / PKCS#8 / X.509 but did not add an ObjectInputFilter, did not cover the Vault and AWS sibli…","from":"CVE.org","in":"CVE-2026-46590"},{"kind":"osv-related","provenance":"source","id":"GHSA-857v-xvh8-7hjc","via":"reference","url":"https://github.com/advisories/GHSA-v3vg-332r-mw99"},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.camel:camel-pqc","fromFixed":"4.18.2","toFixed":"4.18.3","daysApart":70},{"kind":"same-code","provenance":"machine","files":["components/camel-pqc/src/main/java/org/apache/camel/component/pqc/lifecycle/FileBasedKeyLifecycleManager.java"],"commits":["https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","https://github.com/apache/camel/commit/12a9ac3c94d6fda12d16b2c0039db41c6204727e","https://github.com/apache/camel/commit/feea08e7847f35dc0e177652b0b02bd45f6c1b4f"],"basis":"shared function","functions":["getKeyMetadata"]},{"kind":"similar","provenance":"machine","score":0.48,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-40048","published":"2026-04-27","fixed":"4.20.0","kev":false},{"cve":"CVE-2026-43867","published":"2026-07-06","fixed":"4.21.0","kev":false},{"cve":"CVE-2026-46590","published":"2026-07-06","fixed":"4.21.0","kev":false}],"package":"Maven:org.apache.camel:camel-pqc"}}