# CVE-2021-39226: Snapshot authentication bypass in grafana

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2022-08-25; federal due date 2022-09-15
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 99.93% (percentile 100, 2026-11-28)
- **CWE:** CWE-287
- **Aliases:** BIT-grafana-2021-39226, GHSA-69j6-29vr-p3j9
- **Published:** 2021-10-05T17:30:11.000Z
- **Modified:** 2026-07-08T06:29:56.330Z

## Who should check

- Projects that depend on Go package github.com/grafana/grafana (\< 7.5.11)
- Anyone running grafana \>= 8.0.0, \< 8.1.6; \< 7.5.11

## 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.

## Affected and fixed versions

- Go `github.com/grafana/grafana`: affected \< 7.5.11; fixed 7.5.11, 8.1.6 (osv)
- grafana: \>= 8.0.0, \< 8.1.6; \< 7.5.11 (cvelist)

## Mitigation

- Upgrade github.com/grafana/grafana to one of 7.5.11, 8.1.6 (or later in the same release line).

## Timeline

- 2021-10-05: Published
- 2022-08-25: Added to CISA KEV (exploited in the wild)
- 2022-09-15: CISA remediation due date for US federal agencies
- 2026-07-08: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-39226. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-39226.md
Affected: github.com/grafana/grafana < 7.5.11
Fixed in: 7.5.11, 8.1.6

Steps:
1. Search this machine and project for github.com/grafana/grafana (Go), grafana: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-39226 being exploited?

Yes. CISA lists CVE-2021-39226 in its Known Exploited Vulnerabilities catalog since 2022-08-25, which means attacks have been seen. No public exploit code is known. EPSS estimates a 99.93% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-39226?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-39226?

github.com/grafana/grafana \< 7.5.11.

### Is there a fix for CVE-2021-39226?

Yes. Fixed in 7.5.11, 8.1.6. Upgrade github.com/grafana/grafana to one of 7.5.11, 8.1.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-39226?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-39226>
- patch: <https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269>
- other: <https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/>
- other: <https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/>
- other: <http://www.openwall.com/lists/oss-security/2021/10/05/4>
- other: <https://security.netapp.com/advisory/ntap-20211029-0008/>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226>
- other: <https://github.com/grafana/grafana>
- other: <https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11>
- other: <https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG>
- other: <https://security.netapp.com/advisory/ntap-20211029-0008>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-39226>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-69j6-29vr-p3j9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2021-39226> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-39226>
