6.5Medium

CVE-2026-19475SQL Data Source Plugin: OOM DoS via $__timeGroup macro

Grafana PostgreSQL Datasource; Grafana MySQL Datasource; Grafana Grafana OSS; Grafana Microsoft SQL Server Datasource Published: (2 months ago)

Description

An authenticated user with permission to query a SQL data source can bypass the fix for CVE-2026-33375 by injecting the timeGroup macro through a WHERE clause, which Grafana's regex-based macro parsing does not reject. Evaluating the injected macro causes uncontrolled memory consumption that can terminate the Grafana server process, resulting in a denial of service. The Microsoft SQL Server, PostgreSQL, and MySQL data sources are affected.

Weakness (CWE): CWE-400

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Grafana Grafana OSS 11.6.0 – ≤ 11.6.16, 12.0.0 – ≤ 12.0.10, 12.1.0 – ≤ 12.1.10, 12.2.0 – ≤ 12.2.10, 12.3.0 – ≤ 12.3.11, 12.4.0 – ≤ 12.4.9, 13.0.0 – ≤ 13.0.7, 13.1.0 – ≤ 13.1.4
Grafana Microsoft SQL Server Datasource 13.0.0 – ≤ 13.0.1
Grafana MySQL Datasource 13.0.0 – ≤ 13.0.2
Grafana PostgreSQL Datasource 13.0.0 – ≤ 13.0.1

References and patches