{"id":"CVE-2026-21725","published":"2026-02-25T12:35:43Z","modified":"2026-08-27T17:22:30Z","title":"Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name","vendor":"Grafana","product":"Grafana","tier":"tail","description":{"text":"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.\n\nThis requires several very stringent conditions to be met:\n\n- The attacker must have admin access to the specific datasource prior to its first deletion.\n- Upon deletion, all steps within the attack must happen within the next 30 seconds and on the same pod of Grafana.\n- The attacker must delete the datasource, then someone must recreate it.\n- The new datasource must not have the attacker as an admin.\n- The new datasource must have the same UID as the prior datasource. These are randomised by default.\n- The datasource can now be re-deleted by the attacker.\n- Once 30 seconds are up, the attack is spent and cannot be repeated.\n- No datasource with any other UID can be attacked.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00182,"percentile":0.07805,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://grafana.com/security/security-advisories/cve-2026-21725","tags":["vendor-advisory"]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":1.56},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"grafana","affectedVersions":[{"vendor":"Grafana","product":"Grafana","versions":[">= v11.0.0, < v12.4.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-25T15:13:32.666615Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-8637","exploited":false,"provenance":"source"}}