CVE-2026-21725: Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name
Vulnerability summary
CVE-2026-21725 is a low (CVSS 2.6) vulnerability in grafana. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 8% of scored vulnerabilities.
Not severe (CVSS 2.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 6Timeline
- 25-02-2026PublishedVulnerability first disclosed.
- 27-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated2.0LowCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · WolfiEcosystem advisory · calculated2.6LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated2.6LowCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
- NVDNIST2.0LowCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.17% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard8 products
- grafana-11.4All versions (No fix recorded)
- grafana-11.5All versions (No fix recorded)
- grafana-11.6All versions (No fix recorded)
- grafana-12.0All versions (No fix recorded)
- grafana-12.1All versions (No fix recorded)
Wolfi2 products
- grafana-12.3All versions (No fix recorded)
- grafana-12.4< 12.4.1-r0
Grafana1 product
- grafana≥ v11.0.0, < v12.4.1 | ≥ 11.0.0, < 12.4.1
Ubuntu1 product
- grafanaAll versions (No fix recorded)
4 vendors · 12 products