{"schemaVersion":3,"id":"CVE-2026-40048","aliases":["GHSA-v3vg-332r-mw99"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-04-27T07:53:54.636Z","modified":"2026-07-15T01:01:31.729Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00458,"percentile":0.38409,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.212,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00246},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00458,"percentile":0.38409}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00246,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00458,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00458,"percentile":0.38409}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-502","name":"Deserialization of Untrusted Data","description":"The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/502.html"}],"affected":[{"vendor":"apache software foundation","product":"apache camel pqc","name":"Apache Camel PQC","label":"apache camel pqc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.19.0, < 4.20.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.18.0, < 4.18.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.19.0, < 4.20.0 | ≥ 4.18.0, < 4.18.2","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_camel_pqc"},{"vendor":"apache","product":"camel","name":"camel","label":"camel","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.18.0, < 4.18.2","noFixRecorded":false,"fixedIn":null},{"text":"4.19.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.18.0, < 4.18.2 | 4.19.0","eol":{"isEol":true,"eolDate":"2026-04-23T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"4.19","label":"4.19","eolFrom":"2026-04-23T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"4.19.0"},"product":{"name":"apache-camel","label":"Apache Camel","category":"framework"}},"hubHref":"/vendor/apache/camel"},{"vendor":"org.apache.camel","product":"camel-pqc","name":"org.apache.camel:camel-pqc","label":"camel-pqc","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.camel/camel-pqc","purlType":"maven","versions":[{"text":"< 4.18.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.18.2","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://camel.apache.org/security/CVE-2026-40048.html","label":"camel.apache.org/security/CVE-2026-40048.html","hostname":"camel.apache.org","tags":["Vendor Advisory","WEB"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/26/6","label":"www.openwall.com/lists/oss-security/2026/04/26/6","hostname":"www.openwall.com","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40048","label":"access.redhat.com/security/cve/CVE-2026-40048","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463176","label":"bugzilla.redhat.com/show_bug.cgi?id=2463176","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40048","label":"nvd.nist.gov/vuln/detail/CVE-2026-40048","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/camel/pull/22034","label":"github.com/apache/camel/pull/22034","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/camel/pull/22495","label":"github.com/apache/camel/pull/22495","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","label":"github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","label":"github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/apache/camel","label":"github.com/apache/camel","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://issues.apache.org/jira/browse/CAMEL-23200","label":"issues.apache.org/jira/browse/CAMEL-23200","hostname":"issues.apache.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-27T07:53:54.636Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:01:31.729Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:51:42.647Z","stale":false,"partial":false}}