Skip to content

CVE-2021-39226

Grafana Authentication Bypass

9.8 CRITICALActively exploited (CISA KEV)Public exploitEPSS 99.9%
  1. Published5 Oct 2021
  2. Added to CISA KEV25 Aug 2022
  3. Remediation due15 Sept 2022
Actively exploited (CISA KEV)

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.

Added to KEV: 25 Aug 2022Federal remediation due: 15 Sept 2022

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.

CVSS 3.1 breakdown

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

Grafana≥ 8.0.0 < 8.1.6 · < 7.5.11
Fedoraproject Fedora34 · 35

Frequently asked

Is CVE-2021-39226 being actively exploited?

Yes. CVE-2021-39226 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added 25 Aug 2022.

How severe is CVE-2021-39226?

CVE-2021-39226 has a CVSS 3.1 base score of 9.8, rated critical. EPSS estimates a 99.9% probability of exploitation.

Which products are affected by CVE-2021-39226?

Affected products include Grafana, Fedoraproject Fedora.

How do I fix CVE-2021-39226?

Upgrade affected software to a fixed version, for example Grafana 8.1.6 or later, then confirm no affected versions remain in your inventory.

How Secuno handles this

Secuno correlates vulnerabilities like CVE-2021-39226 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. Because it is on the CISA KEV list, Secuno flags any affected asset as top-priority automatically. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.