CVE-2026-40048
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 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. This issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2. Users 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.
INFO
Published Date :
April 27, 2026, 9:16 a.m.
Last Modified :
Oct. 26, 2026, 10:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | ||||
| CVSS 3.1 | HIGH | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Solution
- Upgrade to Apache Camel version 4.20.0 or later.
- For 4.18.x LTS, upgrade to 4.18.2.
- Remove any untrusted serialized objects from key directories.
Public PoC/Exploit Available at Github
CVE-2026-40048 has a 4 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-40048.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-40048 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-40048
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Reproducer for CVE-2026-46590: Apache Camel camel-pqc key-lifecycle unsafe deserialization (FileBasedKeyLifecycleManager legacy .key migration via ObjectInputStream), incomplete remediation of CVE-2026-40048 (fixed in 4.18.3/4.21.0)
Dockerfile Java
Reproducer for CVE-2026-43867 — Apache Camel camel-pqc AwsSecretsManagerKeyLifecycleManager unsafe key-metadata deserialization (RCE)
Dockerfile Java
Reproducer for CVE-2026-40048: Apache Camel camel-pqc FileBasedKeyLifecycleManager unsafe deserialization (RCE)
Dockerfile Java
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-40048 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-40048 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 26, 2026
Action Type Old Value New Value Changed Translation Title: Apache Camel PQC de Apache Software Foundation, Description: 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. Este problema afecta a Apache Camel: desde 4.19.0 antes de 4.20.0, desde 4.18.0 antes de 4.18.2. Se 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. Title: Apache Camel PQC de Apache Software Foundation, Description: 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. Este problema afecta a Apache Camel: desde 4.19.0 antes de 4.20.0, desde 4.18.0 antes de 4.18.2. Se 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. -
CVE Translated by [email protected]
Oct. 26, 2026
Action Type Old Value New Value Added Translation Title: Apache Camel PQC de Apache Software Foundation, Description: 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. Este problema afecta a Apache Camel: desde 4.19.0 antes de 4.20.0, desde 4.18.0 antes de 4.18.2. Se 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. -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jul. 15, 2026
Action Type Old Value New Value Changed Affected [{'cpes': ['cpe:/a:redhat:camel_spring_boot:4'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Apache Camel for Spring Boot 4', 'defaultStatus': 'unaffected'}] [{'cpes': ['cpe:/a:redhat:camel_spring_boot:4'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Apache Camel for Spring Boot 4', 'packageName': 'camel-pqc', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}] -
CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Jun. 30, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:camel_spring_boot:4'], 'vendor': 'Red Hat', 'product': 'Red Hat build of Apache Camel for Spring Boot 4', 'defaultStatus': 'unaffected'}] Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-502 Added Reference https://access.redhat.com/security/cve/CVE-2026-40048 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2463176 Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40048.json -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-40048', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-04-28T00:00:00+00:00'} -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Apache Software Foundation', 'product': 'Apache Camel PQC', 'versions': [{'status': 'affected', 'version': '4.19.0', 'lessThan': '4.20.0', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.18.0', 'lessThan': '4.18.2', 'versionType': 'semver'}], 'packageName': 'org.apache.camel:camel-pqc', 'collectionURL': 'https://repo.maven.apache.org/maven2', 'defaultStatus': 'unaffected'}] -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:* versions from (including) 4.18.0 up to (excluding) 4.18.2 *cpe:2.3:a:apache:camel:4.19.0:*:*:*:*:*:*:* Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/04/26/6 Types: Mailing List, Third Party Advisory Added Reference Type Apache Software Foundation: https://camel.apache.org/security/CVE-2026-40048.html Types: Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by [email protected]
Apr. 27, 2026
Action Type Old Value New Value Added 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. This issue affects Apache Camel: from 4.19.0 before 4.20.0, from 4.18.0 before 4.18.2. Users 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. Added CWE CWE-502 Added Reference https://camel.apache.org/security/CVE-2026-40048.html -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Apr. 27, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/04/26/6