CVE-2021-39226
CONFIRMED EXPLOITEDGrafana Authentication Bypass Vulnerability
Is Grafana Labs Grafana affected by CVE-2021-39226?
Grafana Labs Grafana is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2021-39226, added on 2022-08-25. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (4 vulnerable CPE entries): fedoraproject fedora and grafana grafana.
Published CPE version bounds mark releases below 8.1.6 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-09-15.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2021-43798Same productGrafana Labs Grafana
Grafana Path Traversal Vulnerability
- CVE-2026-133469Shared weaknessVates Xen Orchestra
Vates Xen Orchestra Improper Validation of Specified Type of Input Vulnerability
- CVE-2026-123039Shared weaknessCheck Point Multiple Products
Check Point Multiple Products Incorrect Permission Assignment for Critical Resource Vulnerability
- CVE-2026-102895Shared weaknessGPUStack GPUStack
GPUStack Improper Authentication Vulnerability
- CVE-2021-38406Neighboring entryDelta Electronics DOPSoft 2
Delta Electronics DOPSoft 2 Improper Input Validation Vulnerability
- CVE-2022-2294Neighboring entryWebRTC WebRTC
WebRTC Heap Buffer Overflow Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-08-25. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Grafana has been compromised.
- Refer to the CISA KEV and NVD/CNA descriptions above for exact component impact boundaries.
- HTTP / web application surface (Grafana Labs Grafana): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Authentication / status-handling weakness: audit service authentication logs for session establishment without complete challenge verification, unexpected return-code handling, or spikes in aborted auth handshakes.
- Inventory all hosts running Grafana Labs Grafana and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://www.openwall.com/lists/oss-security/2021/10/05/4Mailing ListThird Party Advisory
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269Patch
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9ExploitMitigationVendor Advisory
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/Release Notes
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/Release Notes
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/Broken Link
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/Broken Link
- https://security.netapp.com/advisory/ntap-20211029-0008/Third Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/05/4Mailing ListThird Party Advisory
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269Patch
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9ExploitMitigationVendor Advisory
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/Release Notes
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/Release Notes
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/Broken Link
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/Broken Link
- https://security.netapp.com/advisory/ntap-20211029-0008/Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting