Patchfirst
CVE-2021-43798 KEVPublic exploit High · 7.5 EPSS 88.5%

Grafana Path Traversal Vulnerability

Grafana Labs · Grafana

Summary

A path traversal flaw in Grafana, the open-source monitoring and observability platform, affects versions 8.0.0-beta1 through 8.3.0 excluding the patched releases, through the public plugins path /public/plugins/<plugin-id>/ where a crafted plugin ID value allows the path to escape its intended directory. An unauthenticated remote attacker who can send HTTP requests to a vulnerable Grafana instance can read arbitrary local files on the server, with no user interaction or authentication required.

Official description · NVD

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: `<grafana_host_url>/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.

Breakdown
68.2 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 24 months after disclosure. Public exploit code (Metasploit) was available 5 days before disclosure.

  1. Public exploit codeMetasploit5 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+24 mo
  4. Added to CISA KEVEU database agrees+4 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

4 related vulnerabilities in the same code over 15 months. The latest fix listed for github.com/grafana/grafana is 8.3.5.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2021-43798Grafana Path Traversal7 Dec 2021KEV
  2. relatedHigh

    Why these are linked:

    CVE-2021-43815Grafana directory traversal for `.cvs` files10 Dec 2021
  3. same family
    CVE-2023-0507Grafana is an open-source platform for monitoring and…1 Mar 2023
  4. Next fix in the same packageMedium

    Why these are linked:

    • Fixed one release later9.2.10 → 9.2.13 (github.com/grafana/grafana)
    • Similar weakness in the same product (machine-matched)same product + CWE + description similarity
    CVE-2023-22462Stored XSS in Grafana Text plugin2 Mar 2023

Fixes in github.com/grafana/grafanaGo package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 7.4.2CVE-2021-2735818 Mar 2021
  2. 8.1.6CVE-2021-392265 Oct 2021KEV
  3. 8.2.4CVE-2021-4124415 Nov 2021
  4. 8.3.1CVE-2021-437987 Dec 2021KEV
  5. 8.3.2CVE-2021-4381510 Dec 2021
  6. 8.3.5CVE-2022-217028 Feb 2022
  7. 8.3.5CVE-2022-217138 Feb 2022Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

Unauthenticated HTTP request exploits public-facing Grafana web path

vulnerable to directory traversal, allowing access to local files
From the official description (NVD) Original (opens in a new tab) ↗

CollectionTA0009

Data from Local System T1005 Medium
AI mapping from the description · primary impact

Traversal reads arbitrary local files from host

allowing access to local files
From the official description (NVD) Original (opens in a new tab) ↗

Detection

1 rule for this CVE · 163 general rules for its techniques

Rules for this CVE

1 that reference CVE-2021-43798 directly.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/grafana/grafana.

Gogithub.com/grafana/grafanaGHSA-8pjx-jj86-j47p

Upgrade to 8.3.10

Still affected on this line by CVE-2022-31097 (no fix published); CVE-2024-9264 (no fix published); CVE-2025-3415 (no fix published); CVE-2025-4123 (no fix published); CVE-2025-6023 (no fix published).

Gogo get github.com/grafana/grafana@v8.3.10

First fixed in 8.3.1 for CVE-2021-43798.

Affected versions, by release line

If you runUpgrade to
8.3.0 up to 8.3.18.3.10first fix for this CVE: 8.3.1
8.2.0 up to 8.2.7

Still affected on this line by CVE-2022-31097 (no fix published); CVE-2024-9264 (no fix published); CVE-2025-3415 (no fix published); CVE-2025-4123 (no fix published); CVE-2025-6023 (no fix published).

8.2.7
8.1.0 up to 8.1.8

Still affected on this line by CVE-2022-31097 (no fix published); CVE-2024-9264 (no fix published); CVE-2025-3415 (no fix published); CVE-2025-4123 (no fix published); CVE-2025-6023 (no fix published).

8.1.8
8.0.0-beta1 up to 8.0.7

Still affected on this line by CVE-2021-39226 (fixed in 8.1.6, a newer line); CVE-2022-31097 (no fix published); CVE-2024-9264 (no fix published); CVE-2025-3415 (no fix published); CVE-2025-4123 (no fix published); CVE-2025-6023 (no fix published).

8.0.7

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

9 links, grouped by NVD tag (8 duplicates merged)
↑ ↓ chooseEnter openEsc close