CVE-2021-39226Grafana Authentication Bypass
Authentication bypass for viewing and deletions of snapshots
Published Oct 5, 2021 · Updated Oct 20, 2026 · Also known as BIT-grafana-2021-39226, ECHO-45b3-e762-6f5e, GHSA-69j6-29vr-p3j9, OESA-2022-1929, SUSE-SU-2022:0138-1, SUSE-SU-2022:0139-1, SUSE-SU-2022:3425-1, UBUNTU-CVE-2021-39226, openSUSE-SU-2022:0140-1, openSUSE-SU-2024:11651-1
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. A public exploit is reported by tracking sources, but no code link is listed yet.
- 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.
Scores
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
Exploit maturity
Exploited (KEV)
ATLAS score
69/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Aug 25, 2022
324 days after publication
Federal due date
Sep 15, 2022
Overdue
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
13
Reports of active use
Required action (CISA): Apply updates per vendor instructions.
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-39226
- advisoryhttps://ubuntu.com/security/CVE-2021-39226
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2021-39226
- advisoryRHSA-2021:3769
- advisoryRHSA-2021:3770
- advisoryRHSA-2021:3771
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
355 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-1.oe1, 7.5.11-3.1, 7.5.12-1.27.1, 7.5.12-150100.3.9.1, 7.5.12-3.18.1, 7.5.15-3.oe1, 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
Oct 20, 2026
Weakness Type
- CWE-287 Improper Authentication
- CWE-639 Authorization Bypass Through User-Controlled Key
- CWE-862 Missing Authorization
References
- advisorynvd.nist.gov · CVE-2021-39226
- advisoryubuntu.com · CVE-2021-39226
- advisorycve.org · CVERecord
- advisoryRHSA-2021:3769
- advisoryRHSA-2021:3770
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.
A public exploit is reported by tracking sources, but no code link is listed yet.
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 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo