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

- Severity: Low 2.6 (CVSS:3.1, scored by GRAFANA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-02-25T12:35:43.104Z
- Modified: 2026-09-08T08:47:51.128Z
- Also known as: BIT-GRAFANA-2026-21725
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Grafana Grafana: from v11.0.0 before v12.4.1; from 11.0.0 before 12.4.1
- grafana (Bitnami): from 11.0.0 before 12.4.1

## Every score

- GRAFANA: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 2.0 Low `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://grafana.com/security/security-advisories/cve-2026-21725> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21725> (web)

## Sources

- CVE List: [CVE-2026-21725](https://www.cve.org/CVERecord?id=CVE-2026-21725), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2026-21725](https://nvd.nist.gov/vuln/detail/CVE-2026-21725), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GRAFANA-2026-21725](https://osv.dev/vulnerability/BIT-GRAFANA-2026-21725), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-21725 · Whole record: https://cve.day/CVE-2026-21725.json · Rebuilt by cve.day 2026-11-25T22:59:14.837Z
