CVE-2021-39226Snapshot authentication bypass in grafana
- 9.8CriticalCVSS base score
- 99.9%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 25 Aug 2022
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Grafana Authentication Bypass Vulnerability.
- Added
- 25 Aug 2022
- Fix due (US federal)
- 15 Sept 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 25 Aug 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits1
Nuclei templates1 template
- Grafana Snapshot - Authentication Bypass (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-39226.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitHub_M
- 50 days later
· 50 days later
Published
- 11 months later
· 11 months later
Added to CISA KEV
Known exploited in the wild
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
- EPSS (exploitation in 30 days)
- 99.9% · top 0.1% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/grafana/grafanaGHSA-69j6-29vr-p3j9 (opens in a new tab)
References
References9
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 (opens in a new tab)x_refsource_MISCx_transferred
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/ (opens in a new tab)x_refsource_MISCx_transferred
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/ (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20211005 CVE-2021-39226 Grafana snapshot authentication bypass (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2021-dd83dc8b0b (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://security.netapp.com/advisory/ntap-20211029-0008/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2021-01588ab0bf (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-2169 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-69j6-29vr-p3j9 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-39226)Record last updated .