What’s Vulnerable › Vulnerabilities

CVE-2026-21720: Unauthenticated DoS: avatar cache leaks goroutines when /avatar/:hash requests time out

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.

Affected products

How to fix

Upgrade to a fixed version: Grafana 11.6.9, 12.0.8, 12.1.5, 12.2.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-21720 or the next vulnerability affects your stack