CVE-2021-37219: HashiCorp Consul Privilege Escalation Vulnerability

github.com/hashicorp/consul Updated 02 Oct 2025

Summary

08/09/2021
Yes i
High
8.8

CVE-2021-37219: HashiCorp Consul Privilege Escalation Vulnerability. Affects github.com/hashicorp/consul across 3 version ranges.

< 1.8.15 >= 1.9.0, < 1.9.9 >= 1.10.1, < 1.10.2

Fixed in 1.8.15, 1.9.9 or 1.10.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-37219 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

HashiCorp Consul is a distributed service mesh and key-value store designed for modern applications. It provides a secure and scalable platform for service discovery, configuration, and orchestration. Consul is written in Go and is widely used in production environments. However, a privilege escalation vulnerability has been discovered in Consul versions 1.8.15, 1.9.9, and 1.10.2.

Vulnerability Detail

The vulnerability, identified as CVE-2021-37219, exists in the Raft RPC layer of HashiCorp Consul and Consul Enterprise. It allows non-server agents with a valid certificate signed by the same CA to access server-only functionality, leading to privilege escalation. This means that an attacker with a compromised agent certificate can gain unauthorized access to sensitive server resources and perform actions that they should not be allowed to. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.8.15 1.8.15
    go get github.com/hashicorp/consul@v1.8.15
  • >= 1.9.0, < 1.9.9 1.9.9
    go get github.com/hashicorp/consul@v1.9.9
  • >= 1.10.1, < 1.10.2 1.10.2
    go get github.com/hashicorp/consul@v1.10.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading to the patched versions of HashiCorp Consul.

Conclusion

The privilege escalation vulnerability in HashiCorp Consul can lead to unauthorized access and potential misuse of server resources. It is crucial to upgrade to the latest patched versions of Consul (1.8.15, 1.9.9, or 1.10.2) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/hashicorp/consul →

Share this vulnerability

FAQ

HashiCorp Consul is a distributed service mesh and key-value store designed for modern applications. It provides service discovery, configuration, and orchestration capabilities.

The vulnerability allows non-server agents with a valid certificate to access server-only functionality, leading to privilege escalation. This can result in unauthorized access to sensitive server resources and potential malicious actions.

To fix this vulnerability, upgrade to the latest patched versions of HashiCorp Consul: 1.8.15, 1.9.9, or 1.10.2.

No, there is no known workaround for this vulnerability. Upgrading to the patched versions is the recommended solution.

This vulnerability has a CVSS score of 8.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/hashicorp/consul.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 1.8.15 1.8.15
    go get github.com/hashicorp/consul@v1.8.15
  • >= 1.9.0, < 1.9.9 1.9.9
    go get github.com/hashicorp/consul@v1.9.9
  • >= 1.10.1, < 1.10.2 1.10.2
    go get github.com/hashicorp/consul@v1.10.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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