LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2021-39226: Grafana Authentication Bypass Vulnerability

RBRecent Breaches Vulnerability Intelligence·Aug 25, 2022
CVSS 9.8 · Critical⚠ Actively exploited (CISA KEV)
9.8
CVSS score
Critical
Severity
Active
CISA KEV
No
Ransomware use
Sep 15, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on Aug 25, 2022, with a federal patch deadline of Sep 15, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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.

CVE-2021-39226 is an authentication bypass vulnerability in Grafana Labs Grafana. According to CISA, it allows both authenticated and unauthenticated users to view and delete all snapshot data, which can result in complete snapshot data loss. For IT and security teams running Grafana for dashboards and observability, this matters because snapshots often hold sensitive operational or business data; unauthorized access or deletion can disrupt monitoring and expose information that should remain controlled.

Defenders should treat this as a serious access-control failure in a widely deployed monitoring platform. Confirm exact impact, fixed releases, and deployment details against the vendor advisory before acting.

How it works

The weakness is classified as CWE-287 (Improper Authentication). In this class of flaw, the application fails to correctly enforce authentication or authorization checks on certain operations. An attacker can abuse the gap to reach snapshot-related functions without proper credentials or with insufficient privileges.

Per the CISA summary, both authenticated and unauthenticated users can view and delete all snapshot data. The practical result is unauthorized read access to snapshot contents and the ability to wipe that data entirely. Specific request paths, parameters, or bypass mechanics are not detailed here; treat any public proof-of-concept claims cautiously and validate behavior only against the official vendor advisory and your own controlled testing.

Am I affected? How to find it in your systems

Grafana is commonly deployed as a standalone service, in containers, or as part of observability stacks (often alongside Prometheus, Loki, or similar tools) on servers, Kubernetes clusters, and cloud instances. It may be exposed internally for operations teams or, less ideally, to broader networks.

Inventory steps:

Telemetry and log signs of possible exploitation are general for this class: unexpected requests to snapshot-related API or UI endpoints, bulk snapshot listing or deletion events, access from unfamiliar source IPs or user agents, and sudden disappearance of snapshot data. Enable and retain Grafana access and audit logs, and correlate with reverse-proxy or WAF logs. Absence of obvious indicators does not prove safety; confirm patch status directly.

How to remediate

Patch first. Apply the updates issued by Grafana Labs exactly as described in the vendor advisory and follow CISA’s required action: apply updates per vendor instructions. Schedule the upgrade in a maintenance window, test dashboards and data sources in a non-production environment if possible, then roll out to production and verify the running version afterward.

After patching, harden for this weakness class:

If you can't patch immediately

Use compensating controls to reduce exposure until the vendor update can be applied:

These measures lower risk but do not replace the patch. Track the upgrade as a priority.

If your data may have been exposed

Actively exploited authentication-bypass vulnerabilities can lead to data exposure or destructive actions such as snapshot deletion. If you have evidence of unauthorized snapshot access or loss, follow your incident-response process: preserve logs, assess what data the snapshots contained, notify stakeholders as required, and rotate any credentials or secrets that may have been present.

You can also run a free exposure scan of your email addresses against known breach data sets to check whether related credentials or personal information have appeared in prior incidents, then take appropriate credential-reset and monitoring steps.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedGrafana Labs · Grafana
WeaknessCWE-287
CVSS base score9.8 (Critical)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PublishedOct 5, 2021
Added to CISA KEVAug 25, 2022
Federal patch deadlineSep 15, 2022
Known ransomware useNot documented
Check if your data is exposed →

References

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities