SQL Data Source Plugin: OOM DoS via $__timeGroup macro

Medium
Advisory ID:CVE-2026-19475
Published:2026-09-02
Product:PostgreSQL Datasource
CVSS Score:6.5
CVSS Vector:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Fixed Versions:
<11.6.0
>=12.4.10 <13.0.0
>=13.0.8 <13.1.0
>=13.1.5

Summary

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.