CVE-2021-39226
Confirmed PUBLISHEDSnapshot authentication bypass in grafana
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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 Published
- Oct 05, 2021
- Exploitation Reported
- Aug 25, 2022
- CVSS
- 9.8 Critical
- EPSS
- 99.9%
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| grafana |
grafana
|
>= 8.0.0, < 8.1.6 |
Affected |
| grafana |
grafana
|
< 7.5.11 |
Affected |
CVE References
- FEDORA-2021-dd83dc8b0b lists.fedoraproject.org · Vendor Advisory https://lists.fedoraproject.org/archives/list/package-announce%40list...
- FEDORA-2021-01588ab0bf lists.fedoraproject.org · Vendor Advisory https://lists.fedoraproject.org/archives/list/package-announce%40list...
- [oss-security] 20211005 CVE-2021-39226 Grafana snapshot authentication bypass openwall.com · Mailing List http://www.openwall.com/lists/oss-security/2021/10/05/4
- GitHub — grafana/grafana github.com · CVE Record https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr...
- GitHub — grafana/grafana github.com · CVE Record https://github.com/grafana/grafana/commit/2d456a6375855364d098ede3794...
Show 3 more references
- grafana.com/docs/grafana/latest/release-notes/release-no... grafana.com · CVE Record https://grafana.com/docs/grafana/latest/release-notes/release-notes-7...
- grafana.com/docs/grafana/latest/release-notes/release-no... grafana.com · CVE Record https://grafana.com/docs/grafana/latest/release-notes/release-notes-8...
- security.netapp.com/advisory/ntap-20211029-0008 security.netapp.com · CVE Record https://security.netapp.com/advisory/ntap-20211029-0008/
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-08-25 00:00 UTC |
| The Shadowserver | 2026-06-15 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39226.yaml | Apr 25, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:M/Au:N/C:P/I:P/A:P
Exploitation Status
Exploited in the wild
Recorded 2022-08-25 00:00:00 UTC · CISA
Proof of concept available
Recorded 2026-06-12 14:20:24 UTC · Nuclei Templates
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39226.yaml | Apr 25, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
nuclei · Created Unknown
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
00:00 UTC about 1 month ago00:00 UTC · about 1 month ago
KEV confirmed by The Shadowserver
Exploitation attested by an external source
-
14:20 UTC about 1 month ago14:20 UTC · about 1 month ago
Public PoC available
Public proof-of-concept code published
-
00:00 UTC about 1 year ago00:00 UTC · about 1 year ago
Nuclei template available
Scanner coverage available
-
00:00 UTC almost 4 years ago00:00 UTC · almost 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
17:30 UTC almost 5 years ago17:30 UTC · almost 5 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC almost 5 years ago00:00 UTC · almost 5 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2021-39226
{
"cve_id": "CVE-2021-39226",
"title": "Snapshot authentication bypass in grafana",
"affected_vendor": "grafana",
"affected_product": "grafana",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 9.8,
"epss_score": 0.99888,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}