The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-43798

CVE-2021-43798: Grafana Path Traversal Vulnerability

CVE-2021-43798 is a path traversal vulnerability in Grafana versions 8.0.0-beta1 through 8.3.0 that allows unauthorized access to local files. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-43798 Overview

CVE-2021-43798 is a directory traversal vulnerability affecting Grafana, an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) are vulnerable to path traversal attacks that allow unauthenticated remote attackers to read arbitrary files from the underlying server filesystem. The vulnerable URL path exploits the plugin API endpoint: <grafana_host_url>/public/plugins/<plugin-id>/, where <plugin-id> is the plugin ID for any installed plugin. This vulnerability has been actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities catalog.

Critical Impact

Unauthenticated attackers can read sensitive files including configuration files, credentials, and database contents from vulnerable Grafana servers, potentially leading to complete system compromise.

Affected Products

  • Grafana versions 8.0.0-beta1 through 8.0.6
  • Grafana versions 8.1.0 through 8.1.7
  • Grafana versions 8.2.0 through 8.2.6
  • Grafana version 8.3.0

Discovery Timeline

  • 2021-12-07 - CVE CVE-2021-43798 published to NVD
  • 2025-10-24 - Last updated in NVD database

Technical Details for CVE-2021-43798

Vulnerability Analysis

This directory traversal vulnerability (CWE-22) exists in Grafana's plugin file serving functionality. The application fails to properly sanitize user-supplied input in URL paths when serving plugin files. By crafting a malicious request to the /public/plugins/<plugin-id>/ endpoint with path traversal sequences, an attacker can escape the intended directory and access arbitrary files on the server filesystem. The vulnerability is particularly severe because exploitation requires no authentication, and default Grafana installations include multiple plugins that can be targeted.

The attack is network-accessible and requires low complexity to execute. Successful exploitation results in unauthorized disclosure of sensitive information including Grafana configuration files (which may contain database credentials), system password files, and other critical data stored on the server.

Root Cause

The root cause lies in insufficient input validation and path canonicalization in Grafana's static file serving mechanism for plugins. The application fails to properly neutralize special elements such as ../ sequences within the plugin path parameter before using it to construct file paths. This allows attackers to traverse outside the intended plugin directory structure and access files anywhere on the filesystem that the Grafana process has read permissions for.

Attack Vector

The attack is executed via network-based HTTP requests targeting the vulnerable plugin endpoint. An attacker sends a crafted GET request to the Grafana server with directory traversal sequences embedded in the URL path. For example, requests targeting endpoints like /public/plugins/alertlist/../../../../../../../etc/passwd allow traversal outside the plugins directory. Any installed plugin ID can be used as the initial path component, making this attack viable against virtually all Grafana installations within the affected version range.

The vulnerability can be exploited to read critical files such as /etc/passwd, /etc/shadow (if permissions allow), Grafana's grafana.ini configuration file containing database credentials, and SQLite database files containing user hashes and session tokens.

Detection Methods for CVE-2021-43798

Indicators of Compromise

  • HTTP requests to /public/plugins/ endpoints containing path traversal sequences such as ../, ..%2f, or URL-encoded variants
  • Web server access logs showing requests for system files like /etc/passwd, /etc/shadow, or Grafana configuration files
  • Unusual read access patterns to sensitive system files by the Grafana process
  • Anomalous outbound connections following successful file exfiltration attempts

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block path traversal patterns in incoming requests
  • Monitor Grafana access logs for requests containing .. sequences or attempts to access files outside the plugins directory
  • Implement file integrity monitoring on sensitive configuration files that may be targeted
  • Use network intrusion detection systems (IDS) with signatures for CVE-2021-43798 exploitation attempts

Monitoring Recommendations

  • Enable verbose logging on Grafana instances and forward logs to a centralized SIEM for correlation
  • Set up alerts for HTTP 200 responses to requests containing path traversal patterns targeting plugin endpoints
  • Monitor for bulk file read attempts that may indicate automated exploitation
  • Track access to Grafana configuration files and database files for unauthorized read operations

How to Mitigate CVE-2021-43798

Immediate Actions Required

  • Upgrade Grafana immediately to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1 or later
  • If immediate patching is not possible, restrict network access to Grafana instances using firewall rules
  • Review access logs for evidence of exploitation and rotate credentials if compromise is suspected
  • Consider taking vulnerable instances offline until patching is complete if they contain sensitive data

Patch Information

Grafana has released security patches addressing this vulnerability. Users should upgrade to the following minimum versions based on their current branch: 8.0.7 for the 8.0.x branch, 8.1.8 for the 8.1.x branch, 8.2.7 for the 8.2.x branch, or 8.3.1 for the 8.3.x branch. The fix is documented in the GitHub Grafana Commit Changes and detailed in the GitHub Grafana Security Advisory. Grafana Cloud was never vulnerable to this issue.

Workarounds

  • Deploy a reverse proxy or WAF in front of Grafana to filter requests containing path traversal sequences
  • Use network segmentation to limit which systems can reach the Grafana web interface
  • Implement strict firewall rules allowing only trusted IP addresses to access Grafana
  • If feasible, temporarily disable or restrict access to the /public/plugins/ endpoint at the web server level
bash
# Example nginx configuration to block path traversal attempts
location /public/plugins/ {
    if ($request_uri ~* "\.\.") {
        return 403;
    }
    proxy_pass http://grafana_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGrafana

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability94.42%

  • Known ExploitedYes
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-22
  • Technical References
  • Packet Storm Arbitrary File Read

  • Packet Storm Directory Traversal Exploit

  • NetApp Security Advisory

  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Openwall OSS Security Discussion

  • Openwall OSS Security Commentary

  • GitHub Grafana Commit Changes

  • GitHub Grafana Security Advisory

  • Grafana Blog 0-day Update
  • Related CVEs
  • CVE-2022-32275: Grafana Path Traversal Vulnerability

  • CVE-2026-27876: Grafana SQL Expressions RCE Vulnerability

  • CVE-2026-27877: Grafana Information Disclosure Vulnerability

  • CVE-2026-27880: Grafana DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English