Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-39226

CRITICAL 9.8ExploitedEPSS 100%

Snapshot authentication bypass in grafana

Also known as BIT-grafana-2021-39226, GHSA-69j6-29vr-p3j9

Mitigation

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

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

Vulnerability facts

Affected
github.com/grafana/grafana < 7.5.11
Fixed in
7.5.11, 8.1.6
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
CVSS
9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
99.93% chance of exploitation in 30 days (percentile 100, 2026-11-26)
CWE
CWE-287
Published
Modified

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

Package / productAffectedFixedSource
Go github.com/grafana/grafana< 7.5.117.5.11, 8.1.6osv
grafana>= 8.0.0, < 8.1.6; < 7.5.11—cvelist

Timeline

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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors