Miggo Logo

CVE-2020-7219: Denial of Service (DoS) in HashiCorp Consul

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.79802%
Published
5/18/2021
Updated
10/8/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/hashicorp/consulgo< 1.6.31.6.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from missing connection limits and timeouts in HTTP/RPC handlers. The patches add:

  1. Connection limiters in RPC handler (handleConn) using go-connlimit
  2. HTTP connection tracking via ConnState hooks
  3. Timeout enforcement in TLS handshakes
  4. Configuration parameters for limits Vulnerable functions are those directly processing network connections without these controls. The modified functions show where resource constraints were added, indicating previously unbounded processing.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

**s*i*orp *onsul *n* *onsul *nt*rpris* up to *.*.* *TTP/RP* s*rvi**s *llow** un*oun*** r*sour** us***, *n* w*r* sus**pti*l* to un*ut**nti**t** **ni*l o* s*rvi**. *ix** in *.*.*. ### Sp**i*i* *o P**k***s *****t** *it*u*.*om/**s*i*orp/*onsul/***nt/*on

Reasoning

T** vuln*r**ility st*mm** *rom missin* *onn**tion limits *n* tim*outs in *TTP/RP* **n*l*rs. T** p*t***s ***: *. *onn**tion limit*rs in RP* **n*l*r (**n*l**onn) usin* *o-*onnlimit *. *TTP *onn**tion tr**kin* vi* *onnSt*t* *ooks *. Tim*out *n*or**m*nt