CVE-2021-38698
Description
HashiCorp Consul and Consul Enterprise 1.10.1 Txn.Apply endpoint allowed services to register proxies for other services, enabling access to service traffic. Fixed in 1.8.15, 1.9.9 and 1.10.2.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
HashiCorp Consul's Txn.Apply endpoint allowed unauthorized proxy registration, enabling traffic interception for services; fixed in versions 1.8.15, 1.9.9, 1.10.2.
Vulnerability
Consul and Consul Enterprise versions prior to 1.8.15, 1.9.9, and 1.10.2 contain an authorization bypass vulnerability in the Txn.Apply endpoint [1][2][4]. An ACL token with service:write permissions for any service could be used to register a proxy for an arbitrary target service, bypassing the intended ACL checks [4].
Exploitation
An attacker possessing an ACL token with service:write permissions for any service could craft a Txn.Apply request to register a proxy for a different service [4]. The attacker only needs network access to the Consul HTTP API and a valid token with the minimal service:write privilege [4].
Impact
Successful exploitation allows the attacker to intercept mTLS traffic destined for the target service [4]. The proxy receives encrypted traffic meant for the target service, potentially exposing sensitive data and compromising the confidentiality of service-to-service communication [4].
Mitigation
Upgrade to Consul or Consul Enterprise 1.8.15, 1.9.9, or 1.10.2 or later [2][4]. The fix corrects ACL enforcement on the Txn.Apply endpoint to ensure that proxy registrations are properly authorized [1][4]. No workaround is available [4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/hashicorp/consulGo | >= 1.10.1, < 1.10.2 | 1.10.2 |
github.com/hashicorp/consulGo | >= 1.9.0, < 1.9.9 | 1.9.9 |
github.com/hashicorp/consulGo | < 1.8.15 | 1.8.15 |
Affected products
27- HashiCorp/Consuldescription
- osv-coords26 versionspkg:apk/chainguard/consul-1.15pkg:apk/chainguard/consul-1.15-oci-entrypointpkg:apk/chainguard/consul-1.15-oci-entrypoint-compatpkg:apk/chainguard/consul-1.16pkg:apk/chainguard/consul-1.16-oci-entrypointpkg:apk/chainguard/consul-1.16-oci-entrypoint-compatpkg:apk/chainguard/consul-1.17pkg:apk/chainguard/consul-1.17-fipspkg:apk/chainguard/consul-1.17-fips-oci-entrypointpkg:apk/chainguard/consul-1.17-fips-oci-entrypoint-compatpkg:apk/chainguard/consul-1.17-oci-entrypointpkg:apk/chainguard/consul-1.17-oci-entrypoint-compatpkg:apk/chainguard/k3dpkg:apk/chainguard/k3d-proxypkg:apk/chainguard/k3d-toolspkg:apk/wolfi/consul-1.15pkg:apk/wolfi/consul-1.15-oci-entrypointpkg:apk/wolfi/consul-1.15-oci-entrypoint-compatpkg:apk/wolfi/consul-1.16pkg:apk/wolfi/consul-1.16-oci-entrypointpkg:apk/wolfi/consul-1.16-oci-entrypoint-compatpkg:apk/wolfi/k3dpkg:apk/wolfi/k3d-proxypkg:apk/wolfi/k3d-toolspkg:bitnami/consulpkg:golang/github.com/hashicorp/consul
< 1.15.11-r5+ 25 more
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 1.15.11-r5
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 5.6.0-r11
- (no CPE)range: < 1.8.15
- (no CPE)range: >= 1.10.1, < 1.10.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- github.com/advisories/GHSA-6hw5-6gcx-phmwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-38698ghsaADVISORY
- security.gentoo.org/glsa/202208-09ghsavendor-advisoryx_refsource_GENTOOWEB
- discuss.hashicorp.com/t/hcsec-2021-24-consul-missing-authorization-check-on-txn-apply-endpoint/29026ghsax_refsource_MISCWEB
- github.com/hashicorp/consul/pull/10824ghsaWEB
- www.hashicorp.com/blog/category/consulghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.