{"answers":{"affected":"1 open source package ship an affected version, including grafana. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-43813 in the wild and no public exploit code.","fix":"Upgrade grafana to a fixed version for your release line: 7.5.12 or 8.3.2.","what":"CVE-2021-43813 is a medium-severity path traversal vulnerability in Grafana Grafana, published on 10 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-43813 and fix it if it is affected.\n\nWhat it is: CVE-2021-43813 is a medium-severity path traversal vulnerability in Grafana Grafana, published on 10 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-43813 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grafana (Bitnami): affected from 5.0.0; fixed in 7.5.12, 8.3.2\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-43813/ (Markdown: https://insights.sbomify.com/CVE-2021-43813/index.md)","id":"CVE-2021-43813","markdown":"https://insights.sbomify.com/CVE-2021-43813/index.md","name":"CVE-2021-43813","record":{"aliases":["ALSA-2022:1781","BIT-grafana-2021-43813","GHSA-c3q8-26ph-9g2q","OESA-2021-1470","RHSA-2022:1781","RLSA-2022:1781","UBUNTU-CVE-2021-43813","openSUSE-SU-2024:11694-1"],"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":"low_privilege","summary":"Authenticated attackers can read arbitrary markdown files via directory traversal in Grafana, requiring an upgrade to patched versions.","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":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/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 prior to versions 8.3.2 and 7.5.12 contains a directory traversal vulnerability for fully lowercase or fully uppercase .md files. The vulnerability is limited in scope, and only allows access to files with the extension .md to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Users should upgrade to patched versions 8.3.2 or 7.5.12. For users who cannot upgrade, running a reverse proxy in front of Grafana that normalizes the PATH of the request will mitigate the vulnerability. The proxy will have to also be able to handle url encoded paths. Alternatively, for fully lowercase or fully uppercase .md files, users can block /api/plugins/.*/markdown/.* without losing any functionality beyond inlined plugin help text.","ecosystems":["AlmaLinux:8","Bitnami","Red Hat:enterprise_linux:8::appstream","Rocky Linux:8","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Directory Traversal in Grafana","id":"CVE-2021-43813","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"path_traversal","year":"2021"},"n_packages":6,"n_references":8,"next":{"headline":"Heap-based OOB write when parsing dwarf DIE info in Rizin","id":"CVE-2021-43814"},"packages":[{"ecosystem":"Bitnami","fixed":["7.5.12","8.3.2"],"introduced":["5.0.0","8.0.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2021-43813"},{"ecosystem":"AlmaLinux:8","fixed":["7.5.11-2.el8"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2022:1781"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:7.5.11-2.el8"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2022:1781"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:7.5.11-2.el8"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2022:1781"},{"ecosystem":"Rocky Linux:8","fixed":["0:7.5.11-2.el8"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/rocky-linux/grafana?distro=rocky-linux-8-6-legacy\u0026epoch=0","source":"RLSA-2022:1781"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.5.12-1.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11694-1"}],"prev":{"headline":"Open redirect in nextjs-auth0","id":"CVE-2021-43812"},"products":["grafana"],"published":"2021-12-10","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"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":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["grafana"]},"summary":"Authenticated attackers can read arbitrary markdown files via directory traversal in Grafana, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2021-43813/"}