A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
    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
    Identity Security
    • Singularity Identity
      Identity Threat Detection and Response
  • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2024-9264

CVE-2024-9264: Grafana SQL Injection Vulnerability

CVE-2024-9264 is a SQL injection flaw in Grafana's SQL Expressions feature that enables command injection and local file inclusion. Users with VIEWER permissions or higher can exploit this. Learn the technical details, impact, and fixes.

Published: January 28, 2026

CVE-2024-9264 Overview

CVE-2024-9264 is a critical command injection and local file inclusion vulnerability affecting Grafana's experimental SQL Expressions feature. The vulnerability stems from insufficient sanitization of user input within duckdb queries, allowing authenticated attackers with VIEWER or higher permissions to execute arbitrary commands and access local files on the underlying system.

The SQL Expressions experimental feature evaluates duckdb queries containing user input. Due to inadequate input sanitization before these queries are passed to the duckdb binary, malicious actors can craft specially formatted queries to achieve command injection or read arbitrary files from the server filesystem. This vulnerability requires the duckdb binary to be present in Grafana's $PATH, which is not installed by default in standard Grafana distributions.

Critical Impact

Authenticated users with basic VIEWER permissions can achieve remote code execution and access sensitive files on systems where the duckdb binary is present, potentially leading to full system compromise.

Affected Products

  • Grafana version 11.0.0 and potentially other versions with SQL Expressions feature enabled
  • Systems with the duckdb binary installed and accessible in Grafana's $PATH
  • Any deployment where users have VIEWER or higher permissions

Discovery Timeline

  • 2024-10-18 - CVE-2024-9264 published to NVD
  • 2025-03-14 - Last updated in NVD database

Technical Details for CVE-2024-9264

Vulnerability Analysis

This vulnerability combines two dangerous attack classes: Command Injection (CWE-77) and Code Injection (CWE-94). The experimental SQL Expressions feature in Grafana provides functionality for evaluating duckdb queries as part of data transformation pipelines. However, the implementation fails to properly sanitize user-controlled input before constructing and executing these queries.

When a user submits a query through the SQL Expressions interface, the input is passed to the duckdb execution engine without adequate validation or escaping. The duckdb database engine supports various functions that can interact with the filesystem and execute system commands, which attackers can leverage to break out of the intended query context.

The attack surface is significant because it requires only VIEWER-level permissions—the lowest authenticated privilege level in Grafana. This means any authenticated user in a Grafana deployment could potentially exploit this vulnerability if the prerequisites are met.

Root Cause

The root cause is insufficient input sanitization in the SQL Expressions feature's query handling logic. User-supplied data is incorporated into duckdb queries without proper escaping, parameterization, or validation against dangerous functions and commands. The design assumes that queries will only contain benign analytical operations, but duckdb provides filesystem access and command execution capabilities that can be abused through crafted input.

Attack Vector

The attack vector is network-based, requiring authenticated access to the Grafana web interface. An attacker must:

  1. Have valid credentials with at least VIEWER permissions on the target Grafana instance
  2. Access the SQL Expressions experimental feature (must be enabled)
  3. Ensure the target system has duckdb binary installed in Grafana's $PATH
  4. Craft malicious queries that exploit duckdb functions for command injection or file reading

The attacker crafts a malicious SQL query through the SQL Expressions interface that leverages duckdb's built-in functions capable of filesystem interaction or command execution. When Grafana processes this query, it passes the unsanitized input to duckdb, which executes the malicious payload with the privileges of the Grafana process.

For example, attackers could potentially use duckdb functions such as read_csv, read_parquet, or similar file-reading capabilities to access sensitive configuration files like /etc/passwd or Grafana's own configuration files containing database credentials. More sophisticated attacks could leverage command execution to establish reverse shells or deploy additional malware.

For detailed technical information on exploitation techniques, refer to the Grafana Security Advisory.

Detection Methods for CVE-2024-9264

Indicators of Compromise

  • Unusual queries in Grafana logs containing file path references (e.g., /etc/passwd, /etc/shadow, configuration files)
  • SQL Expressions queries with suspicious duckdb function calls that access filesystem paths
  • Unexpected process spawning from the Grafana server process
  • Network connections initiated from the Grafana process to unexpected external hosts

Detection Strategies

  • Monitor Grafana application logs for SQL Expressions queries containing path traversal sequences (../) or absolute file paths
  • Implement network monitoring to detect unusual outbound connections from Grafana servers
  • Enable audit logging for all SQL Expressions feature usage and review for anomalous patterns
  • Deploy file integrity monitoring on sensitive system files to detect unauthorized access attempts

Monitoring Recommendations

  • Configure centralized log aggregation for Grafana instances with alerting on suspicious query patterns
  • Implement behavioral analysis to baseline normal SQL Expressions usage and alert on deviations
  • Monitor for the presence of duckdb binary in Grafana's execution path as a risk indicator
  • Track process execution chains originating from Grafana processes for signs of command injection

How to Mitigate CVE-2024-9264

Immediate Actions Required

  • Disable the SQL Expressions experimental feature immediately if not required for operations
  • Remove the duckdb binary from Grafana's $PATH to eliminate the attack vector
  • Audit user permissions and remove VIEWER or higher access from unnecessary accounts
  • Review Grafana logs for any signs of exploitation attempts

Patch Information

Grafana has released security patches to address this vulnerability. Organizations should upgrade to the latest patched version of Grafana as indicated in the official security advisory. Review the Grafana Security Advisory for CVE-2024-9264 for specific version information and upgrade instructions.

Additionally, NetApp has published an advisory (NTAP-20250314-0007) for customers using Grafana in NetApp environments.

Workarounds

  • Disable the SQL Expressions experimental feature in Grafana's configuration until patches can be applied
  • Ensure duckdb binary is not installed or is removed from the system $PATH accessible to Grafana
  • Implement network segmentation to limit the impact of potential command execution
  • Apply principle of least privilege by restricting VIEWER permissions to only essential users
bash
# Configuration example
# Verify duckdb is not in Grafana's PATH
which duckdb
# If found, remove or relocate the binary
sudo rm /usr/local/bin/duckdb

# Disable experimental features in grafana.ini
# [feature_toggles]
# enable = 
# (Ensure SQL Expressions / sqlExpressions is not listed)

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechGrafana

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability93.99%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94

  • CWE-77
  • Technical References
  • NetApp Security Advisory NTAP-20250314-0007
  • Vendor Resources
  • Grafana Security Advisory CVE-2024-9264
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
  • English
  • 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