CVE-2024-9264

CRITICAL NUCLEI LAB

Grafana 11.0.0-11.0.5 - Authenticated Command Injection via DuckDB SQL Expressions

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 16 public exploits for CVE-2024-9264. PoCs published by nollium, iSee857, z3k0sec. A Nuclei detection template is also available.

AI-analyzed exploit summary This PoC exploits CVE-2024-9264, a DuckDB SQL injection vulnerability in Grafana's experimental SQL Expressions feature, allowing authenticated users to read arbitrary files or execute commands (RCE on v11.0.0).

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.

Exploits (16)

nomisec WORKING POC 130 stars
by nollium · poc
https://github.com/nollium/CVE-2024-9264

This PoC exploits CVE-2024-9264, a DuckDB SQL injection vulnerability in Grafana's experimental SQL Expressions feature, allowing authenticated users to read arbitrary files or execute commands (RCE on v11.0.0).

Classification
Working Poc 100%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Grafana OSS/Enterprise versions 11.0.0-11.0.5, 11.1.0-11.1.6, 11.2.0-11.2.1
Auth required
Prerequisites: Authenticated Grafana user · DuckDB installed on target system · Grafana v11.0.0 for RCE
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 40 stars
by iSee857 · pythonpoc
https://github.com/iSee857/CVE-PoC/tree/main/Grafana(CVE-2024-9264).py

The repository contains functional exploit code for CVE-2026-22812, demonstrating an RCE vulnerability in OpenCode by leveraging session creation and command execution via a crafted JSON payload. The script includes multi-threaded scanning capabilities and detailed error handling.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: OpenCode (version not specified)
No auth needed
Prerequisites: Network access to target · Target running vulnerable OpenCode instance
mistral-large-3 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC 39 stars
by z3k0sec · poc
https://github.com/z3k0sec/CVE-2024-9264-RCE-Exploit

This PoC exploits CVE-2024-9264 in Grafana by leveraging SQL expression injection to create and trigger a reverse shell via the shellfs community extension. It requires authentication and DuckDB to be installed on the target system.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana >= v11.0.0 (all v11.x.y)
Auth required
Prerequisites: Authenticated Grafana user with Viewer permissions or higher · DuckDB binary installed and accessible via Grafana's PATH
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 7 stars
by z3k0sec · poc
https://github.com/z3k0sec/File-Read-CVE-2024-9264

This PoC exploits CVE-2024-9264 in Grafana v11.x by leveraging DuckDB's `read_csv_auto` function to read arbitrary files via SQL expression queries. It requires authentication and DuckDB to be accessible in Grafana's PATH.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Grafana >= v11.0.0 (all v11.x.y)
Auth required
Prerequisites: Authenticated Grafana user with Viewer permissions or higher · DuckDB binary installed and accessible via Grafana's PATH
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 3 stars
by Cythonic1 · poc
https://github.com/Cythonic1/CVE-2024-9264

This repository contains a Go-based exploit for CVE-2024-9264, a critical SQL injection vulnerability in Grafana that allows authenticated attackers to achieve RCE, file reads, or command execution via crafted SQL queries.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: Grafana (version not specified)
Auth required
Prerequisites: Valid Grafana credentials · Network access to target Grafana instance
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 2 stars
by adminlove520 · pythonpoc
https://github.com/adminlove520/CVE-Poc_All_in_One/tree/main/2024/CVE-2024-9264

The repository contains functional exploit code for multiple CVEs, including authentication bypass vulnerabilities in TOTOLINK devices and a scanner for Fortinet SSL VPN (CVE-2024-21762). The PoCs demonstrate the vulnerabilities with clear technical details and functional code.

Classification
Working Poc 90%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: TOTOLINK LR350, TOTOLINK T6, Fortinet SSL VPN
No auth needed
Prerequisites: network access to the target device
mistral-large-3 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC 2 stars
by rvzsec · poc
https://github.com/rvzsec/CVE-2024-9264

This repository contains a functional exploit for CVE-2024-9264, an authenticated RCE vulnerability in Grafana v11.0 via SQL injection in the SQL Expressions feature. The exploit uses DuckDB CLI command injection to write and execute a reverse shell payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana v11.0
Auth required
Prerequisites: authenticated Grafana account (Viewer or higher) · DuckDB binary in server PATH · network connectivity for reverse shell
mistral-large-3 · analyzed Jun 01, 2026 Full analysis →
nomisec WORKING POC 2 stars
by rvizx · poc
https://github.com/rvizx/CVE-2024-9264

This repository contains a functional PoC exploit for CVE-2024-9264, an authenticated RCE vulnerability in Grafana v11.0. The exploit leverages SQL injection in the DuckDB CLI via the SQL Expressions feature to execute arbitrary shell commands and establish a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana v11.0
Auth required
Prerequisites: Authenticated access to Grafana with Viewer or higher privileges · DuckDB binary in the server's PATH · Network connectivity for reverse shell
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC
by ozcanpng · pythonpoc
https://github.com/ozcanpng/CVE-2024-9264

This PoC exploits CVE-2024-9264, an authenticated command injection and local file inclusion vulnerability in Grafana's SQL Expressions feature when DuckDB is available in the PATH. The exploit leverages DuckDB's `read_blob()` and `shellfs` extension to achieve arbitrary file read and command execution via crafted SQL queries.

Classification
Working Poc 98%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana (with DuckDB in PATH)
Auth required
Prerequisites: Authenticated access to Grafana (default creds: admin/admin) · DuckDB installed and available in the Grafana process PATH · SQL Expressions feature enabled
mistral-large-3 · analyzed Jul 22, 2026 Full analysis →
github WORKING POC
by yeonchoda · pythonpoc
https://github.com/yeonchoda/CVE-2024-9264

This repository contains a functional Python-based exploit for CVE-2024-9264, targeting Grafana's SQL Expression LFI/RCE vulnerability. The PoC sends crafted SQL queries via the Grafana API to achieve local file inclusion or remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana 11.0.0
Auth required
Prerequisites: valid Grafana credentials · access to the Grafana API endpoint
mistral-large-3 · analyzed Jun 29, 2026 Full analysis →
nomisec WORKING POC
by amalpvatayam67 · poc
https://github.com/amalpvatayam67/day05-grafana-sqlexpr-lab

This PoC demonstrates a local file inclusion (LFI) vulnerability in Grafana 11.x via DuckDB SQL expressions, allowing authenticated users to read arbitrary files on the server. The exploit uses Grafana's SQL expression endpoint to execute DuckDB's `read_text()` function and retrieve the contents of a target file.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Grafana 11.x
Auth required
Prerequisites: Authenticated Grafana session (Viewer role or higher) · DuckDB integration enabled in Grafana
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WRITEUP
by patrickpichler · poc
https://github.com/patrickpichler/grafana-CVE-2024-9264

This repository provides details about CVE-2024-9264 and includes instructions to build a vulnerable version of Grafana (11.0.0) for testing purposes. No exploit code or PoC is present in the provided files.

Classification
Writeup 90%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: Grafana 11.0.0
No auth needed
Prerequisites: Access to the vulnerable Grafana instance
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by ruizii · poc
https://github.com/ruizii/CVE-2024-9264

This PoC exploits an arbitrary file read and command execution vulnerability in Grafana via SQL injection in the Expression datasource. It authenticates, then uses malicious SQL queries to achieve RCE by writing command output to a file and reading it back.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana (version not specified in PoC)
Auth required
Prerequisites: Valid Grafana credentials · Network access to Grafana instance · Expression datasource enabled
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Royall-Researchers · poc
https://github.com/Royall-Researchers/CVE-2024-9264

This PoC exploits CVE-2024-9264, a Remote Code Execution (RCE) vulnerability in Grafana via SQL Expressions. It leverages insufficient input sanitization to execute arbitrary shell commands by installing and loading the 'shellfs' community extension, then triggering a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana >= v11.0.0 (all v11.x.y)
Auth required
Prerequisites: Authenticated Grafana user with 'Viewer' permissions or higher · DuckDB binary installed and accessible through Grafana's PATH
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Exerrdev · poc
https://github.com/Exerrdev/CVE-2024-9264-Fixed

This is a functional proof-of-concept exploit for CVE-2024-9264, targeting Grafana via SQL expressions and DuckDB to achieve remote code execution. It writes a reverse shell script to the target system and executes it using the `shellfs` extension.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Grafana 11.0.0
Auth required
Prerequisites: Grafana instance with DuckDB backend · Ability to install `shellfs` extension · Valid credentials for authentication
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by punitdarji · poc
https://github.com/punitdarji/Grafana-CVE-2024-9264

This PoC demonstrates an SQL injection vulnerability in Grafana via the Expression datasource, allowing arbitrary file reads (e.g., `/etc/passwd`). The exploit sends a crafted POST request to execute SQL queries through the `__expr__` datasource.

Classification
Working Poc 90%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: Grafana (version not specified)
Auth required
Prerequisites: Valid Grafana session cookie · Access to the `/api/ds/query` endpoint
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Grafana Post-Auth DuckDB - SQL Injection To File Read
CRITICALby princechaddha
Shodan: http.title:"grafana" || cpe:"cpe:2.3:a:grafana:grafana"
FOFA: app="grafana" || title="grafana"

Scores

CVSS v3 9.9
EPSS 0.9464
EPSS Percentile 99.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull grafana/grafana:11.0.0-ubuntu
docker pull curlimages/curl:8.15.0
docker pull grafana/grafana:11.0.0
docker pull grafana/grafana:11.1.5-ubuntu
docker pull vulhub/grafana:11.0.0
+13 more repos

Details

CWE
CWE-77 CWE-94
Status published
Products (2)
grafana/grafana 11.0.0
grafana/grafana 11.0.0 - 11.0.6+security-01Go
Published Oct 18, 2024
Tracked Since Feb 18, 2026