{"answers":{"affected":"9 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2021-43798 in the wild since at least 9 Oct 2025.","fix":"Upgrade github.com/grafana/grafana to a fixed version for your release line: 8.0.7, 8.1.8, 8.2.7 or 8.3.1. US federal agencies must fix it by 30 Oct 2025.","what":"CVE-2021-43798 is a high-severity path traversal vulnerability in Grafana Grafana, published on 7 Dec 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-43798 and fix it if it is affected.\n\nWhat it is: CVE-2021-43798 is a high-severity path traversal vulnerability in Grafana Grafana, published on 7 Dec 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-43798 in the wild since at least 9 Oct 2025.\n\nAffected packages and fixed versions:\n- github.com/grafana/grafana (Go): affected from 8.0.0-beta1; fixed in 8.0.7\n- github.com/grafana/grafana (Go): affected from 8.0.0-beta1; fixed in 8.0.7\n- github.com/grafana/grafana (Go): affected from 8.1.0; fixed in 8.1.8\n- github.com/grafana/grafana (Go): affected from 8.1.0; fixed in 8.1.8\n- github.com/grafana/grafana (Go): affected from 8.2.0; fixed in 8.2.7\n- github.com/grafana/grafana (Go): affected from 8.2.0; fixed in 8.2.7\n- github.com/grafana/grafana (Go): affected from 8.3.0; fixed in 8.3.1\n- github.com/grafana/grafana (Go): affected from 8.3.0; fixed in 8.3.1\n- grafana (Bitnami): affected from 8.0.1; fixed in 8.0.7, 8.1.8, 8.2.7, 8.3.1\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-43798/ (Markdown: https://insights.sbomify.com/CVE-2021-43798/index.md)","id":"CVE-2021-43798","markdown":"https://insights.sbomify.com/CVE-2021-43798/index.md","name":"CVE-2021-43798","record":{"aliases":["BIT-grafana-2021-43798","GHSA-8pjx-jj86-j47p"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring platform","requires_auth":"none","summary":"Attackers can read local files via directory traversal in Grafana plugin URLs, exposing sensitive system data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Grafana is an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `\u003cgrafana_host_url\u003e/public/plugins//`, where is the plugin ID for any installed plugin. At no time has Grafana Cloud been vulnerable. Users are advised to upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. The GitHub Security Advisory contains more information about vulnerable URL paths, mitigation, and the disclosure timeline.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":1,"first_seen":"2021-12-02","github_poc":58,"max_poc_stars":370,"metasploit":1,"nuclei":1,"refs":[{"date":"2021-12-07T09:02:16Z","kind":"github_poc","ref":"https://github.com/jas502n/Grafana-CVE-2021-43798","stars":370,"title":"Grafana Unauthorized arbitrary file reading vulnerability"},{"date":"2021-12-07T15:11:34Z","kind":"github_poc","ref":"https://github.com/A-D-Team/grafanaExp","stars":270,"title":"A exploit tool for Grafana Unauthorized arbitrary file reading vulnerability (CVE-2021-43798), it can burst plugins / extract secret_key / decrypt data_source info automatic."},{"date":"2021-12-11T18:49:30Z","kind":"github_poc","ref":"https://github.com/pedrohavay/exploit-grafana-CVE-2021-43798","stars":46,"title":"This is a proof-of-concept exploit for Grafana's Unauthorized Arbitrary File Read Vulnerability (CVE-2021-43798)."},{"date":"2021-12-06T20:10:23Z","kind":"github_poc","ref":"https://github.com/taythebot/CVE-2021-43798","stars":43,"title":"CVE-2021-43798 - Grafana 8.x Path Traversal (Pre-Auth)"},{"date":"2021-12-07T08:59:11Z","kind":"github_poc","ref":"https://github.com/zer0yu/CVE-2021-43798","stars":27,"title":"Grafana Arbitrary File Reading Vulnerability"},{"date":"2021-12-07T12:47:58Z","kind":"github_poc","ref":"https://github.com/Mr-xn/CVE-2021-43798","stars":24,"title":"CVE-2021-43798:Grafana 任意文件读取漏洞"},{"date":"2021-12-08T03:43:31Z","kind":"github_poc","ref":"https://github.com/MoCh3n/CVE-2021-43798-grafana_fileread","stars":17,"title":"grafana CVE-2021-43798任意文件读取漏洞POC，采用多插件轮训检测的方法，允许指定单URL和从文件中读取URL"},{"date":"2021-12-07T10:43:30Z","kind":"github_poc","ref":"https://github.com/ScorpionsMAX/CVE-2021-43798-Grafana-POC","stars":14,"title":"CVE-2021-43798 Grafana 任意文件读取漏洞 POC+参数"}],"tier":"exploited"},"has_fix":true,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","indexable":true,"kev":{"dateAdded":"2025-10-09","dueDate":"2025-10-30","knownRansomwareCampaignUse":"Unknown","product":"Grafana","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","vendorProject":"Grafana Labs","vulnerabilityName":"Grafana Path Traversal Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"path_traversal","year":"2021"},"n_packages":9,"n_references":8,"next":{"headline":"RabbitMQ exposes ports with weak default secrets in Zulip Server","id":"CVE-2021-43799"},"packages":[{"ecosystem":"Bitnami","fixed":["8.0.7","8.1.8","8.2.7","8.3.1"],"introduced":["8.0.1","8.1.0","8.2.0","8.3.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2021-43798"},{"ecosystem":"Go","fixed":["8.0.7"],"introduced":["8.0.0-beta1"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.0.7"],"introduced":["8.0.0-beta1"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.1.8"],"introduced":["8.1.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.1.8"],"introduced":["8.1.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.2.7"],"introduced":["8.2.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.2.7"],"introduced":["8.2.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.3.1"],"introduced":["8.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":null,"source":"GHSA-8pjx-jj86-j47p"},{"ecosystem":"Go","fixed":["8.3.1"],"introduced":["8.3.0"],"last_affected":[],"package":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","source":"GHSA-8pjx-jj86-j47p"}],"prev":{"headline":"HTTP fails to validate against control chars in header names which may lead to HTTP request smuggling","id":"CVE-2021-43797"},"products":["grafana"],"published":"2021-12-07","related":[{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"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":"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["grafana"]},"summary":"Attackers can read local files via directory traversal in Grafana plugin URLs, exposing sensitive system data.","url":"https://insights.sbomify.com/CVE-2021-43798/"}