{"id":"CVE-2026-40048","aliases":["CVE-2026-40048","GHSA-v3vg-332r-mw99"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Camel PQC: Unsafe Deserialization from FileBasedKeyLifecycleManager","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"La clase Camel-PQC FileBasedKeyLifecycleManager deserializa el contenido de los archivos ’[keyId].key’ en el directorio de claves configurado utilizando java.io.ObjectInputStream sin aplicar ningún ObjectInputFilter o restricciones de carga de clases. La conversión a ’java.security.KeyPair’ se evalúa solo después de que ’readObject()’ ya haya retornado, por lo que cualquier efecto secundario de ’readObject()’ en el objeto deserializado se ejecuta antes de la verificación de tipo. Un atacante que puede escribir en el directorio de claves utilizado por una aplicación Camel - por ejemplo, a través de un salto de ruta en el directorio, permisos de sistema de archivos mal configurados en el volumen donde se almacenan las claves, una canalización de aprovisionamiento de claves comprometida o un ataque de enlace simbólico - puede colocar un objeto Java serializado manipulado que, cuando se deserializa durante las operaciones normales del ciclo de vida de las claves, resulta en ejecución de código arbitrario en el contexto de la aplicación.\n\nEste problema afecta a Apache Camel: desde 4.19.0 antes de 4.20.0, desde 4.18.0 antes de 4.18.2.\n\nSe recomienda a los usuarios actualizar a la versión 4.20.0, que soluciona el problema reemplazando el almacenamiento de claves y metadatos basado en java.io.ObjectInputStream con codificación JSON Base64 estándar PKCS#8 (clave privada) / X.509 SubjectPublicKeyInfo (clave pública). Para los usuarios en la rama de versiones LTS 4.18.x, actualice a 4.18.2.","source":"nvd"}],"published":"2026-04-27T07:53:54.636Z","modified":"2026-11-04T03:45:10.341Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"4.19.0","fixed":"4.20.0","status":"affected"},{"type":"semver","introduced":"4.18.0","fixed":"4.18.2","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Camel PQC","package":"org.apache.camel:camel-pqc","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Apache Camel for Spring Boot 4","package":"camel-pqc","cpe":"cpe:/a:redhat:camel_spring_boot:4","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.18.2"}],"ecosystem":"Maven","package":"org.apache.camel:camel-pqc","purl":"pkg:maven/org.apache.camel/camel-pqc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.19.0","status":"affected","fixed":"4.20.0"}],"ecosystem":"Maven","package":"org.apache.camel:camel-pqc","purl":"pkg:maven/org.apache.camel/camel-pqc","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.18.0","fixed":"4.18.2"},{"status":"affected","version":"4.19.0"}],"vendor":"apache","product":"camel","cpe":"cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://camel.apache.org/security/CVE-2026-40048.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/26/6","tags":["mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40048","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463176","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json","tags":["web","x-sadp-csaf-vex"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40048","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apache/camel/pull/22034","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/camel/pull/22495","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/camel/commit/5bdd0f1d3289dfa78116deec6c81083708bf432d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/camel/commit/5f87a86f4e337efc59248d278c6a5650e73b3b7c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/camel","tags":["package"],"sources":["ghsa"]},{"url":"https://issues.apache.org/jira/browse/CAMEL-23200","tags":["web"],"sources":["ghsa"]}],"credits":["Andrea Cosentino from ASF","Venkatraman Kumar from Securin"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-28T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40048","url":"https://www.cve.org/CVERecord?id=CVE-2026-40048","licence":"CVE Terms of Use","modified":"2026-07-15T01:01:31.729Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v3vg-332r-mw99","url":"https://github.com/advisories/GHSA-v3vg-332r-mw99","licence":"CC-BY-4.0","modified":"2026-11-04T03:45:10.341Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40048","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40048","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.641Z","epss":{"score":0.00332,"percentile":0.28434,"date":"2026-12-01T12:00:22.000Z"}}