An update on 0day CVE-2021-43798: Grafana directory traversal
Grafana 8.x had a directory traversal vulnerability that allowed an unauthenticated attacker to read arbitrary files on the host. The vulnerability was exploited as a 0day before a fix was publicly released.
grafana.com
Published on grafana.com
Richard "RichiH" Hartmann
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing check on file paths in a plugin endpoint allowed traversal outside the intended directory.
What the attacker needed
Grafana 8.x instance; no authentication needed
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A directory traversal is a flaw where a program lets you access files outside the folder it should. Here, anyone could ask Grafana for files on the server without logging in, potentially reading sensitive data. The issue was fixed in an update.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.