BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-9264 in Grafana

High 8.8

The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, leading to a command injection and local file inclusion vulnerability. Any user with the VIEWER or higher permission is ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
CVSS v49.4
EPSS66.4%
EPSS percentile99th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Grafana Grafana ≥ 11.0.0, < 11.0.6 ≥ 11.1.0, < 11.1.7 ≥ 11.2.0, < 11.2.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

The SQL Expressions experimental feature of Grafana allows for the evaluation of `duckdb` queries containing user input. These queries are insufficiently sanitized before being passed to `duckdb`, leading to a command injection and local file inclusion vulnerability. Any user with the VIEWER or higher permission is capable of executing this attack. The `duckdb` binary must be present in Grafana's $PATH for this attack to function; by default, this binary is not installed in Grafana distributions.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-9264
BreachSpider IDBS-2024-GLOBAL-046350-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2024-10-18
Last modified2026-11-04
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-77: Command Injection

Attacker injects operating system commands through application inputs passed to a shell or system call.

CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77

CAPEC-76 Manipulating Web Input to File System Calls via CWE-77

CAPEC-15 Command Delimiters via CWE-77

CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77

Show all 11

CAPEC-75 Manipulating Writeable Configuration Files via CWE-77

CAPEC-77 Manipulating User-Controlled Variables via CWE-94

CAPEC-136 LDAP Injection via CWE-77

CAPEC-183 IMAP/SMTP Command Injection via CWE-77

CAPEC-242 Code Injection via CWE-94

CAPEC-248 Command Injection via CWE-77

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2024-9264 affects the SQL Expressions experimental feature in Grafana, allowing command injection and local file inclusion due to insufficient input sanitization. Any user with VIEWER or higher permission can exploit this vulnerability if the `duckdb` binary is present in Grafana's $PATH. The CVSS score is 8.8, indicating a high severity, and the EPSS score of 0.94047 suggests a high likelihood of exploitation. Immediate action is required to mitigate this risk in ICS/OT environments to prevent potential data breaches and system compromise.

The vulnerability arises from the SQL Expressions experimental feature in Grafana, which allows users to input `duckdb` queries. These queries are not properly sanitized before being passed to the `duckdb` binary, leading to command injection and local file inclusion. Any user with VIEWER or higher permission can exploit this vulnerability if the `duckdb` binary is present in Grafana's $PATH. The attack can be performed remotely without user interaction, making it particularly dangerous in ICS/OT environments where Grafana is often used for monitoring and visualization.

Compensating controls AI-drafted, review before use

Disable the SQL Expressions experimental feature in Grafana and ensure that the `duckdb` binary is not present in the Grafana $PATH. Implement network segmentation to restrict access to Grafana instances from untrusted networks.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2024-9264?

CVE-2024-9264 affects the SQL Expressions experimental feature in Grafana, allowing command injection and local file inclusion due to insufficient input sanitization. Any user with VIEWER or higher permission can exploit this vulnerability if the `duckdb` binary is present in Grafana's $PATH. The CVSS score is 8.8, indicating a high severity, and the EPSS score of 0.94047 suggests a high likelihood of exploitation. Immediate action is required to mitigate this risk in ICS/OT environments to prev

What is the CVSS score for CVE-2024-9264?

CVE-2024-9264 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 66.4%.

Is CVE-2024-9264 actively exploited?

No confirmed active exploitation of CVE-2024-9264 as of 2026-11-04.

How do I remediate CVE-2024-9264?

Priority: IMMEDIATE. Advisory: https://grafana.com/security/security-advisories/cve-2024-9264/ PSIRT: [email protected]

What systems are affected by CVE-2024-9264?

CVE-2024-9264 affects Grafana Grafana.

What NERC-CIP standard applies to CVE-2024-9264?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through command injection, which can lead to the compromise of critical ICS/OT systems and data.

What IEC 62443 requirement maps to CVE-2024-9264?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the software that can be exploited to gain unauthorized access and execute commands, which can compromise the security of the ICS/OT environment.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Grafana","product":"Grafana","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-04.