CVE-2026-21720: Every uncached /avatar/:hash request spawns a goroutine that refreshes the Gravatar image.
High CVSS 7.5
- CVE id
- CVE-2026-21720
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Grafana Runtimes and servers |
>= 3.0.0, < 11.6.9 >= 12.0.0, < 12.0.8 >= 12.1.0, < 12.1.5 >= 12.2.0, < 12.2.3 |
11.6.9, 12.0.8, 12.1.5, 12.2.3 |
How to fix it
Upgrade Grafana to the fixed release of the line you run: 11.6.9, 12.0.8, 12.1.5, 12.2.3.
grafana-server -v
- Upgrade Grafana (the grafana/grafana image tag or packages) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2026-21720 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-21720
- Web: https://grafana.com/security/security-advisories/cve-2026-21720
- Web: https://access.redhat.com/security/cve/CVE-2026-21720
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2433226
- Web: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21720.json
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.