CVE-2026-27172
Apache Camel-Consul component vulnerable to Deserialization of Untrusted Data
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.camel » camel-consul | >= 3.0.0, < 4.14.6>= 4.15.0, < 4.18.1 | 4.14.6, 4.18.1 |
Blast radius
2% of the dependent artifacts (9) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 517 |
| 2 hops | 1,482 |
| 3 hops | 350 |
| 4 hops | 464 |
| 5 hops | 555 |
| 6 hops | 3 |
Most used dependents
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apache.camel.quarkus » camel-quarkus-package-maven-plugin152 usages
- org.apache.camel » camel-catalog87 usages
- org.apache.camel.springboot » camel-jackson-starter37 usages
- org.apache.camel.springboot » camel-servlet-starter31 usages
- org.apache.camel.springboot » camel-http-starter29 usages
- org.l2x6.cq » cq-maven-plugin22 usages
- org.apache.camel.springboot » camel-spring-boot18 usages
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- org.apache.camel.springboot » camel-stream-starter16 usages
- org.apache.camel » camel-jbang-core15 usages
- org.apache.camel.springboot » camel-undertow-starter12 usages
Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-27172 | nvd.nist.gov |
| Package | apache/camel | github.com |
| Web | apache/camel pull request #21530 | github.com |
| Web | apache/camel pull request #21531 | github.com |
| Web | apache/camel pull request #21532 | github.com |
| Web | apache/camel commit 4b540e6 | github.com |
| Web | apache/camel commit 4e3f709 | github.com |
| Web | apache/camel commit 55dd9f8 | github.com |
| Web | security/CVE-2026-27172.html | camel.apache.org |
| Web | jira/browse/CAMEL-23029 | issues.apache.org |
