Missing Release of Resource after Effective Lifetime Affecting github.com/grafana/grafana/pkg/api package, versions >=3.0.0 <11.6.9+security-01>=12.0.0 <12.0.8+security-01>=12.1.0 <12.1.5+security-01>=12.2.0 <12.2.3+security-01>=12.3.0 <12.3.1+security-01


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-15127990
  • published29 Jan 2026
  • disclosed27 Jan 2026
  • creditUnknown

Introduced: 27 Jan 2026

CVE-2026-21720  (opens in a new tab)
CWE-772  (opens in a new tab)

How to fix?

Upgrade github.com/grafana/grafana/pkg/api to version 11.6.9+security-01, 12.0.8+security-01, 12.1.5+security-01, 12.2.3+security-01, 12.3.1+security-01 or higher.

Overview

github.com/grafana/grafana/pkg/api is an open and composable observability and data visualization platform.

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the /avatar/:hash endpoint. An attacker can exhaust system memory and cause service crashes by sending sustained requests that trigger goroutine leaks during timed-out Gravatar image refreshes.

Workaround

This vulnerability can be mitigated by disabling Gravatar support in the configuration file by setting allow_gravatar = false under the [users] section and restarting the service.

CVSS Base Scores

version 4.0
version 3.1