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

PackageAffected versionsFixed 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

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.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

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.