{"id":"CVE-2021-39226","kind":"vulnerability","aliases":["CVE-2021-39226"],"related":[],"title":"Grafana is an open source data visualization platform","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.","summary":"Grafana has an authentication bypass that exposes dashboard snapshot data without proper access checks. An attacker can view and delete all stored snapshots, which can wipe that data entirely.","severity":"critical","cvss":9.8,"epss":0.99933,"exploited":true,"exploited_at":"2022-08-25T00:00:00+00:00","products":[{"name":"Grafana Labs Grafana","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"grafana","fixed":["7.5.11"],"affected":"< 7.5.11","ecosystem":"vendor"},{"name":"grafana","fixed":["8.1.6"],"affected":">= 8.0.0, < 8.1.6","ecosystem":"vendor"},{"name":"fedoraproject fedora","fixed":[],"affected":"= 34","ecosystem":"vendor"},{"name":"fedoraproject fedora","fixed":[],"affected":"= 35","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["exploited","grafana","runtime","self-hosted"],"not_affected_if":["snapshots-unused"],"how_to_check":null,"fix":"Upgrade Grafana per vendor instructions; the sources do not name the fixed version.","status":"open","published_at":"2021-10-05T18:15:07+00:00","first_seen_at":"2026-10-23T19:11:52+00:00","triaged_at":"2026-10-23T21:10:55+00:00","updated_at":"2026-10-23T22:29:04+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-10-23T21:10:55Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Grafana per vendor instructions; the sources do not name the fixed version.","reach":"internet","impact":"medium","summary":"Grafana has an authentication bypass that exposes dashboard snapshot data without proper access checks. An attacker can view and delete all stored snapshots, which can wipe that data entirely.","category":"runtime","who_cares":["grafana","self-hosted"],"confidence":0.6,"needs_auth":"no","worst_case":"Unauthenticated attackers view and delete all dashboard snapshot data","analyst_note":"Find the fixed Grafana version and a snapshot-exposure check in Grafana's CVE-2021-39226 advisory; no advisory URL is in the sources.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["snapshots-unused"],"user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000931,"input_tokens":2842,"output_tokens":1294,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2021':10A,13A '-39226':11A,14A '/api/snapshots':93C,155C,213C,220C '/api/snapshots-delete':128C,158C,215C '/dashboard/snapshot':90C,217C '7.5.11':190C '8.1.6':188C 'abl':75C,113C,140C 'access':42B,86C,124C,151C,208C 'affect':68C 'attack':45B 'authent':33B,72C,137C 'block':207C 'bypass':34B 'cannot':196C 'check':43B 'combin':161C 'complet':168C,177C 'configur':100C 'cve':9A,12A 'dashboard':37B 'data':6A,39B,57B,64C,173C,179C 'databas':83C,121C,148C 'default':107C 'delet':49B,115C,142C,163C 'deletekey':129C,159C,216C 'disabl':230C 'effect':233C 'enabl':166C 'entir':58B 'exploit':24B 'expos':36B 'fals':109C 'fedora':21A,23A 'fedoraproject':20A,22A 'function':226C 'grafana':1A,15A,17A,18A,19A,25B,30B,59C 'host':29B 'issu':182C 'key':84C,91C,94C,122C,149C,156C,214C,218C,221C 'labs':16A 'liter':88C,126C,153C,211C 'loss':180C 'lowest':82C,120C,147C 'mode':99C,135C 'normal':225C 'open':4A,62C 'path':89C,127C,154C,212C 'platform':8A,66C 'proper':41B 'proxi':203C 'public':98C,134C 'reason':194C 'regardless':130C 'resolv':185C 'result':175C 'revers':202C 'runtim':26B 'self':28B 'self-host':27B 'set':101C,103C,136C 'side':232C 'similar':205C 'snapshot':38B,52B,79C,97C,117C,133C,144C,172C,178C 'sourc':5A,63C 'store':51B 'true':105C 'unauthent':70C,110C 'upgrad':197C 'use':200C 'user':73C,111C,138C 'version':69C,187C 'view':47B,77C,165C 'visual':7A,65C 'vs':106C 'walk':169C 'wipe':55B 'without':40B,231C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2021-10-05T18:15:07+00:00","kev":{"dateAdded":"2022-08-25","dueDate":"2022-09-15","requiredAction":"Apply updates per vendor instructions.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2021-39226","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-39226","severity":null,"published_at":"2022-08-25T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:52+00:00","fetched_at":"2026-10-25T20:35:35+00:00","note":null},{"source":"epss","external_id":"CVE-2021-39226","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-39226","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-23T19:13:45+00:00","fetched_at":"2026-10-23T19:13:45+00:00","note":null},{"source":"nvd","external_id":"CVE-2021-39226","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39226","severity":null,"published_at":"2021-10-05T18:15:07+00:00","modified_at":"2026-06-17T04:03:21+00:00","first_seen_at":"2026-10-23T22:29:04+00:00","fetched_at":"2026-10-23T22:29:04+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}