CVE-2021-39226 | Snapshot authentication bypass in grafana

Exp

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.

Published: 2021-10-05 Last update: 2025-10-24 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-39226 is rated Critical Active Threat (99.2/100): CVSS Critical severity, with high exploitation likelihood (EPSS 94.35%, 100th percentile). Core evidence: CISA KEV confirms active exploitation (added 2022-08-25) affecting Grafana Labs / Grafana. an authentication bypass (CWE-287) Unauthenticated remote administrative access may be possible. Mandatory action: The CISA remediation deadline has passed—treat as an emergency patch priority.

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

CISA KEV Record for CVE-2021-39226

Name: Grafana Authentication Bypass Vulnerability · CISA KEV detail

Exploit added: 2022-08-25

Action due: 2022-09-15

Required action: Apply updates per vendor instructions.

Public exploit references (Exploit-DB) for CVE-2021-39226

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2021-39226

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-03-04 94.33% 94.35% +0.02%
2 2026-03-01 94.35% 94.33% -0.02%
3 2026-02-04 94.35%

Full EPSS history (44 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-39226

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 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:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]
7.3 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
3.9 3.4 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2021-39226

GitHub Security Advisory for CVE-2021-39226

GHSA-69j6-29vr-p3j9 · Severity: high · Ecosystem: go — Authentication bypass for viewing and deletions of snapshots

OS Trackers for CVE-2021-39226

vendor priority summary link
alpine CVE-2021-39226: 1 source package rows (grafana); 6 state rows across 2 repos (3.22-community, edge-community); fixed 0, open 6. https://security.alpinelinux.org/vuln/CVE-2021-39226
redhat high https://access.redhat.com/security/cve/CVE-2021-39226
suse high CVE-2021-39226 severity important: SUSE including 13 source package names (7.5.12:grafana-7.5.12-1.27.1, 8.3.5.2.2.217:grafana-8.3.5-150200.3.21.1, …), 24 product×package rows across 23 product lines (Container caasp/v4/grafana, Container ses/7.1/ceph/grafana, … (23 product lines)): Fixed 24. https://www.suse.com/security/cve/CVE-2021-39226/
ubuntu high CVE-2021-39226 high priority: Ubuntu including 1 source packages (grafana), 13 status rows across 13 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, trusty, upstream, xenial): DNE 11, ignored 1, released 1. https://ubuntu.com/security/CVE-2021-39226

Affected software / configurations for CVE-2021-39226

Vendor Product Version Raw CPE
grafana grafana < 7.5.11 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
grafana grafana >= 8.0.0, < 8.1.6 cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*

References for CVE-2021-39226

URL Tags
http://www.openwall.com/lists/oss-security/2021/10/05/4 Mailing List Third Party Advisory
https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 Patch
https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 Exploit Mitigation Vendor 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/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/ Broken Link
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/ 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
cvelogic Threat Intelligence