---
id: "CVE-2026-107509"
page: "https://infrastack.ai/live/CVE-2026-107509"
kind: "vulnerability"
aliases: ["CVE-2026-107509"]
title: "Grafana: a Viewer-role user can crash the server with one SQL query"
severity: "medium"
cvss: 6.5
epss: null
exploited: false
status: "open"
category: "infrastructure"
products: []
ecosystems: []
tags: ["grafana", "infrastructure", "self-hosted", "viewer-role"]
not_affected_if: ["no-viewer-users", "sql-expressions-disabled"]
published_at: "2026-11-11T15:17:13+00:00"
first_seen_at: "2026-11-11T15:27:49+00:00"
updated_at: "2026-11-11T15:29:48+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-107509", "first_seen_at": "2026-11-11T15:27:49+00:00"}]
exploit_sources: []
---

# Grafana: a Viewer-role user can crash the server with one SQL query

Link for people: https://infrastack.ai/live/CVE-2026-107509 (this .md is for agents)

A user with only the Viewer role can send one SQL Expression query that casts a value to a very large BINARY length, making Grafana allocate unbounded memory. The server crashes as a result.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the Grafana version with `grafana server -v` or the About page in the UI.
- Look for SQL Expressions being enabled in the Grafana configuration (unknown if the sources name the exact setting).

## Timeline

- 2026-11-11T15:27:49+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-107509

## From the sources

A user with the Viewer role can make Grafana allocate an unbounded amount of memory, and crash it, with a single SQL Expression query that casts a value to a very large BINARY length (memory allocation with excessive size value).

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
