Snapshot authentication bypass in grafana
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.
- BDU:2023-01019
- GHSA-69j6-29vr-p3j9
- openSUSE-SU-2022:0140-1
- openSUSE-SU-2024:11651-1
- RHSA-2021:3769
- RHSA-2021:3770
- RHSA-2021:3771
- RLSA-2021:3771
- SUSE-FU-2022:1419-1
- SUSE-SU-2022:0138-1
- SUSE-SU-2022:0139-1
- SUSE-SU-2022:1396-1
- SUSE-SU-2022:2134-1
- SUSE-SU-2022:3338-1
- SUSE-SU-2022:3339-1
- SUSE-SU-2022:3425-1
- SUSE-SU-2024:0191-1
- Published
- Oct 5, 2021
- Updated
- Jun 17, 2026
- EPSS
- 99.9% · 100th percentile
- CWE
- CWE-287
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
89
Now
Patch today or shut off access.
- CVSS
- 29 / 40 · 7.3 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 30 / 30 · 99.9%
CISA SSVC decision
- Exploitation
- active
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.3
- CNA · GitHub_M
- 9.8
- 2.5 point gap
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Aug 25, 2022. That signals real attacks, not theory.
Remediation deadline for government agencies: Sep 15, 2022.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| grafana | grafana | cpe:2.3:a:grafana:grafana |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- fedoraproject fedora35
- grafana grafanabefore 7.5.11
- grafana grafana8.0.0 and later · before 8.1.6
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
grafana grafana
- >= 8.0.0, < 8.1.6, < 7.5.11affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Go | github.com/grafana/grafana | from 8.0.0 · before 8.1.6 | 8.1.6 |
| Go | github.com/grafana/grafana | before 7.5.11 | 7.5.11 |
| openSUSE:Leap 15.3 | grafana | before 7.5.12-3.18.1 | 7.5.12-3.18.1 |
| openSUSE:Leap 15.3 | grafana | before 8.3.5-150200.3.21.1 | 8.3.5-150200.3.21.1 |
| openSUSE:Tumbleweed | grafana | before 7.5.11-3.1 | 7.5.11-3.1 |
| Red Hat:enterprise_linux:8::appstream | grafana | before 0:7.3.6-3.el8_4 | 0:7.3.6-3.el8_4 |
| Red Hat:enterprise_linux:8::appstream | grafana-debuginfo | before 0:7.3.6-3.el8_4 | 0:7.3.6-3.el8_4 |
| Red Hat:rhel_eus:8.1::appstream | grafana | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-azure-monitor | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-cloudwatch | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-debuginfo | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-elasticsearch | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-graphite | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-influxdb | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-loki | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-mssql | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-mysql | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-opentsdb | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-postgres | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-prometheus | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.1::appstream | grafana-stackdriver | before 0:6.2.2-7.el8_1 | 0:6.2.2-7.el8_1 |
| Red Hat:rhel_eus:8.2::appstream | grafana | before 0:6.3.6-3.el8_2 | 0:6.3.6-3.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | grafana-azure-monitor | before 0:6.3.6-3.el8_2 | 0:6.3.6-3.el8_2 |
| Red Hat:rhel_eus:8.2::appstream | grafana-cloudwatch | before 0:6.3.6-3.el8_2 | 0:6.3.6-3.el8_2 |
+96
Same product
grafana: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-43798Grafana path traversalKEV87Now
- CVE-2024-9264Grafana SQL Expressions allow for remote code execution65This week
- CVE-2020-13379The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue.62This week
- CVE-2018-15727Grafana 2.x, 3.x, and 4.x before 4.6.4 and 5.x before 5.2.3 allows authentication bypass because an attacker can generate a valid "remember 58Plan
- CVE-2022-31097Stored XSS in Grafana's Unified Alerting55Plan
- CVE-2022-26148An issue was discovered in Grafana through 7.3.4, when integrated with Zabbix.55Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Go:github.com/grafana/grafana | 7.5.11 | Package registry (OSV) |
| Go:github.com/grafana/grafana | 8.1.6 | Package registry (OSV) |
| openSUSE:grafana | 8.3.5-150200.3.21.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| Red Hat:grafana | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-azure-monitor | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-cloudwatch | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-debuginfo | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-elasticsearch | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-graphite | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-influxdb | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-loki | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-mssql | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-mysql | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-opentsdb | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Red Hat:grafana-postgres | 0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstream | Package registry (OSV) |
| Rocky Linux:grafana | 0:7.3.6-3.el8_4 · Rocky Linux:8 | Package registry (OSV) |
| SUSE:grafana | 7.5.12-1.27.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| SUSE:grafana | 8.3.5-150000.1.30.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:mgr-cfg | 4.2.8-150000.1.24.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:mgr-osad | 4.2.8-150000.1.36.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:mgr-push | 4.2.5-150000.1.18.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:mgr-virtualization | 4.2.4-150000.1.26.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:prometheus-postgres_exporter | 0.10.0-150000.1.3.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:rhnlib | 4.2.6-150000.3.34.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:spacecmd | 4.2.16-150000.3.77.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:spacewalk-client-tools | 4.2.18-150000.3.59.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:spacewalk-koan | 4.2.6-150000.3.27.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:spacewalk-oscap | 4.2.4-150000.3.18.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| SUSE:suseRegisterInfo | 4.2.6-150000.3.21.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Nuclei detection template ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Nuclei detection template | Nuclei template CVE-2021-39226 | — |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- CISA KEV+323 d
- TodaySep 29, 2026+1820 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
—
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
- CVE-2021-4381366 days apartDirectory Traversal in Grafana34Monitor
- CVE-2021-4381566 days apartGrafana directory traversal for `.cvs` files18Monitor
Bug bounty scope
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP) · grafana/grafana
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP)
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- Low
Weakness class (CWE)
CWE-287 · Improper AuthenticationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
nvd-primary
Root cause
Authentication is added route by route instead of being enforced in one place. When a route added later bypasses the shared middleware, the session check never runs for it.
The bug in code
The whole CWE-287 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
app.use("/admin", requireSession, adminRouter);
// Route added later skips the middlewareapp.post("/admin-api/config", updateConfig);Fixed
const admin = express.Router();admin.use(requireSession, requireRole("admin"));
admin.post("/config", updateConfig);app.use("/admin", admin);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Authentication AbuseCAPEC-114Medium
- Authentication BypassCAPEC-115Medium
- Identity SpoofingCAPEC-151likelihood: Medium · Medium
- Fake the Source of DataCAPEC-194Medium
- Exploiting Trust in ClientCAPEC-22likelihood: High · High
- Utilizing REST's Trust in the System Resource to Obtain Sensitive DataCAPEC-57likelihood: Medium · Very High
- Session HijackingCAPEC-593likelihood: High · Very High
- Token ImpersonationCAPEC-633Medium
ATT&CK techniques
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.openwall.com/lists/oss-security/2021/10/05/4
- github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269
- grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/
- grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/
- security.netapp.com/advisory/ntap-20211029-0008/
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226
Vendor advisories and official records. Exploit/PoC links are deliberately left out.