# CVE-2026-21725: Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name

> CVE-2026-21725: Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name. CVSS 2.6 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-21725
Last updated: 2026-08-27T17:22:30Z

- Published: 2026-02-25 12:35 UTC · Updated: 2026-08-27 17:22 UTC · Assigner: GRAFANA
- CVSS: 2.6 (CVSS 3.1) · Severity: Low · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
- EPSS: 0.18%, 8th percentile (scored 2026-10-25)
- CISA KEV: no

## 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 vendors and products

- Grafana: Grafana

## Tracked companies

- [Grafana Cloud](https://rewindex.com/company/grafana-cloud.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-21725)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-21725)
- [https://grafana.com/security/security-advisories/cve-2026-21725](https://grafana.com/security/security-advisories/cve-2026-21725)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-21725 · Markdown: https://rewindex.com/cve/CVE-2026-21725.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-21725 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:43.111Z
