Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2021-39226: Snapshot authentication bypass in grafana

HighCVSS 7.3 · v3.1KEVWeaponized Fix available

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.

Published
Oct 5, 2021
Updated
Jun 17, 2026
EPSS
99.9% · 99th percentile

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

Follow CVE-2021-39226

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi 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 help

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

VendorProduct
grafanagrafana
fedoraprojectfedora

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 8.3.5-150200.3.21.18.3.5-150200.3.21.1
openSUSE:Leap 15.3grafanabefore 7.5.12-3.18.17.5.12-3.18.1
openSUSE:Leap 15.3prometheus-postgres_exporterbefore 0.10.0-150000.1.3.10.10.0-150000.1.3.1
openSUSE:Leap 15.3rhnlibbefore 4.2.6-150000.3.34.14.2.6-150000.3.34.1
openSUSE:Leap 15.3spacecmdbefore 4.2.16-150000.3.77.14.2.16-150000.3.77.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

+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
    66This 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 execution
    50Plan

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)
opensuse:prometheus-postgres_exporter0.10.0-150000.1.3.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:rhnlib4.2.6-150000.3.34.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:spacecmd4.2.16-150000.3.77.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)

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

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

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

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);

References

All records