CVE-2021-39226: Grafana is an open source data visualization platform.
High CVSS 7.3
- CVE id
- CVE-2021-39226
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Grafana Runtimes and servers |
< 7.5.11 >= 8.0.0, < 8.1.6 |
7.5.11, 8.1.6 |
How to fix it
Upgrade Grafana to the fixed release of the line you run: 7.5.11, 8.1.6.
grafana-server -v
- Upgrade Grafana (the grafana/grafana image tag or packages) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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 "publicmode" 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 "publicmode" 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.
References
- CVE-2021-39226 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-39226
- Web: https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269
- Web: https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9
- Web: https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/
- Web: https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/
- Web: https://security.netapp.com/advisory/ntap-20211029-0008/
- Web: https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269
- Web: https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9
- Web: https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/
- Web: https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/
- Web: https://security.netapp.com/advisory/ntap-20211029-0008/
- Web: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.