CVE-2021-39226: Snapshot authentication bypass in grafana
Noroxi assessment
Priority: Now (action score 89/100)
- CISA has confirmed exploitation in the wild (Aug 25, 2022). Remediation deadline for US federal agencies: Sep 15, 2022.
- A ready-made attack module is public (Nuclei); exploiting it takes no special expertise.
- Probability of exploitation in the next 30 days: 99.9% (FIRST EPSS); higher than 99.9% of all records.
- 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.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: github.com/grafana/grafana (Go) 8.1.6, 7.5.11; grafana (openSUSE:Leap 15.3) 8.3.5-150200.3.21.1, 7.5.12-3.18.1; prometheus-postgres_exporter (openSUSE:Leap 15.3) 0.10.0-150000.1.3.1.
- Severity is disputed: the assigning authority (CNA) scores it 9.8, NVD 7.3.
Patch today or shut off access. Upgrade to github.com/grafana/grafana (Go) 8.1.6, 7.5.11; grafana (openSUSE:Leap 15.3) 8.3.5-150200.3.21.1, 7.5.12-3.18.1; prometheus-postgres_exporter (openSUSE:Leap 15.3) 0.10.0-150000.1.3.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · CISA KEV · FIRST EPSS
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% · 99th percentile
- CWE
- CWE-287
Report tools
Action score
89
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 US federal agencies: Sep 15, 2022.
Get told when this record changes
- In CISA KEV: exploitation in the wild confirmed
- Weaponized exploit exists
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| grafana | grafana | cpe:2.3:a:grafana:grafana |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
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
Affected versions · NVD (4)
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
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 8.3.5-150200.3.21.1 | 8.3.5-150200.3.21.1 |
| openSUSE:Leap 15.3 | grafana | before 7.5.12-3.18.1 | 7.5.12-3.18.1 |
| openSUSE:Leap 15.3 | prometheus-postgres_exporter | before 0.10.0-150000.1.3.1 | 0.10.0-150000.1.3.1 |
| openSUSE:Leap 15.3 | rhnlib | before 4.2.6-150000.3.34.1 | 4.2.6-150000.3.34.1 |
| openSUSE:Leap 15.3 | spacecmd | before 4.2.16-150000.3.77.1 | 4.2.16-150000.3.77.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 |
+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 execution66This week
- CVE-2020-13379The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue.62This week
Published before and after this one in the same product
- ← EarlierCVE-2021-28147Mar 22, 2021 · The team sync HTTP API in Grafana Enterprise 6.x before 6.7.6, 7.x before 7.3.10, and 7.4.x before 7.4.5 has an Incorrect Access Control…26Monitor
- ← EarlierCVE-2021-28148Mar 22, 2021 · One of the usage insights HTTP API endpoints in Grafana Enterprise 6.x before 6.7.6, 7.x before 7.3.10, and 7.4.x before 7.4.5 is…31Monitor
- Later →CVE-2021-41174Nov 3, 2021 · XSS vulnerability allowing arbitrary JavaScript execution50Plan
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) |
| opensuse:prometheus-postgres_exporter | 0.10.0-150000.1.3.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:rhnlib | 4.2.6-150000.3.34.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:spacecmd | 4.2.16-150000.3.77.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) |
+2
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
- TodayNov 14, 2026+1865 d
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
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.
Not on record for this CVE: EPSS history · researcher credit.
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 middleware
app.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
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- 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.