Unauthenticated DoS: avatar cache leaks goroutines when /avatar/:hash requests time out
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 11.6.9, 12.0.8, 12.1.5 and 2 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| grafana | >=3.0.0 <11.6.9, >=3.0.0 <12.0.8, >=3.0.0 <12.1.5, >=3.0.0 <12.2.3, >=3.0.0 <12.3.1 | 11.6.9, 12.0.8, 12.1.5, 12.2.3, 12.3.1 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket