CVE-2021-39226criticalunder attackCWE-287

CVE-2021-39226: critical vulnerability in grafana

Snapshot authentication bypass in grafana

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

95Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 9.8epss 100%
from disclosure to weapon
Published on NVDOct 5
CISA KEV+324d
What the vendors declare (VEX)

Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.

Affected
6 products (14 components)
OpenShift Service Mesh 1 · OpenShift Service Mesh 2.0 · Red Hat Ceph Storage 3 · Red Hat Ceph Storage 2 · Red Hat Storage 3 · and others 1
no_fix_planned: Out of support scope
Fixed
9 products (141 components)
Red Hat Enterprise Linux AppStream EUS (v. 8.1) · Red Hat Enterprise Linux AppStream EUS (v. 8.2) · Red Hat Enterprise Linux AppStream (v. 8) · Red Hat OpenShift Container Platform 4.10 · Red Hat OpenShift Container Platform 4.9 · and others 4
Not affected
8 products (2,292 components) — because the vulnerable code is not present in the product
Red Hat OpenShift Container Platform 4.10 · Red Hat OpenShift Container Platform 4.9 · Red Hat OpenShift Container Platform 4.7 · Red Hat OpenShift Container Platform 4.8 · Red Hat OpenShift Container Platform 4.6 · and others 3
Action required by CISAfederal deadline: 2022-09-15

Apply updates per vendor instructions.

In short

Grafana snapshots can be viewed and deleted by anyone without proper authentication. An attacker can access snapshot data and destroy it by guessing simple database keys, leading to data loss and unauthorized information disclosure.

Technical detail

Authentication bypass in Grafana snapshot endpoints allows unauthenticated users to enumerate and view snapshots via /dashboard/snapshot/:key or /api/snapshots/:key, and delete snapshots via /api/snapshots-delete/:deleteKey when public_mode is enabled. Authenticated users can delete snapshots regardless of public_mode setting. The vulnerability stems from insufficient access controls on snapshot endpoints that rely on predictable database keys rather than proper authentication checks.

Summary generated and translated by AI from the official description.

The full analysis of this CVE is available in Portuguese →

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
grafana · grafana