The SQL Expressions experimental feature of Grafana allows for the evaluation of duckdb queries containing user input.
CVE-2024-9264
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.
A ready-made exploit module exists
Metasploit · Public PoC · Nuclei template
- Metasploitexploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264
- NucleiGrafana Post-Auth DuckDB - SQL Injection To File Read
- Public PoCnollium/CVE-2024-9264132 stars
- Public PoCz3k0sec/CVE-2024-9264-RCE-Exploit38 stars
- Public PoCz3k0sec/File-Read-CVE-2024-92648 stars
- Public PoCCythonic1/CVE-2024-92643 stars
- Public PoCrvzsec/CVE-2024-92642 stars
- Public PoCExerrdev/CVE-2024-9264-Fixed
- Public PoCRoyall-Researchers/CVE-2024-9264
- Public PoCruizii/CVE-2024-9264
A Nuclei detection template exists for this, which means it is scanned for at internet scale rather than looked for deliberately.
Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.
Assessment
- CVSS
- 9.4 (v4.0)
- Severity
- Critical
- EPSS
- 97.55% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Metasploit, Public PoC, Nuclei template
- Published
- 18 October 2024
- Last updated
- 4 November 2026
- Assigner
- GRAFANA
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
At the source
References
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2024-9264