Known exploited vulnerability
CVE-2021-39226
The short answer
CVE-2021-39226 affects grafana grafana and is rated high (CVSS 7.3). CISA added it to the Known Exploited Vulnerabilities catalog on 2022-08-25: attackers are using it, so patch it first. Fixed versions are published for github.com/grafana/grafana (7.5.11, 8.1.6).
What it is
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
7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Exploited (CISA KEV)
Yes, since Aug 25, 2022
Federal due date Sep 15, 2022
EPSS, next 30 days
100%
Higher than 100% of scored CVEs
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- Low
What CISA says to do
Apply updates per vendor instructions.
Affected packages and fixed versions
| Package | Ecosystem | Fixed in | Advisory |
|---|---|---|---|
| github.com/grafana/grafana | Go | 7.5.11, 8.1.6 | GHSA-69j6-29vr-p3j9 |
Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.
Affected products
grafana. NVD's record lists the exact affected versions.
References
- github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 Patch
- github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 ExploitMitigationVendor 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
- github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269 Patch
- github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9 ExploitMitigationVendor 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
Questions
Is CVE-2021-39226 being exploited?
Yes. CISA added CVE-2021-39226 to its Known Exploited Vulnerabilities catalog on 2022-08-25, with a federal remediation due date of 2022-09-15.
How do I fix CVE-2021-39226?
Upgrade to a fixed version: github.com/grafana/grafana (Go) 7.5.11 or 8.1.6. CISA's required action: Apply updates per vendor instructions.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.
Related
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
Grafana Labs exploited vulnerabilities
Everything CISA lists as exploited for Grafana Labs.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.