cve.bz

CVE-2021-39226 Grafana Authentication Bypass Vulnerability

7.3 highKEVExploit referenceEPSS >99.9%Fix available

High (7.3) in Grafana Labs Grafana. In CISA KEV since 2022-08-25. EPSS >99.9% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/grafana/grafana 7.5.11, 8.1.6.

On this page
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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
>99.9% (unchanged from >99.9% a week ago; >99.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-08-25, due 2022-09-15
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-862 Missing Authorization
CWE-287 Improper Authentication
OWASP Top 10
A01:2025 Broken Access Control, A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-39226 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-39226?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-39226?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-39226 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
grafana:grafanabefore 7.5.11
grafana:grafanafrom 8.0.0 before 8.1.6
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-69j6-29vr-p3j9Gogithub.com/grafana/grafana<7.5.117.5.11
GHSA-69j6-29vr-p3j9Gogithub.com/grafana/grafana>=8.0.0 <8.1.68.1.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgrafanano fix listedUBUNTU-CVE-2021-39226
Red Hatenterprise_linux:8::appstreamgrafana, grafana-debuginfo0:7.3.6-3.el8_4RHSA-2021:3771
Red Hatrhel_eus:8.1::appstreamgrafana, grafana-loki, grafana-mssql and 11 more0:6.2.2-7.el8_1RHSA-2021:3769
Red Hatrhel_eus:8.2::appstreamgrafana, grafana-loki, grafana-mssql and 11 more0:6.3.6-3.el8_2RHSA-2021:3770
SUSEEnterprise Storage 6grafana7.5.12-150100.3.9.1SUSE-SU-2022:3425-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.48.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 10 moregolang-github-prometheus-node_exporter1.3.0-1.15.3SUSE-SU-2022:2134-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1660773729.3789a6d-3.85.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cobbler8.0+git.1660773402.d845a45-3.47.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-heat9.0.8~dev22-12.45.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-murano4.0.2~dev3-12.38.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8grafana6.7.4-4.23.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8openstack-heat-templates0.0.0+git.1654529662.75fa04a-3.27.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8openstack-murano, openstack-murano-doc4.0.2~dev3-3.12.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Django1.11.29-3.42.1SUSE-SU-2022:3338-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8rabbitmq-server3.6.16-3.13.1SUSE-SU-2022:3338-1
72 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3grafana7.5.12-3.18.1openSUSE-SU-2022:0140-1
openSUSELeap 15.3prometheus-postgres_exporter0.10.0-150000.1.3.1SUSE-SU-2022:1396-1
openSUSELeap 15.3rhnlib4.2.6-150000.3.34.1SUSE-SU-2022:1396-1
openSUSELeap 15.3spacecmd4.2.16-150000.3.77.1SUSE-SU-2022:1396-1
openSUSELeap 15.3, Leap 15.4grafana8.3.5-150200.3.21.1SUSE-FU-2022:1419-1
openSUSETumbleweedgrafana7.5.11-3.1openSUSE-SU-2024:11651-1
Rocky Linux8grafana0:7.3.6-3.el8_4RLSA-2021:3771

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

In OpenShift Container Platform (OCP), Red Hat Advanced Cluster Management for Kubernetes (RHACM), and OpenShift ServiceMesh (OSSM) the grafana components are protected by OpenShift OAuth that reduces the impact of this flaw to Moderate. Access to the grafana panel where snapshots can be created requires admin permissions. Additionally snapshots by default are not available to unauthenticated users and don't contain sensitive data.

Since snapshots by default are not available to unauthenticated users and don't contain sensitive data, impact has been lowered for Red Hat Gluster Storage 3.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8grafana-0:7.3.6-3.el8_4Fixed 2021-10-12RHSA-2021:3771
Red Hat Enterprise Linux 8.1 Extended Update Supportgrafana-0:6.2.2-7.el8_1Fixed 2021-10-12RHSA-2021:3769
Red Hat Enterprise Linux 8.2 Extended Update Supportgrafana-0:6.3.6-3.el8_2Fixed 2021-10-12RHSA-2021:3770
Red Hat OpenShift Container Platform 3.11openshift3/grafana:v3.11.784-1.g423963fFixed 2022-09-07RHSA-2022:6252
Red Hat OpenShift Container Platform 4.10openshift4/ose-grafana:v4.10.0-202202160023.p0.g48aec35.assembly.streamFixed 2022-03-10RHSA-2022:0056
Red Hat OpenShift Container Platform 4.6openshift4/ose-grafana:v4.6.0-202208310224.p0.gcf170c0.assembly.streamFixed 2022-09-09RHSA-2022:6262
Red Hat OpenShift Container Platform 4.7openshift4/ose-grafana:v4.7.0-202208310205.p0.g613acad.assembly.streamFixed 2022-09-13RHSA-2022:6322
Red Hat OpenShift Container Platform 4.8openshift4/ose-grafana:v4.8.0-202208311019.p0.gf98b47f.assembly.streamFixed 2022-09-14RHSA-2022:6308
Red Hat OpenShift Container Platform 4.9openshift4/ose-grafana:v4.9.0-202208311003.p0.g3b7bed6.assembly.streamFixed 2022-09-12RHSA-2022:6317
OpenShift Service Mesh 1servicemesh-grafanaOut of support scope
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
Red Hat Advanced Cluster Management for Kubernetes 2grafanaNot affected
Red Hat Ceph Storage 2grafanaAffected
Red Hat Ceph Storage 3grafanaAffected
Red Hat Ceph Storage 3grafana-containerAffected
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Storage 3grafanaWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-39226.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High
  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-287.

References

Check your stackJSON