CVE-2021-39226

Grafana Authentication Bypass Vulnerability

Actively exploited · CISA KEV
9.8 CriticalCVSS v3.1
99.9%EPSS (30-day exploit probability)
2022-08-25added to KEV
2022-09-15CISA federal due date

Summary

Grafana Labs Grafana. 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.

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.

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-287, CWE-862
Published
2021-10-05 (last modified 2026-06-17)

What to do

Apply updates per vendor instructions.

  1. Find every instance of Grafana Labs Grafana in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2021-39226 being exploited?

Yes. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on 2022-08-25, which means there is reliable evidence of active exploitation.

How do I fix CVE-2021-39226?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2021-39226?

The EPSS score is 99.93%, meaning an estimated 99.93% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited Grafana Labs vulnerabilities

CVE-2021-43798Grafana Path Traversal Vulnerability2025-10-09

All Grafana Labs exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.