Skip to content
OpenAdvisories
Low · 2.6 CVE-2026-21725 EUVD-2026-8637GHSA-w36g-f98m-wm99

Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name

Published Feb 25, 2026 · Updated Aug 27, 2026 · Assigned by GRAFANA

Description

A time-of-create-to-time-of-use (TOCTOU) vulnerability lets recently deleted-then-recreated data sources be re-deleted without permission to do so.

This requires several very stringent conditions to be met:

- The attacker must have admin access to the specific datasource prior to its first deletion.
- Upon deletion, all steps within the attack must happen within the next 30 seconds and on the same pod of Grafana.
- The attacker must delete the datasource, then someone must recreate it.
- The new datasource must not have the attacker as an admin.
- The new datasource must have the same UID as the prior datasource. These are randomised by default.
- The datasource can now be re-deleted by the attacker.
- Once 30 seconds are up, the attack is spent and cannot be repeated.
- No datasource with any other UID can be attacked.

Affected products

VendorProductAffectedFixed
Grafana Grafana v11.0.0 – < v12.4.1 v12.4.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS grafana No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 grafana 12.4.5-150200.3.91.1 SUSE-SU-2026:3718-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Multi Linux Manager Tools SLE-Micro-5 prometheus-blackbox_exporter 0.26.0-150002.3.6.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-Micro-5 uyuni-tools 5.1.26-150002.3.12.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 golang-github-lusitaniae-apache_exporter 1.0.10-150002.3.6.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 golang-github-prometheus-prometheus 3.5.0-150002.3.8.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 grafana 11.6.14+security01-150002.4.14.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 prometheus-blackbox_exporter 0.26.0-150002.3.6.1 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 spacecmd 5.1.13-150002.3.9.3 SUSE-SU-2026:1524-1
SUSE Multi Linux Manager Tools SLE-15 uyuni-tools 5.1.26-150002.3.12.1 SUSE-SU-2026:1524-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed grafana 11.6.14+security01-1.1 openSUSE-SU-2026:10601-1
openSUSE Leap 16.0 grafana 11.6.14+security04-bp160.1.1 openSUSE-SU-2026:21351-1, openSUSE-SU-2026:20940-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling grafana-12.3 No fix yet —
Wolfi rolling grafana-12.4 12.4.1-r0 —

Advisories 6

References