CVE-2021-43815: Grafana directory traversal for `.cvs` files
Noroxi assessment
Priority: Monitor (action score 18/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.8% (FIRST EPSS); higher than 79.4% of all records.
- Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: grafana (Alpine:v3.16) 8.3.2-r0; github.com/grafana/grafana (Go) 8.3.2; dracut-saltboot (openSUSE:Leap 15.3) 0.1.1665997480.587fa10-150000.1.41.1.
Low priority for now. Upgrade to grafana (Alpine:v3.16) 8.3.2-r0; github.com/grafana/grafana (Go) 8.3.2; dracut-saltboot (openSUSE:Leap 15.3) 0.1.1665997480.587fa10-150000.1.41.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
Grafana is an open-source platform for monitoring and observability. Grafana prior to versions 8.3.2 and 7.5.12 has a directory traversal for arbitrary .csv files. It only affects instances that have the developer testing tool called TestData DB data source enabled and configured. The vulnerability is limited in scope, and only allows access to files with the extension .csv to authenticated users only. Grafana Cloud instances have not been affected by the vulnerability. Versions 8.3.2 and 7.5.12 contain a patch for this issue. There is a workaround available 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.
- Published
- Dec 10, 2021
- Updated
- Jun 17, 2026
- EPSS
- 1.8% · 79th percentile
- CWE
- CWE-22
Report tools
Action score
18
Monitor
Low priority for now.
- CVSS
- 17 / 40 · 4.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 1.8%
CNA vs NVD score
- NVD
- 4.3
- CNA · GitHub_M
- 4.3
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| grafana | grafana | cpe:2.3:a:grafana:grafana |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- grafana grafanabefore 7.5.12
- grafana grafana8.0.0 and later · before 8.3.2
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
grafana grafana
- >= 8.0.0-beta3, < 8.3.2, >= 5.0.0, < 7.5.12affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.16 | grafana | from 8.0.0 · before 8.3.2-r0 | 8.3.2-r0 |
| Go | github.com/grafana/grafana | from 8.0.0-beta3 · before 8.3.2 | 8.3.2 |
| openSUSE:Leap 15.3 | dracut-saltboot | before 0.1.1665997480.587fa10-150000.1.41.1 | 0.1.1665997480.587fa10-150000.1.41.1 |
| openSUSE:Leap 15.3 | golang-github-boynux-squid_exporter | before 1.6-150000.1.9.1 | 1.6-150000.1.9.1 |
| openSUSE:Leap 15.3 | golang-github-prometheus-promu | before 0.13.0-150000.3.9.1 | 0.13.0-150000.3.9.1 |
| openSUSE:Leap 15.3 | grafana | before 8.5.13-150200.3.29.5 | 8.5.13-150200.3.29.5 |
| openSUSE:Leap 15.3 | grafana | before 8.3.5-150200.3.21.1 | 8.3.5-150200.3.21.1 |
| openSUSE:Leap 15.3 | prometheus-postgres_exporter | before 0.10.0-150000.1.3.1 | 0.10.0-150000.1.3.1 |
| openSUSE:Leap 15.3 | rhnlib | before 4.2.6-150000.3.34.1 | 4.2.6-150000.3.34.1 |
| openSUSE:Leap 15.3 | spacecmd | before 4.3.16-150000.3.89.1 | 4.3.16-150000.3.89.1 |
| openSUSE:Leap 15.3 | spacecmd | before 4.2.16-150000.3.77.1 | 4.2.16-150000.3.77.1 |
| openSUSE:Leap 15.4 | prometheus-blackbox_exporter | before 0.19.0-150000.1.14.3 | 0.19.0-150000.1.14.3 |
| openSUSE:Leap 15.4 | wire | before 0.5.0-150000.1.9.3 | 0.5.0-150000.1.9.3 |
| openSUSE:Leap 15.5 | golang-github-lusitaniae-apache_exporter | before 1.0.0-150000.1.20.1 | 1.0.0-150000.1.20.1 |
| openSUSE:Leap 15.5 | prometheus-postgres_exporter | before 0.10.1-150000.1.17.1 | 0.10.1-150000.1.17.1 |
| openSUSE:Leap 15.5 | spacecmd | before 4.3.26-150000.3.113.1 | 4.3.26-150000.3.113.1 |
| openSUSE:Tumbleweed | grafana | before 10.1.5-2.1 | 10.1.5-2.1 |
| SUSE:Enterprise Storage 6 | grafana | before 8.5.13-150100.3.12.1 | 8.5.13-150100.3.12.1 |
| SUSE:HPE Helion OpenStack 8 | golang-github-prometheus-node_exporter | before 1.3.0-1.15.3 | 1.3.0-1.15.3 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP4 | grafana | before 8.5.13-150200.3.29.5 | 8.5.13-150200.3.29.5 |
| SUSE:Manager Client Tools 12 | golang-github-boynux-squid_exporter | before 1.6-1.9.1 | 1.6-1.9.1 |
| SUSE:Manager Client Tools 12 | golang-github-lusitaniae-apache_exporter | before 1.0.0-1.21.2 | 1.0.0-1.21.2 |
| SUSE:Manager Client Tools 12 | golang-github-prometheus-alertmanager | before 0.26.0-1.24.2 | 0.26.0-1.24.2 |
| SUSE:Manager Client Tools 12 | golang-github-prometheus-alertmanager | before 0.23.0-1.12.3 | 0.23.0-1.12.3 |
+96
Same product
grafana: all recordsOther highest-scoring records for the same primary product.
- CVE-2021-39226Snapshot authentication bypass in grafanaKEV89Now
- CVE-2021-43798Grafana path traversalKEV87Now
- CVE-2024-9264Grafana SQL Expressions allow for remote code execution66This week
Published before and after this one in the same product
- ← EarlierCVE-2021-41244Nov 15, 2021 · Cross organization admin control in Grafana29Monitor
- ← EarlierCVE-2021-43813Dec 10, 2021 · Directory Traversal in Grafana34Monitor
- Later →CVE-2022-21673Jan 18, 2022 · OAuth Identity Token exposure in Grafana18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:grafana | 8.3.2-r0 · Alpine:v3.16 | Package registry (OSV) |
| Go:github.com/grafana/grafana | 8.3.2 | Package registry (OSV) |
| opensuse:dracut-saltboot | 0.1.1665997480.587fa10-150000.1.41.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:golang-github-boynux-squid_exporter | 1.6-150000.1.9.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:golang-github-lusitaniae-apache_exporter | 1.0.0-150000.1.20.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:golang-github-prometheus-promu | 0.13.0-150000.3.9.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:grafana | 8.3.5-150200.3.21.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:prometheus-blackbox_exporter | 0.19.0-150000.1.14.3 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:prometheus-postgres_exporter | 0.10.0-150000.1.3.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:rhnlib | 4.2.6-150000.3.34.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:spacecmd | 4.2.16-150000.3.77.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:wire | 0.5.0-150000.1.9.3 · openSUSE:Leap 15.4 | Package registry (OSV) |
| suse:grafana | 8.3.5-150000.1.30.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:mgr-cfg | 4.2.8-150000.1.24.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:mgr-osad | 4.2.8-150000.1.36.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:mgr-push | 4.2.5-150000.1.18.2 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:mgr-virtualization | 4.2.4-150000.1.26.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:prometheus-postgres_exporter | 0.10.0-150000.1.3.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:rhnlib | 4.2.6-150000.3.34.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacecmd | 4.2.16-150000.3.77.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacewalk-client-tools | 4.2.18-150000.3.59.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacewalk-koan | 4.2.6-150000.3.27.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacewalk-oscap | 4.2.4-150000.3.18.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:suseRegisterInfo | 4.2.6-150000.3.21.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
—
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
- CVE-2021-3922666 days apartSnapshot authentication bypass in grafanaKEV89Now
- CVE-2022-28660161 days apartThe querier component in Grafana Enterprise Logs 1.1.x through 1.3.x before 1.4.0 does not require authentication when X-Scope-OrgID is used39Monitor
Bug bounty scope
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP) · grafana/grafana
- Grafana Labs - Vulnerability Disclosure Program (VDP)Intigriti · disclosure only (VDP)
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- Low
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
nvd-primary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);
res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);
if (!file.startsWith(ROOT + path.sep)) {
return res.sendStatus(400);
}
res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
- github.com/grafana/grafana/commit/d6ec6f8ad28f0212e584406730f939105ff6c6d3
- github.com/grafana/grafana/commit/fd48aee61e4328aae8d5303a9efd045fa0ca308d
- github.com/grafana/grafana/releases/tag/v8.3.2
- github.com/grafana/grafana/security/advisories/GHSA-7533-c8qv-jm9m
- grafana.com/blog/2021/12/10/grafana-8.3.2-and-7.5.12-released-with-moderate-severity-security-fix/
- security.netapp.com/advisory/ntap-20220107-0006/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.