CVE-2021-39226

Snapshot authentication bypass in grafana

HIGH
7.3
CVSS Score
Published: October 5, 2021 at 05:30 PM UTC
Updated: June 17, 2026 at 04:03 AM UTC
2 products affected across 2 vendorsFedoraGrafana

Using grafana by grafana?

Get instant alerts when new vulnerabilities affect grafana - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.3
Exploitation
CISA KEV
Exploit prediction
EPSS 100%
SSVC
Active

Actively Exploited

CISA Known Exploited Vulnerabilities (KEV) Catalog

EPSS Score99.9%

EPSS (Exploit Prediction Scoring System) estimates a 99.9% chance this CVE is exploited in the wild within the next 30 days — higher than 100% of all CVEs. It complements CVSS: a high EPSS on a mid-severity CVE can still be urgent.

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.

Required Action
Apply updates per vendor instructions.
Ransomware Use
Unknown
Added to KEV
Aug 25, 2022
Remediation Due
Sep 15, 2022
1508 days overdue

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 7.5.11v < 8.1.68.0.0 ≤ v < 8.1.6
Affected range stops below 7.5.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.1.6, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCActiveAutomatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusANALYZED
CWE
CWE-287CWE-862

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card