CVE-2021-39226: Grafana Authentication Bypass Vulnerability
Vulnerability summary
CVE-2021-39226 is a critical (CVSS 9.8) Improper Authentication vulnerability in Grafana Labs Grafana. It is known to be exploited: CISA lists it, first on 25-08-2022. EPSS estimates a 99.93% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.
Listed as exploited by CISA (25-08-2022)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 10Timeline
- 05-10-2021PublishedVulnerability first disclosed.
- 25-08-2022Added to CISA KEVExploitedGrafana Authentication Bypass Vulnerability
- 15-09-2022CISA remediation dueDeadline passedApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:HDiffers
- NVDNIST7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
99.93%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
No change 0.00 pp
From 99.93% on 04-10-2026
Known exploited
Compare KEV catalogs- Added
- 25-08-2022
- Federal due date
- 15-09-2022
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
CISA required action
Apply updates per vendor instructions. grafana.com/blog/2021/10/05/grafana-7.5.11-and-8.1.6-released-with-critical-security-fix/ nvd.nist.gov/vuln/detail/CVE-2021-39226
Public exploits
1 foundGrafana
Maturity: poc
Weaknesses
CWE · root cause- CWE-287Improper AuthenticationWhen an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
- CWE-862Missing AuthorizationThe product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat14 products
- grafana< 0:6.2.2-7.el8_1 | < 0:6.3.6-3.el8_2 | < 0:7.3.6-3.el8_4
- grafana-azure-monitor< 0:6.2.2-7.el8_1 | < 0:6.3.6-3.el8_2
- grafana-cloudwatch< 0:6.2.2-7.el8_1 | < 0:6.3.6-3.el8_2
- grafana-debuginfo< 0:6.2.2-7.el8_1 | < 0:6.3.6-3.el8_2 | < 0:7.3.6-3.el8_4
- grafana-elasticsearch< 0:6.2.2-7.el8_1 | < 0:6.3.6-3.el8_2
Fedoraproject1 product
- fedoraEOL34 | 35
Github.com/grafana1 product
- grafana< 7.5.11 | ≥ 8.0.0, < 8.1.6
Grafana1 product
- grafana< 7.5.11 | ≥ 8.0.0, < 8.1.6
Opensuse1 product
- grafana&distro=openSUSE Tumbleweed< 7.5.11-3.1
Ubuntu1 product
- grafanaAll versions (No fix recorded)
6 vendors · 19 products
References
33 links- github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9X Refsource CONFIRMARTICLEREPORTWEBExploitMitigationVendor Advisory
- www.openwall.com/lists/oss-security/2021/10/05/4Mailing ListX Refsource MLISTWEBThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226Government ResourceWEBUS Government Resource
Show all 33 references
- github.com/grafana/grafanaPACKAGE