CVE-2021-39226Grafana Authentication Bypass Vulnerability
CVSS score
7.3
High
CVSS 3.1 from NVD
Exploit probability (EPSS)
99.9%
99.9% chance of exploitation in the next 30 days, higher than 100.0% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 25 Aug 2022.
US federal deadline to fix: 15 Sept 2022.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 25 Aug 2022.
US federal agencies must fix it by 15 Sept 2022. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running Grafana, fedoraproject Fedora and compare its version with the affected versions.
Update to a fixed version
- Update Grafana to 7.5.11, 8.1.6 or later, on the branch you run.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Affected products
| Affected products | Versions |
|---|---|
| Grafana Grafana | < 7.5.11 · ≥ 8.0.0, < 8.1.6 · >= 8.0.0, < 8.1.6 |
| fedoraproject Fedora | 34 · 35 |
Weakness
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2021-39226 being exploited?
Yes. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on 25 Aug 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 99.9% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2021-39226?
CVE-2021-39226 has a CVSS 3.1 base score of 7.3 (high).
Which versions are affected?
Grafana Grafana (< 7.5.11; ≥ 8.0.0, < 8.1.6; >= 8.0.0, < 8.1.6), Fedoraproject Fedora (34; 35)
Is there a patch for CVE-2021-39226?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269(Patch)
- github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9(Exploit, Mitigation, Vendor Advisory)
- www.openwall.com/lists/oss-security/2021/10/05/4(Mailing List, Third Party Advisory)
- grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/(Release Notes)
- grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/(Release Notes)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/(Broken Link)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/(Broken Link)
- security.netapp.com/advisory/ntap-20211029-0008/(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.