Skip to content
Noroxi
CVE-2021-39226· NVD / CVE Program· CNA GitHub_M

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.

HighCVSS 7.3 · v3.1KEVWeaponized Fix available
Published
Oct 5, 2021
Updated
Jun 17, 2026
EPSS
99.9% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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

VendorProduct
grafanagrafana
fedoraprojectfedora

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.

EcosystemPackageAffected rangeFix
Gogithub.com/grafana/grafanafrom 8.0.0 · before 8.1.68.1.6
Gogithub.com/grafana/grafanabefore 7.5.117.5.11
openSUSE:Leap 15.3grafanabefore 7.5.12-3.18.17.5.12-3.18.1
openSUSE:Leap 15.3grafanabefore 8.3.5-150200.3.21.18.3.5-150200.3.21.1
openSUSE:Tumbleweedgrafanabefore 7.5.11-3.17.5.11-3.1
Red Hat:enterprise_linux:8::appstreamgrafanabefore 0:7.3.6-3.el8_40:7.3.6-3.el8_4
Red Hat:enterprise_linux:8::appstreamgrafana-debuginfobefore 0:7.3.6-3.el8_40:7.3.6-3.el8_4
Red Hat:rhel_eus:8.1::appstreamgrafanabefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-azure-monitorbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-cloudwatchbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-debuginfobefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-elasticsearchbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-graphitebefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-influxdbbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-lokibefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-mssqlbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-mysqlbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-opentsdbbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-postgresbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-prometheusbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.1::appstreamgrafana-stackdriverbefore 0:6.2.2-7.el8_10:6.2.2-7.el8_1
Red Hat:rhel_eus:8.2::appstreamgrafanabefore 0:6.3.6-3.el8_20:6.3.6-3.el8_2
Red Hat:rhel_eus:8.2::appstreamgrafana-azure-monitorbefore 0:6.3.6-3.el8_20:6.3.6-3.el8_2
Red Hat:rhel_eus:8.2::appstreamgrafana-cloudwatchbefore 0:6.3.6-3.el8_20:6.3.6-3.el8_2

+96

Other highest-scoring records for the same primary product.

  • CVE-2021-43798Grafana path traversalKEV
    87Now
  • CVE-2024-9264Grafana SQL Expressions allow for remote code execution
    65This 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 Alerting
    55Plan
  • 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 / packageFixed versionSource
Go:github.com/grafana/grafana7.5.11Package registry (OSV)
Go:github.com/grafana/grafana8.1.6Package registry (OSV)
openSUSE:grafana8.3.5-150200.3.21.1 · openSUSE:Leap 15.3Package registry (OSV)
Red Hat:grafana0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-azure-monitor0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-cloudwatch0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-debuginfo0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-elasticsearch0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-graphite0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-influxdb0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-loki0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-mssql0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-mysql0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-opentsdb0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Red Hat:grafana-postgres0:6.2.2-7.el8_1 · Red Hat:rhel_eus:8.1::appstreamPackage registry (OSV)
Rocky Linux:grafana0:7.3.6-3.el8_4 · Rocky Linux:8Package registry (OSV)
SUSE:grafana7.5.12-1.27.1 · SUSE:Manager Client Tools 12Package registry (OSV)
SUSE:grafana8.3.5-150000.1.30.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:mgr-cfg4.2.8-150000.1.24.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:mgr-osad4.2.8-150000.1.36.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:mgr-push4.2.5-150000.1.18.2 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:mgr-virtualization4.2.4-150000.1.26.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:prometheus-postgres_exporter0.10.0-150000.1.3.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:rhnlib4.2.6-150000.3.34.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:spacecmd4.2.16-150000.3.77.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:spacewalk-client-tools4.2.18-150000.3.59.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:spacewalk-koan4.2.6-150000.3.27.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:spacewalk-oscap4.2.4-150000.3.18.1 · SUSE:Manager Client Tools 15Package registry (OSV)
SUSE:suseRegisterInfo4.2.6-150000.3.21.1 · SUSE:Manager Client Tools 15Package 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.

Public exploit evidence
SourceKindDate
Nuclei detection templateNuclei 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.

  1. Published
  2. CISA KEV+323 d
  3. TodaySep 29, 2026+1820 d
EPSS, last 120 days

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.

Finders, 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 Grafana
    34Monitor
  • CVE-2021-4381566 days apartGrafana directory traversal for `.cvs` files
    18Monitor

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

CVSS 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.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
app.use("/admin", requireSession, adminRouter);
// Route added later skips the middlewareapp.post("/admin-api/config", updateConfig);

Fixed

ts
const admin = express.Router();admin.use(requireSession, requireRole("admin"));
admin.post("/config", updateConfig);app.use("/admin", admin);

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 help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records