{"cve":"CVE-2021-39226","nvd":{"published":"2021-10-05T18:15:07.947","modified":"2026-06-17T04:03:21.130","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3},"cwes":["CWE-862","CWE-287"],"references":["http://www.openwall.com/lists/oss-security/2021/10/05/4","https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269","https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9","https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/","https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/"],"products":["fedoraproject:fedora","grafana:grafana"],"source":"nvd","synced_at":"2026-10-19T21:23:41.316049955+00:00"},"epss":{"cve":"CVE-2021-39226","score":0.99933,"percentile":0.9997,"date":"2026-10-31"},"kev":{"cve":"CVE-2021-39226","date_added":"2022-08-25","due_date":"2022-09-15","vendor":"Grafana Labs","product":"Grafana","known_ransomware":false},"osv":[{"id":"GHSA-69j6-29vr-p3j9","url":"https://osv.dev/vulnerability/GHSA-69j6-29vr-p3j9","summary":"Authentication bypass for viewing and deletions of snapshots","modified":"2026-07-08T06:29:56.330479904Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":["<7.5.11"],"fixed":["7.5.11"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=8.0.0 <8.1.6"],"fixed":["8.1.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}