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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | grafana | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | grafana-12.3 | No fix yet | — |
| Wolfi rolling | grafana-12.4 | 12.4.1-r0 | — |
Advisories 6
- SUSE-SU-2026:3718-1 Security update for grafana SUSE / openSUSE Security Updates · Aug 26, 2026
- WID-SEC-2026-0510 Grafana: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Aug 25, 2026
- openSUSE-SU-2026:21351-1 Security update for grafana SUSE / openSUSE Security Updates · Jul 15, 2026
- openSUSE-SU-2026:20940-1 Security update for grafana SUSE / openSUSE Security Updates · Jun 13, 2026
- openSUSE-SU-2026:10601-1 grafana-11.6.14+security01-1.1 on GA media SUSE / openSUSE Security Updates · Apr 23, 2026
- SUSE-SU-2026:1524-1 Security update 5.1.3 for Multi-Linux Manager Client Tools SUSE / openSUSE Security Updates · Apr 22, 2026
References
- https://grafana.com/security/security-advisories/cve-2026-21725 vendor-advisory