CVE-2021-37219: HashiCorp Consul Privilege Escalation Vulnerability

github.com/hashicorp/consul Updated 02 Oct 2025

Summary

21/08/2024
Yes i
High
8.8

CVE-2021-37219: HashiCorp Consul Privilege Escalation Vulnerability in github.com/hashicorp/consul. 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 an open-source service mesh solution that provides a distributed, highly available, and scalable platform for service discovery, configuration, and segmentation across microservices. It is written in Go and is widely used in cloud-native environments. However, a privilege escalation vulnerability has been discovered in the Consul package.

Vulnerability Detail

The vulnerability (CVE-2021-37219) allows an attacker to escalate privileges in HashiCorp Consul. This could lead to unauthorized access to sensitive information, unauthorized modifications, or even complete control over the affected system. The vulnerability originates from a flaw in the Consul package, specifically in the way it handles certain operations. Attackers can exploit this flaw to bypass security measures and gain elevated privileges.

How To Fix

Latest published version: v1.22.7 as of 22 Oct 2026

go get github.com/hashicorp/consul@v1.22.7

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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

Currently, there is no known workaround for this vulnerability. It is essential to update the Consul package to the fixed versions mentioned above.

Conclusion

The privilege escalation vulnerability in HashiCorp Consul (CVE-2021-37219) poses a significant risk to systems utilizing this package. It is crucial to update to the fixed versions to mitigate the vulnerability and ensure the security of the system.

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

Share this vulnerability

FAQ

HashiCorp Consul is an open-source service mesh solution that provides service discovery, configuration, and segmentation across microservices in cloud-native environments.

The vulnerability allows attackers to escalate privileges in HashiCorp Consul, potentially leading to unauthorized access, modifications, or control over the affected system.

To fix this vulnerability, update the Consul package to version 1.8.15, 1.9.9, or 1.10.2, depending on the currently installed version.

No, there are no known workarounds for this vulnerability. Updating the Consul package is the recommended solution.

You can find more information about this vulnerability in the HashiCorp Consul documentation or the provided vulnerability database URL.

Related vulnerabilities

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

How To Fix

Latest published version: v1.22.7 as of 22 Oct 2026

go get github.com/hashicorp/consul@v1.22.7

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

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