CVE-2021-39226: Grafana Snapshot Authentication Bypass
- Vendors
- Fedora ProjectGrafana Labs
CVE-2021-39226 is an authentication-bypass vulnerability in Grafana's snapshot functionality. Requests containing literal route-parameter placeholders allow unauthenticated or authenticated users to retrieve the snapshot with the lowest database key without knowing its snapshot key. Authenticated users can also delete that snapshot regardless of the snapshot public_mode setting; unauthenticated deletion is possible when public_mode is enabled. Repeatedly viewing and deleting the lowest-key snapshot exposes successive snapshots, permitting disclosure and destruction of all stored snapshot data. Fixes are available in Grafana 7.5.11 and 8.1.6.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Attackers can disclose dashboard snapshot data without possessing the corresponding snapshot keys. Authenticated attackers, or unauthenticated attackers when snapshot public_mode is enabled, can delete snapshots and repeatedly expose subsequent records. Combining retrieval and deletion can disclose all stored snapshot data and cause complete snapshot data loss, affecting confidentiality, integrity, and availability.
Mitigation
If you can’t patch tonight, do this now.
If upgrading is not immediately possible, configure a reverse proxy or equivalent control to block the exact literal paths /api/snapshots/:key, /api/snapshots-delete/:deleteKey, and /dashboard/snapshot/:key. These literal paths have no normal function and can be blocked without affecting legitimate snapshot routes. Review reverse-proxy, load-balancer, and Grafana Enterprise audit logs for successful requests to these paths. Keeping snapshot public_mode disabled prevents unauthenticated deletion but does not prevent unauthorized viewing or deletion by authenticated users.
Remediation
Patch, then assume compromise.
Upgrade Grafana to version 7.5.11 or 8.1.6, as appropriate for the installed branch, or a subsequent patched release. For distribution-managed installations, install the vendor security updates addressing CVE-2021-39226.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-39226 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 25, 2022.
- Is there a public exploit for CVE-2021-39226?
- Yes. As of Nov 19, 2026, Mallory has reports of a public exploit for CVE-2021-39226.
- Is there a patch for CVE-2021-39226?
- Upgrade Grafana to version 7.5.11 or 8.1.6, as appropriate for the installed branch, or a subsequent patched release. For distribution-managed installations, install the vendor security updates addressing CVE-2021-39226.
- What products are affected by CVE-2021-39226?
- Grafana Labs Grafana and Fedora Project Fedora.
- How severe is CVE-2021-39226?
- CVE-2021-39226 has a CVSS v3.1 score of 7.3 (High) and an EPSS score of 99.9% (100th percentile) as of Nov 19, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.