← Vulnerability feed

Vulnerability record · CVE-2021-39226 · published 5 October 2021

CVE-2021-39226: Grafana snapshot endpoints allow unauthenticated view and delete

Grafana · Grafana

Grafana exposes snapshot endpoints that resolve to the snapshot with the lowest database key when accessed via literal paths such as /dashboard/snapshot/:key, /api/snapshots/:key and /api/snapshots-delete/:deleteKey. Unauthenticated users can view that snapshot, and can delete it when public_mode is enabled; authenticated users can delete it regardless of that setting. Combined viewing and deletion lets an attacker walk through all snapshot data while destroying it, and the flaw is listed in CISA KEV with a very high EPSS score.

7.3 CVSS 3.1 High CISA KEV since 25 Aug 2022 EPSS 100% · top 0.1% CWE-287 · Improper authenticationCWE-862 · Missing authorization
7.3CVSS 3.1 base score, v2 6.8
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
2Affected product versions listed by NVD
17References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Grafana is an open source data visualization platform. In affected versions unauthenticated and authenticated users are able to view the snapshot with the lowest database key by accessing the literal paths: /dashboard/snapshot/:key, or /api/snapshots/:key. If the snapshot "public_mode" configuration setting is set to true (vs default of false), unauthenticated users are able to delete the snapshot with the lowest database key by accessing the literal path: /api/snapshots-delete/:deleteKey. Regardless of the snapshot "public_mode" setting, authenticated users are able to delete the snapshot with the lowest database key by accessing the literal paths: /api/snapshots/:key, or /api/snapshots-delete/:deleteKey. The combination of deletion and viewing enables a complete walk through all snapshot data while resulting in complete snapshot data loss. This issue has been resolved in versions 8.1.6 and 7.5.11. If for some reason you cannot upgrade you can use a reverse proxy or similar to block access to the literal paths: /api/snapshots/:key, /api/snapshots-delete/:deleteKey, /dashboard/snapshot/:key, and /api/snapshots/:key. They have no normal function and can be disabled without side effects.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityThe flaw allows unauthenticated data exposure and deletion, is listed in CISA KEV, and has an EPSS probability near 1.0.

What it is

Grafana exposes snapshot endpoints that resolve to the snapshot with the lowest database key when accessed via literal paths such as /dashboard/snapshot/:key, /api/snapshots/:key and /api/snapshots-delete/:deleteKey. Unauthenticated users can view that snapshot, and can delete it when public_mode is enabled; authenticated users can delete it regardless of that setting. Combined viewing and deletion lets an attacker walk through all snapshot data while destroying it, and the flaw is listed in CISA KEV with a very high EPSS score.

Impact

An attacker can read snapshot contents without authentication and delete snapshots, causing loss of snapshot data; the CVSS vector rates confidentiality, integrity and availability impact as low each.

Attack surface

Reachable over the network through the Grafana HTTP endpoints listed in the advisory; no authentication is required for viewing, and deletion requires either authentication or public_mode set to true. No user interaction is needed per the CVSS vector.

Exploitation

CVE-2021-39226 is in CISA KEV (added 2022-08-25) and has an EPSS 30-day probability of 0.99933, indicating active exploitation is expected; the vendor advisory reference is tagged Exploit.

What to do

  • Upgrade Grafana to 8.1.6 or 7.5.11, which resolve the issue.
  • If upgrading is not possible, block the literal paths /api/snapshots/:key, /api/snapshots-delete/:deleteKey, /dashboard/snapshot/:key and /api/snapshots/:key at a reverse proxy.
  • Keep the snapshot public_mode setting at its default of false.
  • Review and remove any snapshots that should not be retained, since the endpoints have no normal function and can be disabled without side effects.

Detection

  • Monitor web logs for requests to /dashboard/snapshot/:key, /api/snapshots/:key and /api/snapshots-delete/:deleteKey, especially with literal or sequential keys.
  • Alert on snapshot deletion events and on access to snapshot endpoints by unauthenticated clients.
  • Audit Grafana snapshot inventory for unexpected loss or gaps in database keys.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-39226 to the Known Exploited Vulnerabilities catalog on 25 August 2022 as "Grafana Authentication Bypass Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 15 September 2022.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.openwall.com/lists/oss-security/2021/10/05/4 Mailing ListThird Party Advisory
https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 Patch
https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 ExploitMitigationVendor Advisory
https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/ Release Notes
https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/ Release Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISR Broken Link
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26 Broken Link
https://security.netapp.com/advisory/ntap-20211029-0008/ Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/05/4 Mailing ListThird Party Advisory
https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 Patch
https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 ExploitMitigationVendor Advisory
https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/ Release Notes
https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/ Release Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISR Broken Link
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26 Broken Link
https://security.netapp.com/advisory/ntap-20211029-0008/ Third Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226 US Government Resource

Track CVE-2021-39226 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-39226), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.