{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-39226","id":"CVE-2021-39226","title":"Snapshot authentication bypass in grafana","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","descriptionLong":"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.","published":"2021-10-05T17:30:11.000Z","updated":"2026-10-20T10:54:53.663673099Z","reserved":"2021-08-16T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"critical","products":["grafana"],"affectedProducts":[{"vendor":"grafana","product":"grafana","defaultStatus":null,"versions":[{"status":"affected","version":">= 8.0.0, < 8.1.6"},{"status":"affected","version":"< 7.5.11"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":["<7.5.11",">=8.0.0 <8.1.6"],"fixed":["7.5.11","8.1.6"],"advisory":"GHSA-69j6-29vr-p3j9"}],"cwes":["CWE-287","CWE-862"],"aliases":["BIT-grafana-2021-39226","GHSA-69j6-29vr-p3j9"],"references":[{"url":"https://github.com/grafana/grafana/security/advisories/GHSA-69j6-29vr-p3j9","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Mitigation","Vendor Advisory","evidence","web"]},{"url":"https://github.com/grafana/grafana/commit/2d456a6375855364d098ede379438bf7f0667269","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11/","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6/","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/10/05/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Broken Link","web"]},{"url":"https://security.netapp.com/advisory/ntap-20211029-0008/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Broken Link","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-39226","tags":["government-resource","US Government Resource","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39226","tags":["advisory"]},{"url":"https://github.com/grafana/grafana","tags":["package"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-7-5-11","tags":["web"]},{"url":"https://grafana.com/docs/grafana/latest/release-notes/release-notes-8-1-6","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DCKBFUSY6V4VU5AQUYWKISREZX5NLQJT","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E6ANHRDBXQT6TURLP2THM26ZPDINFBEG","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20211029-0008","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2022-08-25","kevDue":"2022-09-15","kevEntry":{"cveID":"CVE-2021-39226","vendorProject":"Grafana Labs","product":"Grafana","vulnerabilityName":"Grafana Authentication Bypass Vulnerability","dateAdded":"2022-08-25","shortDescription":"Grafana contains an authentication bypass vulnerability that allows authenticated and unauthenticated users to view and delete all snapshot data, potentially resulting in complete snapshot data loss.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-09-15","knownRansomwareCampaignUse":"Unknown","notes":"https://grafana.com/blog/2021/10/05/grafana-7.5.11-and-8.1.6-released-with-critical-security-fix/; https://nvd.nist.gov/vuln/detail/CVE-2021-39226","cwes":["CWE-287"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.99933,"epssPercentile":0.99971,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-39226","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39226","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-39226","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-69j6-29vr-p3j9","ok":true,"note":"GHSA-69j6-29vr-p3j9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2022-08-25"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-39226","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["grafana"],"critical":["Exploited in the wild (CISA KEV)","CVSS 9.8 in a widely used technology","EPSS 100% with CVSS 9.8"],"attention":null}