{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40048","id":"CVE-2026-40048","title":"Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager","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 befor","descriptionLong":"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.","published":"2026-04-27T07:53:54.636Z","updated":"2026-10-28T02:30:30.306641688Z","reserved":"2026-04-08T16:40:29.330Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"redhat-SADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["Apache Software Foundation Apache Camel PQC"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Camel PQC","defaultStatus":"unaffected","versions":[{"lessThan":"4.20.0","status":"affected","version":"4.19.0","versionType":"semver"},{"lessThan":"4.18.2","status":"affected","version":"4.18.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.camel:camel-pqc","purl":"pkg:maven/org.apache.camel/camel-pqc","ranges":["<4.18.2",">=4.19.0 <4.20.0"],"fixed":["4.18.2","4.20.0"],"advisory":"GHSA-v3vg-332r-mw99"}],"cwes":["CWE-502"],"aliases":["GHSA-v3vg-332r-mw99"],"references":[{"url":"https://camel.apache.org/security/CVE-2026-40048.html","tags":["vendor-advisory","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/26/6","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40048","tags":["vdb-entry","x_refsource_REDHAT","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463176","tags":["issue-tracking","x_refsource_REDHAT","report","web"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json","tags":["x_sadp-csaf-vex","web"]},{"url":"https://repo.maven.apache.org/maven2","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40048.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40048","tags":["advisory"]},{"url":"https://github.com/apache/camel/pull/22034","tags":["web"]},{"url":"https://github.com/apache/camel/pull/22495","tags":["web"]},{"url":"https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","tags":["web"]},{"url":"https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","tags":["web"]},{"url":"https://github.com/apache/camel","tags":["package"]},{"url":"https://issues.apache.org/jira/browse/CAMEL-23200","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00327,"epssPercentile":0.26307,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40048","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40048","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40048","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v3vg-332r-mw99","ok":true,"note":"GHSA-v3vg-332r-mw99"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40048","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}