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

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.

Published: 2026-02-25 Last update: 2026-05-10 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-21725 is rated Low Risk (13.6/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.03%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-21725

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-02-26 0.03%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-21725

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
2.6 3.1 LOW
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
1.2 1.4 [email protected]
2.0 3.1 LOW
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
0.5 1.4 [email protected]

Weakness enumeration for CVE-2026-21725

OS Trackers for CVE-2026-21725

vendor priority summary link
alpine CVE-2026-21725: 1 source package rows (grafana); 32 state rows across 2 repos (3.23-community, edge-community); fixed 0, open 32. https://security.alpinelinux.org/vuln/CVE-2026-21725
redhat low https://access.redhat.com/security/cve/CVE-2026-21725
suse low CVE-2026-21725 severity low: SUSE including 10 source package names (firewalld-prometheus-config-0.1-150002.3.8.1, golang-github-lusitaniae-apache_exporter-1.0.10-150002.3.6.1, …), 15 product×package rows across 2 product lines (SUSE Multi Linux Manager Tools SLE-15, SUSE Multi Linux Manager Tools SLE-Micro-5): First Fixed 15. https://www.suse.com/security/cve/CVE-2026-21725/
ubuntu medium CVE-2026-21725 medium priority: Ubuntu including 1 source packages (grafana), 5 status rows across 5 suites (jammy, noble, questing, upstream, xenial): DNE 3, needs-triage 2. https://ubuntu.com/security/CVE-2026-21725

Affected software / configurations for CVE-2026-21725

Vendor Product Version Raw CPE
grafana grafana >= 11.0.0, < 12.4.1 cpe:2.3:a:grafana:grafana:*:-:*:*:enterprise:*:*:*

References for CVE-2026-21725

cvelogic Threat Intelligence