cbcvebase.
CVE-2021-43813
published 2021-12-10

CVE-2021-43813: 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…

PriorityP341medium4.3CVSS 3.1
AVNACLPRLUINSUCLINAN
EPSS
57.99%
99.0th percentile
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.

Affected

5 ranges
VendorProductVersion rangeFixed in
github.comgrafana_grafana>= 8.0.0-beta3 < 8.3.28.3.2
grafanagrafana
grafanagrafana
grafanagrafana>= 5.0.0 < 7.5.127.5.12
grafanagrafana>= 8.0.0 < 8.3.28.3.2

Detection & IOCsextracted from sources · hover to see the quote

url/api/plugins/.*/markdown/.*
  • Monitor for directory traversal attempts via the Grafana plugin markdown API endpoint — specifically requests to /api/plugins/.*/markdown/.* containing path traversal sequences (e.g., ../ or URL-encoded equivalents) targeting .md files that are fully lowercase or fully uppercase.
  • Flag authenticated HTTP requests to /api/plugins/.*/markdown/.* that include URL-encoded path components, as the traversal may be delivered via URL encoding.
  • ·The vulnerability only affects authenticated users; unauthenticated requests cannot exploit this directory traversal.
  • ·Traversal is restricted to files with the .md extension that are fully lowercase or fully uppercase — mixed-case .md files are not reachable.
  • ·Grafana Cloud instances are confirmed unaffected; detection efforts should focus on self-hosted Grafana deployments prior to 8.3.2 / 7.5.12.
  • ·A reverse proxy normalizing the PATH of requests (including URL-encoded paths) in front of Grafana is a valid mitigation when patching is not immediately possible.

CVSS provenance

nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:P/I:N/A:N
ghsa7.5HIGH
osv7.5HIGH
vendor_redhat4.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.