{"answers":{"affected":"5 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2021-39226 in the wild since at least 25 Aug 2022.","fix":"Upgrade github.com/grafana/grafana to a fixed version for your release line: 7.5.11 or 8.1.6. US federal agencies must fix it by 15 Sep 2022.","what":"CVE-2021-39226 is a critical authentication bypass vulnerability in Fedoraproject Fedora, published on 5 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-39226 and fix it if it is affected.\n\nWhat it is: CVE-2021-39226 is a critical authentication bypass vulnerability in Fedoraproject Fedora, published on 5 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-39226 in the wild since at least 25 Aug 2022.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected all versions; fixed in 7.5.11\n- github.com/grafana/grafana (Go): affected all versions; fixed in 7.5.11\n- github.com/grafana/grafana (Go): affected from 8.0.0; fixed in 8.1.6\n- github.com/grafana/grafana (Go): affected from 8.0.0; fixed in 8.1.6\n- grafana (Bitnami): affected all versions; fixed in 7.5.11, 8.1.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-39226/ (Markdown: https://insights.sbomify.com/CVE-2021-39226/index.md)","id":"CVE-2021-39226","markdown":"https://insights.sbomify.com/CVE-2021-39226/index.md","name":"CVE-2021-39226","record":{"aliases":["BIT-grafana-2021-39226","GHSA-69j6-29vr-p3j9","RHSA-2021:3769","RHSA-2021:3770","RHSA-2021:3771","RLSA-2021:3771","UBUNTU-CVE-2021-39226","openSUSE-SU-2024:11651-1"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana data visualization","requires_auth":"none","summary":"Attackers can bypass authentication to view and delete Grafana snapshots, leading to data exposure and loss.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"grafana","vendor":"grafana"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-287","name":"Improper Authentication"}],"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.","ecosystems":["Bitnami","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_eus:8.1::appstream","Red Hat:rhel_eus:8.2::appstream","Rocky Linux:8","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-39226.yaml","stars":null,"title":"Grafana Snapshot - Authentication Bypass"}],"tier":"exploited"},"has_fix":true,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","indexable":true,"kev":{"dateAdded":"2022-08-25","dueDate":"2022-09-15","knownRansomwareCampaignUse":"Unknown","product":"Grafana","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Grafana Labs","vulnerabilityName":"Grafana Authentication Bypass Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"fedoraproject:fedora","products":["fedoraproject:fedora","grafana:grafana"],"type":"auth_bypass","year":"2021"},"n_packages":37,"n_references":8,"next":{"headline":"Fix prototype pollution in the zrender merge and clone helper methods","id":"CVE-2021-39227"},"packages":[{"ecosystem":"Bitnami","fixed":["7.5.11","8.1.6"],"introduced":["0","8.0.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2021-39226"},{"ecosystem":"Go","fixed":["7.5.11"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-69j6-29vr-p3j9"},{"ecosystem":"Go","fixed":["7.5.11"],"introduced":["0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-69j6-29vr-p3j9"},{"ecosystem":"Go","fixed":["8.1.6"],"introduced":["8.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-69j6-29vr-p3j9"},{"ecosystem":"Go","fixed":["8.1.6"],"introduced":["8.0.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-69j6-29vr-p3j9"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:7.3.6-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2021:3771"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:7.3.6-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2021:3771"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-azure-monitor","purl":"pkg:rpm/redhat/grafana-azure-monitor","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-cloudwatch","purl":"pkg:rpm/redhat/grafana-cloudwatch","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-elasticsearch","purl":"pkg:rpm/redhat/grafana-elasticsearch","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-graphite","purl":"pkg:rpm/redhat/grafana-graphite","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-influxdb","purl":"pkg:rpm/redhat/grafana-influxdb","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-loki","purl":"pkg:rpm/redhat/grafana-loki","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-mssql","purl":"pkg:rpm/redhat/grafana-mssql","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-mysql","purl":"pkg:rpm/redhat/grafana-mysql","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-opentsdb","purl":"pkg:rpm/redhat/grafana-opentsdb","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-postgres","purl":"pkg:rpm/redhat/grafana-postgres","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-prometheus","purl":"pkg:rpm/redhat/grafana-prometheus","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.1::appstream","fixed":["0:6.2.2-7.el8_1"],"introduced":["0"],"last_affected":[],"package":"grafana-stackdriver","purl":"pkg:rpm/redhat/grafana-stackdriver","source":"RHSA-2021:3769"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-azure-monitor","purl":"pkg:rpm/redhat/grafana-azure-monitor","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-cloudwatch","purl":"pkg:rpm/redhat/grafana-cloudwatch","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-elasticsearch","purl":"pkg:rpm/redhat/grafana-elasticsearch","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-graphite","purl":"pkg:rpm/redhat/grafana-graphite","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-influxdb","purl":"pkg:rpm/redhat/grafana-influxdb","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-loki","purl":"pkg:rpm/redhat/grafana-loki","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-mssql","purl":"pkg:rpm/redhat/grafana-mssql","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-mysql","purl":"pkg:rpm/redhat/grafana-mysql","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-opentsdb","purl":"pkg:rpm/redhat/grafana-opentsdb","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-postgres","purl":"pkg:rpm/redhat/grafana-postgres","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-prometheus","purl":"pkg:rpm/redhat/grafana-prometheus","source":"RHSA-2021:3770"},{"ecosystem":"Red Hat:rhel_eus:8.2::appstream","fixed":["0:6.3.6-3.el8_2"],"introduced":["0"],"last_affected":[],"package":"grafana-stackdriver","purl":"pkg:rpm/redhat/grafana-stackdriver","source":"RHSA-2021:3770"},{"ecosystem":"Rocky Linux:8","fixed":["0:7.3.6-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/rocky-linux/grafana?distro=rocky-linux-8-4-legacy\u0026epoch=0","source":"RLSA-2021:3771"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.5.11-3.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11651-1"}],"prev":{"headline":"Missing permission check on Deck API","id":"CVE-2021-39225"},"products":["grafana"],"published":"2021-10-05","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["grafana"]},"summary":"Attackers can bypass authentication to view and delete Grafana snapshots, leading to data exposure and loss.","url":"https://insights.sbomify.com/CVE-2021-39226/"}