Service Proxy Registration Vulnerability in HashiCorp Consul: CVE-2021-38698

consul Updated 02 Oct 2025

Summary

07/09/2021
N/A
No i
Medium
6.5

CVE-2021-38698: HashiCorp Consul and Consul Enterprise 1.10.1 Txn.Apply endpoint allowed services to register proxies for other services, enabling access to service traffic. Affects consul versions < a4f67ec2bffec430e6677dc5a449e89b9b56aa13. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

HashiCorp Consul is a widely used service mesh solution that provides service discovery, configuration, and segmentation functionality across distributed applications. It enables services to communicate with each other securely and efficiently. However, a vulnerability was discovered in versions 1.10.1 and earlier, where the Txn.Apply endpoint allowed services to register proxies for other services, potentially exposing sensitive service traffic.

Vulnerability Detail

The vulnerability, identified as CVE-2021-38698, arises from the Txn.Apply endpoint in HashiCorp Consul versions 1.10.1 and earlier. This flaw allows services to register proxies for other services, which can lead to unauthorized access to service traffic. Attackers could exploit this vulnerability to intercept or manipulate communications between services, posing significant security risks. The issue is particularly concerning in environments where sensitive data is transmitted between services, as it could lead to data breaches or service disruptions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can restrict access to the Txn.Apply endpoint by implementing network policies or firewall rules that limit which services can communicate with it. This can help mitigate the risk until an upgrade can be performed.

Conclusion

CVE-2021-38698 is a significant vulnerability in HashiCorp Consul that allows unauthorized proxy registration, potentially compromising service traffic. Users are strongly advised to upgrade to the latest versions to mitigate risks. Additionally, implementing network restrictions can serve as a temporary measure until an upgrade is feasible.

See every vulnerability recorded for consul →

Share this vulnerability

FAQ

CVE-2021-38698 is a vulnerability in HashiCorp Consul that allows services to register proxies for other services, potentially exposing sensitive service traffic.

The vulnerability affects HashiCorp Consul versions 1.10.1 and earlier. It has been fixed in versions 1.10.2, 1.9.9, and 1.8.15.

Exploitation of this vulnerability could lead to unauthorized access to service traffic, data breaches, and potential service disruptions.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

The CVSS score for CVE-2021-38698 is 6.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for consul.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback