Grafana OSS: resource exhaustion
Grafana is an open-source platform for monitoring and observability.
When an Elasticsearch data source is configured with a time-based index pattern, Grafana
generated one index name for every interval in the requested query time range without any upper
limit. A user with permission to query the data source, which includes users holding only the
Viewer role in a default configuration, could submit a single small query with an extreme time
range and cause the server to allocate memory until it was terminated. The allocation occurred
before any request was sent to Elasticsearch, so the condition applied whether or not the
Elasticsearch cluster was reachable.
Data sources configured with a static index name are not affected.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Elasticsearch Datasource Product | >= 12.4.2, < 12.9.6 | 12.9.6 |
| Grafana Enterprise Product | >= 11.6.0, <= 11.6.16 | No fix yet |
| >= 12.0.0, <= 12.2.10 | No fix yet | |
| >= 12.3.0, < 12.4.15 | 12.4.15 | |
| Grafana OSS Product | >= 11.6.0, <= 11.6.16 | No fix yet |
| >= 12.0.0, <= 12.2.10 | No fix yet | |
| >= 12.3.0, < 12.4.15 | 12.4.15 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-770