Grafana Goroutine Leak on /avatar/:hash Gravatar Refresh
CVE-2026-21720 Published on January 27, 2026
Unauthenticated DoS: avatar cache leaks goroutines when /avatar/:hash requests time out
Every uncached /avatar/:hash request spawns a goroutine that refreshes the Gravatar image. If the refresh sits in the 10-slot worker queue longer than three seconds, the handler times out and stops listening for the result, so that goroutine blocks forever trying to send on an unbuffered channel. Sustained traffic with random hashes keeps tripping this timeout, so goroutine count grows linearly, eventually exhausting memory and causing Grafana to crash on some systems.
Vulnerability Analysis
CVE-2026-21720 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Types
What is a Resource Exhaustion Vulnerability?
The software does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.
CVE-2026-21720 has been classified to as a Resource Exhaustion vulnerability or weakness.
Improper Check or Handling of Exceptional Conditions
The software does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the software.
Missing Release of Resource after Effective Lifetime
The software does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed. When a resource is not released after use, it can allow attackers to cause a denial of service by causing the allocation of resources without triggering their release. Frequently-affected resources include memory, CPU, disk space, power or battery, etc.
Products Associated with CVE-2026-21720
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-21720 are published in these products:
Affected Versions
grafana/grafana-enterprise:- Version 3.0.0 and below 11.6.9 is affected.
- Version 3.0.0 and below 12.0.8 is affected.
- Version 3.0.0 and below 12.1.5 is affected.
- Version 3.0.0 and below 11.6.9 is affected.
- Version 3.0.0 and below 12.0.8 is affected.
- Version 3.0.0 and below 12.1.5 is affected.
- Version 3.0.0 and below 12.2.3 is affected.
- Version 3.0.0 and below 12.2.3 is affected.
- Version 3.0.0 and below 12.3.1 is affected.
- Version 3.0.0 and below 12.3.1 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.