8.8high
Apache Camel: Unsafe Java deserialization in camel-consul ConsulRegistry allows arbitrary code execution via malicious values read from the Consul KV store
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.24% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-5rc6-9qfp-8vwg
Description
The ConsulRegistry in the camel-consul component (class org.apache.camel.component.consul.ConsulRegistry and its inner ConsulRegistryUtils.deserialize method) read Java-serialized values from the Consul KV store and passed them to ObjectInputStream.readObject() without configuring an ObjectInputFilter. An attacker who can write to the Consul KV store backing a Camel ConsulRegistry instance could inject a malicious serialized Java object that is deserialized the next time Camel performs a lookup against that registry, leading to arbitrary code execution in the Camel process. The issue mirrors the class of vulnerability already addressed for other Camel components in CVE-2024-22369, CVE-2024-23114 and CVE-2026-25747, and was overlooked during the original remediation of those CVEs. This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1. Users are recommended to upgrade to version 4.19.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.camel:camel-consul | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1 | CVE List |
| camel-consul | Not specified | CVE List |
| camel-consul-starter | Not specified | CVE List |
| org.apache.camel:camel-consul (Maven) | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1 | GitHub Advisory Database |
| apache camel | from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1 | NVD |
All scores
| CISA-ADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
The ConsulRegistry in the camel-consul component (class org.apache.camel.component.consul.ConsulRegistry and its inner ConsulRegistryUtils.deserialize method) read Java-serialized values from the Consul KV store and passed them to ObjectInputStream.readObject() without configuring an ObjectInputFilter. An attacker who can write to the Consul KV store backing a Camel ConsulRegistry instance could inject a malicious serialized Java object that is deserialized the next time Camel performs a lookup against that registry, leading to arbitrary code execution in the Camel process. The issue mirrors the class of vulnerability already addressed for other Camel components in CVE-2024-22369, CVE-2024-23114 and CVE-2026-25747, and was overlooked during the original remediation of those CVEs. This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1. Users are recommended to upgrade to version 4.19.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.1.
NVD (es)
El ConsulRegistry en el componente camel-consul (clase org.apache.camel.component.consul.ConsulRegistry y su método interno ConsulRegistryUtils.deserialize) leía valores serializados en Java del almacén KV de Consul y los pasaba a ObjectInputStream.readObject() sin configurar un ObjectInputFilter. Un atacante que puede escribir en el almacén KV de Consul que respalda una instancia de Camel ConsulRegistry podría inyectar un objeto Java serializado malicioso que se deserializa la próxima vez que Camel realiza una búsqueda contra ese registro, lo que lleva a la ejecución de código arbitrario en el proceso de Camel. El problema refleja la clase de vulnerabilidad ya abordada para otros componentes de Camel en CVE-2024-22369, CVE-2024-23114 y CVE-2026-25747, y fue pasada por alto durante la remediación original de esos CVEs. Este problema afecta a Apache Camel: desde 3.0.0 antes de 4.14.6, desde 4.15.0 antes de 4.18.1. Se recomienda a los usuarios actualizar a la versión 4.19.0, que corrige el problema. Si los usuarios están en la rama de versiones LTS 4.14.x, se les sugiere actualizar a 4.14.6. Si los usuarios están en la rama de versiones 4.18.x, se les sugiere actualizar a 4.18.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27172 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5rc6-9qfp-8vwg changed 2026-05-05 | CC-BY-4.0 |
| NVD | CVE-2026-27172 changed 2026-10-26 | Public domain |