Skip to content
Heist/ feed
Back to feed
Low

Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-21725
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 00:56 UTC · Revision 1

Source evidence

Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name

core-osv · Original source

Published 25 Feb 2026, 12:35 UTC

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.

osv:CVE-2026-21725
Complete source record
{
  "id": "f8839035c17bb4d857fad61a838b9791f146f62fe9d43e13745871157744b371",
  "url": "https://osv.dev/vulnerability/CVE-2026-21725",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name",
    "summary": "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.",
    "evidence": "osv:CVE-2026-21725",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-21725",
      "aliases": [
        "BIT-grafana-2026-21725",
        "CVE-2026-21725"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/grafana/grafana",
              "type": "GIT",
              "events": [
                {
                  "introduced": "277ef258d4b9a5acdf2932347c6a4ca72d739b28"
                },
                {
                  "fixed": "46a02dc12a085445ab105b72fa159248f7d1dc9d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:grafana:grafana:*:-:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "11.0.0"
                      },
                      {
                        "fixed": "12.4.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21725.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.098605031Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21725.json",
        "https://grafana.com/security/security-advisories/cve-2026-21725",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-21725"
      ],
      "provider_metadata": {
        "cna_assigner": "GRAFANA",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "v11.0.0"
                  },
                  {
                    "fixed": "v12.4.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21725.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-21725",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 508780,
  "published_at": "2026-02-25T12:35:43.104+00:00"
}