{"cve":"CVE-2026-40048","nvd":{"published":"2026-04-27T09:16:01.287","modified":"2026-10-26T22:10:00.163","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-502"],"references":["https://camel.apache.org/security/CVE-2026-40048.html","http://www.openwall.com/lists/oss-security/2026/04/26/6","https://access.redhat.com/security/cve/CVE-2026-40048","https://bugzilla.redhat.com/show_bug.cgi?id=2463176","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json"],"products":["apache:camel"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40048","score":0.00327,"percentile":0.25564,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-v3vg-332r-mw99","url":"https://osv.dev/vulnerability/GHSA-v3vg-332r-mw99","summary":"Camel-PQC Vulnerable to Deserialization of Untrusted Data","modified":"2026-09-10T03:51:03.238057212Z","packages":[{"ecosystem":"Maven","name":"org.apache.camel:camel-pqc","purl":"pkg:maven/org.apache.camel/camel-pqc","ranges":["<4.18.2"],"fixed":["4.18.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}