Home / grafana / grafana / CVE-2021-39226
CVE-2021-39226: is it exploited, and which versions of grafana are affected and fixed?
CVE-2021-39226 is an authentication bypass (improper authentication) vulnerability in grafana, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on August 25, 2022, with a federal due date of September 15, 2022. Affected: github.com/grafana/grafana before 7.5.11 and github.com/grafana/grafana from 8.0.0 before 8.1.6 (GitHub advisory GHSA-69j6-29vr-p3j9). Fixed in 7.5.11 and 8.1.6 (GitHub advisory GHSA-69j6-29vr-p3j9). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:54 UTC.
What is CVE-2021-39226?
Snapshot authentication bypass in grafana
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.
From the CVE record by GitHub_M, last updated October 21, 2025, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| grafana | grafana | >= 8.0.0, < 8.1.6 < 7.5.11 |
As the CVE record by GitHub_M states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/grafana/grafana | < 7.5.11 | 7.5.11 | GHSA-69j6-29vr-p3j9 |
| Go | github.com/grafana/grafana | >= 8.0.0, < 8.1.6 | 8.1.6 | GHSA-69j6-29vr-p3j9 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 22, 2025. Summary: Authentication bypass for viewing and deletions of snapshots.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| grafana | grafana | before 7.5.11 | application |
| grafana | grafana | from 8.0.0 before 8.1.6 | application |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 04:03 UTC.
How severe is CVE-2021-39226?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-39226 exploited in the wild?
- CISA KEV
- Listed as Grafana Authentication Bypass Vulnerability, added August 25, 2022; federal agencies must act by September 15, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Unknown
- CISA's summary
- Grafana contains an authentication bypass vulnerability that allows authenticated and unauthenticated users to view and delete all snapshot data, potentially resulting in complete snapshot data loss.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, February 6, 2025)
- EPSS
- 99.9% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 x_refsource_CONFIRM
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 x_refsource_MISC
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/ x_refsource_MISC
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/ x_refsource_MISC
- [oss-security] 20211005 CVE-2021-39226 Grafana snapshot authentication bypass mailing-list, x_refsource_MLIST
- FEDORA-2021-dd83dc8b0b vendor-advisory, x_refsource_FEDORA
- https://security.netapp.com/advisory/ntap-20211029-0008/ x_refsource_CONFIRM
- FEDORA-2021-01588ab0bf vendor-advisory, x_refsource_FEDORA
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226 government-resource
When was it published, and where is the official record?
- Reserved
- August 16, 2021
- Published
- October 5, 2021, 17:30 UTC
- CVE record updated
- October 21, 2025, 23:25 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 04:03 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:54 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect grafana?
- Dec 7, 2021CVE-2021-43798 grafana: path traversal (reading or writing files outside the intended folder) exploited
- Mar 27, 2026CVE-2026-27879 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-28375 Grafana: denial of service (uncontrolled resource consumption)
- Mar 27, 2026CVE-2026-27876 Grafana: code injection (remote code execution)
- Mar 27, 2026CVE-2026-27880 Grafana: out-of-bounds read
- Mar 27, 2026CVE-2026-27877 Grafana: sensitive data stored in clear text
- Feb 25, 2026CVE-2026-21725 Grafana: time-of-check time-of-use race condition
- Jul 18, 2025CVE-2025-6197 Grafana: open redirect
Questions about CVE-2021-39226
Is CVE-2021-39226 exploited in the wild?
Yes. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on August 25, 2022 and set federal agencies a due date of September 15, 2022. FIRST's EPSS gives it a 99.9% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of grafana are affected by CVE-2021-39226?
github.com/grafana/grafana before 7.5.11 and github.com/grafana/grafana from 8.0.0 before 8.1.6, per the GitHub advisory GHSA-69j6-29vr-p3j9. The tables above give every range the sources list.
Which version fixes CVE-2021-39226?
7.5.11 and 8.1.6, per the GitHub advisory GHSA-69j6-29vr-p3j9. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-39226?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2021-39226?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.