Unauthenticated DoS: avatar cache leaks goroutines when /avatar/:hash requests time out
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 11.6.9, 12.0.8, 12.1.5, 12.2.3, 12.3.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Grafana grafana/grafana-enterprise
From 3.0.0 · fixed in 11.6.9
- Grafana grafana/grafana-enterprise
From 3.0.0 · fixed in 12.0.8
- Grafana grafana/grafana-enterprise
From 3.0.0 · fixed in 12.1.5
- Grafana grafana/grafana
From 3.0.0 · fixed in 11.6.9
- Grafana grafana/grafana
From 3.0.0 · fixed in 12.0.8
- Grafana grafana/grafana
From 3.0.0 · fixed in 12.1.5
- Grafana grafana/grafana-enterprise
From 3.0.0 · fixed in 12.2.3
- Grafana grafana/grafana
From 3.0.0 · fixed in 12.2.3
- Grafana grafana/grafana-enterprise
From 3.0.0 · fixed in 12.3.1
- Grafana grafana/grafana
From 3.0.0 · fixed in 12.3.1