CVE-2026-21720
Modified
Modified - Updated After Analysis
Goroutine Leak in Grafana /avatar/ Handler Causes Memory Exhaustion
Vulnerability report for CVE-2026-21720, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-01-27
Last updated on: 2026-06-30
Assigner: Grafana Labs
Description
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| grafana | grafana | From 12.0.0 (inc) to 12.0.8 (exc) |
| grafana | grafana | From 12.1.0 (inc) to 12.1.5 (exc) |
| grafana | grafana | From 12.2.0 (inc) to 12.2.3 (exc) |
| grafana | grafana | From 3.0.0 (inc) to 11.6.9 (exc) |
| grafana | grafana | From 12.0.0 (inc) to 12.0.8 (exc) |
| grafana | grafana | From 12.1.0 (inc) to 12.1.5 (exc) |
| grafana | grafana | From 12.2.0 (inc) to 12.2.3 (exc) |
| grafana | grafana | From 3.0.0 (inc) to 11.6.9 (exc) |
| grafana | grafana | 12.3.0 |
| grafana | grafana | 12.3.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-772 | The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed. |