CVE-2021-39226
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.
Weakness
- CWE-287: Improper Authentication
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Grafana Authentication Bypass Vulnerability |
|---|---|
| Vendor / product | Grafana Labs / Grafana |
| Date added | 2022-08-25 |
| Federal remediation due date | 2022-09-15 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-02-06 |
Timeline
- 2021-10-05Published by the CNA17:30 UTC
- 2021-10-05GitHub advisory published (GHSA-69j6-29vr-p3j9)same day
- 2022-08-25Added to the CISA KEV catalog324 days after publication
- 2025-02-06CISA SSVC decision recorded1220 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2021-39226: Grafana Snapshot - Authentication Bypass
GitHub advisory GHSA-69j6-29vr-p3j9, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/grafana/grafana | before 7.5.11 | 7.5.11 |
| Go github.com/grafana/grafana | from 8.0.0 before 8.1.6 | 8.1.6 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| grafana grafana | before 7.5.11fixed in 7.5.11from 8.0.0 before 8.1.6fixed in 8.1.6 | 7.5.118.1.6 |
| fedoraproject fedora | 34no fix listed35no fix listed | not listednot listed |
References
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/
- http://www.openwall.com/lists/oss-security/2021/10/05/4
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/
- https://security.netapp.com/advisory/ntap-20211029-0008/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-39226'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-39226'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-39226'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-39226'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-39226'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).