CVE-2026-27172
JSON

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 packageVersionsReported by
org.apache.camel:camel-consulfrom 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1CVE List
camel-consulNot specifiedCVE List
camel-consul-starterNot specifiedCVE List
org.apache.camel:camel-consul (Maven)from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1GitHub Advisory Database
apache camelfrom 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1NVD

All scores

CISA-ADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Classification

CWE-502

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

https://camel.apache.org/security/CVE-2026-27172.htmlvendor-advisory, web
https://access.redhat.com/security/cve/CVE-2026-27172vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2463183issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27172.json
https://nvd.nist.gov/vuln/detail/CVE-2026-27172advisory
https://github.com/apache/camel/pull/21530web
https://github.com/apache/camel/pull/21531web
https://github.com/apache/camel/pull/21532web
https://github.com/apache/camel/commit/4b540e6e20bad4a4af19688b85a247bdb96c2e2dweb
https://github.com/apache/camel/commit/4e3f709b97aef3ed99e3a52a99c752b37b104063web
https://github.com/apache/camel/commit/55dd9f8ce5f6db06f3946c3f3df1e2ea16e4f374web
https://github.com/apache/camelpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-27172 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-5rc6-9qfp-8vwg changed 2026-05-05CC-BY-4.0
NVDCVE-2026-27172 changed 2026-10-26Public domain