CVE-2021-39226
HighExploitedPublic exploitAuthentication bypass for viewing and deletions of snapshots
Published Oct 5, 2021 · Updated Sep 10, 2026 · Also known as BIT-grafana-2021-39226, GHSA-69j6-29vr-p3j9, SUSE-SU-2022:0138-1, SUSE-SU-2022:0139-1, SUSE-SU-2022:3425-1, UBUNTU-CVE-2021-39226
Key Facts
Patch immediately- CVE-2021-39226 is a high-severity vulnerability (CVSS 7.3 v3.1) affecting Grafana, Fedora (Fedoraproject), github.com/grafana/grafana (go) and 22 more products.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Aug 19, 2022. Public exploit code is available.
- EPSS estimates a 100% probability of exploitation in the next 30 days.
- Fixed versions are available, including ardana-ansible 8.0+git.1660773729.3789a6d-3.85.1, ardana-ansible 9.0+git.1660748476.c118d23-3.32.1, ardana-cobbler 8.0+git.1660773402.d845a45-3.47.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v3.1
7.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS (30-day exploit likelihood)
100%
Higher than 99.9% of all scored CVEs
Exploited in the wild
Yes
4 catalog listings
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2021-39226 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | Aug 25, 2022 | Sep 15, 2022 | Not reported |
| Industry KEV feed | Aug 19, 2022 | Sep 15, 2022 | Not reported |
| CIRCL KEV | Aug 25, 2022 | Sep 15, 2022 | Not reported |
| ENISA EUVD | Aug 25, 2022 | n/a | Not reported |
Required action: Apply updates per vendor instructions.
Affected Products
351 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GrafanaGrafana | >= >= 8.0.0, < 8.1.6 | 7.5.11 |
| FedoraFedoraproject | 34, 35 | n/a |
| github.com/grafana/grafanago | See advisory | 7.5.11 |
| Grafana snapshot servicego | See advisory | n/a |
| prometheus-postgres_exportersuse | See advisory | 0.10.0-150000.1.3.1 |
Patched Releases
ardana-ansible
8.0+git.1660773729.3789a6d-3.85.1, 9.0+git.1660748476.c118d23-3.32.1
ardana-cobbler
8.0+git.1660773402.d845a45-3.47.1, 9.0+git.1660747489.119efcd-3.19.1
ardana-tempest
9.0+git.1651855288.a2341ad-3.22.1
github.com/grafana/grafana
7.5.11, 8.1.6
golang-github-boynux-squid_exporter
1.6-4.9.2
golang-github-lusitaniae-apache_exporter
1.0.0-4.12.4
golang-github-prometheus-alertmanager
0.23.0-1.12.3, 0.26.0-4.12.4
golang-github-prometheus-node_exporter
1.3.0-1.15.3, 1.5.0-4.15.4
golang-github-prometheus-prometheus
2.45.0-4.33.3
golang-github-prometheus-promu
0.14.0-4.12.2
golang-github-QubitProducts-exporter_exporter
0.4.0-1.6.1, 0.4.0-4.6.2
Grafana
0:7.3.6-3.el8_4, 6.7.4-3.29.1, 6.7.4-4.23.1, 7.3.6-3.el8_4, 7.5.11, 7.5.11-3.1, 7.5.12-1.27.1, 7.5.12-150100.3.9.1, 7.5.12-3.18.1, 8.1.6, 8.1.6-1, 8.3.5-1.30.3, 8.3.5-150000.1.30.1, 8.3.5-150200.3.21.1, 9.5.8-4.21.2
kiwi-desc-saltboot
0.1.1687520761.cefb248-4.15.2
mgr-cfg
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-actions
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-client
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-cfg-management
4.2.8-150000.1.24.1, 4.3.6-1.27.4
mgr-custom-info
4.3.3-1.18.1
mgr-daemon
4.3.4-1.32.3
mgr-osad
4.2.8-150000.1.36.1, 4.3.6-1.39.4
mgr-push
4.2.5-150000.1.18.2, 4.3.4-1.21.4, 5.0.1-4.21.4
mgr-virtualization
4.2.4-150000.1.26.1, 4.3.5-1.29.3
mgr-virtualization-host
4.2.4-150000.1.26.1, 4.3.5-1.29.3
openshift3/grafana:v3.11.784
1.g423963f
openshift4/ose-grafana:v4.10.0
202202160023.p0.g48aec35.assembly.stream
Timeline
Publicly disclosed
Oct 5, 2021
Added to Industry KEV feed
Aug 19, 2022
Added to CISA KEV
Aug 25, 2022
Added to CIRCL KEV
Aug 25, 2022
Added to ENISA EUVD
Aug 25, 2022
Last updated
Sep 10, 2026
Weakness Type
- CWE-287 Improper Authentication
- CWE-639 Authorization Bypass Through User-Controlled Key
- CWE-862 Missing Authorization
References
- advisoryRHSA-2021:3769
- advisoryRHSA-2021:3770
- advisoryRHSA-2021:3771
- advisoryRHSA-2022:0056
- advisoryRHSA-2022:6252
FAQ
Common Questions.
Grafana is an open source data visualization platform.
Affected: Grafana versions >= >= 8.0.0, < 8.1.6; Fedora (Fedoraproject) versions 34, 35; github.com/grafana/grafana (go), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Aug 19, 2022.
Yes. It was added on Aug 25, 2022 with a federal remediation due date of Sep 15, 2022.
Public exploit code is available.
Fixed versions are available, including ardana-ansible 8.0+git.1660773729.3789a6d-3.85.1, ardana-ansible 9.0+git.1660748476.c118d23-3.32.1, ardana-cobbler 8.0+git.1660773402.d845a45-3.47.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2021-39226 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo