Actively exploited vulnerability / CVE-2021-39226
Grafana: anyone can view and delete saved dashboard snapshots
This flaw lets an attacker, even without an account, view all saved dashboard snapshots in Grafana and, under certain conditions, delete all of them. For a business, this means internal data shown in charts can reach outsiders and be lost permanently. It is on the lists of vulnerabilities used in real attacks kept by CISA, the US cybersecurity agency, and by ENISA, the EU cybersecurity agency.
- Identifier
- CVE-2021-39226 · EUVD-2021-2169
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 25 August 2022
- Deadline given to US federal agencies
- 15 September 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 99.9% (FIRST's estimate for the next 30 days)
Does it concern you?
Grafana is an open source platform for charts and monitoring dashboards, often used by IT teams to watch servers, applications or business data. If you have an IT team or a provider monitoring your systems, you may be using it.
The Grafana version is usually shown at the bottom of the page or in the application's help menu; if you cannot find it, ask whoever administers the system. Versions older than 7.5.11 and versions from 8.0.0 up to but not including 8.1.6 are affected.
Affected products and versions
- Grafana Labs Grafana
- grafana: before 7.5.11; from 8.0.0 before 8.1.6
What to do
Update to version 7.5.11, 8.1.6 or later. If you cannot update right away, ask your IT team to block access to the snapshot addresses as the vendor recommends.
Versions that contain the fix: 7.5.11, 8.1.6.
The official description
The text below is the description from the public database.
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.
Sources
- Red Hat Security Data
- CVE Program
- GitHub Advisory Database
- Vendor advisory: grafana.com
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.