CVE-2021-39226
published critical CVSS 3.1 · 9.8Snapshot authentication bypass in grafana
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| grafana | — | grafana>= 8.0.0, < 8.1.6 · < 7.5.11 | Affected | Not stated | GitHub_M |
| Oracle Linux | 8 | grafanaaarch64 | Advisory build | 0:7.3.6-3.el8_4 | ELSA-2021-3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanaaarch64 | Advisory build | 7.5.12-3.18.1 | OPENSUSE-SU-2022:0140-1 |
| Oracle Linux | 8 | grafanax86_64 | Advisory build | 0:7.3.6-3.el8_4 | ELSA-2021-3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafanaaarch64 | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafanappc64le | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafanas390x | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafanasrc | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafanax86_64 | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanappc64le | Advisory build | 7.5.12-3.18.1 | OPENSUSE-SU-2022:0140-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanas390x | Advisory build | 7.5.12-3.18.1 | OPENSUSE-SU-2022:0140-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | grafanax86_64 | Advisory build | 7.5.12-3.18.1 | OPENSUSE-SU-2022:0140-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanaaarch64 | Advisory build | 7.5.11-3.1 | OPENSUSE-SU-2024:11651-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanappc64le | Advisory build | 7.5.11-3.1 | OPENSUSE-SU-2024:11651-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanas390x | Advisory build | 7.5.11-3.1 | OPENSUSE-SU-2024:11651-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | grafanax86_64 | Advisory build | 7.5.11-3.1 | OPENSUSE-SU-2024:11651-1 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitoraarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitoraarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitors390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitors390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-azure-monitorx86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchs390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchs390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-cloudwatchx86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoaarch64 | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfoppc64le | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfos390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfos390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfos390x | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfox86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfox86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-debuginfox86_64 | Advisory build | 7.3.6-3.el8_4 | RHSA-2021:3771 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchs390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchs390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-elasticsearchx86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphiteaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphiteaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphiteppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphiteppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphites390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphites390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphitex86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-graphitex86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbs390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbs390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-influxdbx86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokiaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokiaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokippc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokippc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokis390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokis390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokix86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-lokix86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqls390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqls390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mssqlx86_64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqlaarch64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqlaarch64 | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqlppc64le | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqlppc64le | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqls390x | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqls390x | Advisory build | 6.3.6-3.el8_2 | RHSA-2021:3770 |
| Red Hat Enterprise Linux | RHEL-8 | grafana-mysqlx86_64 | Advisory build | 6.2.2-7.el8_1 | RHSA-2021:3769 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| grafana | grafana | >= 8.0.0, < 8.1.6 (affected)< 7.5.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-287 CWE-287: Improper Authentication
References
9- [oss-security] 20211005 CVE-2021-39226 Grafana snapshot authentication bypass http://www.openwall.com/lists/oss-security/2021/10/05/4
- https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269
- https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/
- https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/
- FEDORA-2021-01588ab0bf https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/
- FEDORA-2021-dd83dc8b0b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/
- https://security.netapp.com/advisory/ntap-20211029-0008/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226
Provider assertions
3GitHub_M · cna
Snapshot authentication bypass in grafana
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8c90925099c164137358cac99ba4ef1f2d5e5effec159b70bd64cb7e1871ebe4
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record