patchminder
Weaponized · Metasploit CVE-2024-9264

Remote code executionin Grafana.

Published 18 Oct 2024 · Updated 4 Nov 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Critical 9.9
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 97.6% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade Grafana to 11.0.5, 11.0.6, 11.1.6, 11.1.7, 11.2.1 or later, whichever matches your release line.
  • Upgrade github.com/grafana/grafana (Go) to 11.0.6+security-01, 11.1.7+security-01, 11.2.2+security-01 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Grafana
11.0.0 to before 11.0.5
11.0.5
CVE record
Grafana
11.1.0 to before 11.1.6
11.1.6
CVE record
Grafana
11.2.0 to before 11.2.1
11.2.1
CVE record
Grafana
11.0.0 to before 11.0.6
11.0.6
CVE record
Grafana
11.1.0 to before 11.1.7
11.1.7
CVE record
Grafana
11.2.0 to before 11.2.2
11.2.2
CVE record
github.com/grafana/grafana (Go)
11.0.0 to before 11.0.6+security-01
11.0.6+security-01
GitHub advisory
github.com/grafana/grafana (Go)
11.1.0 to before 11.1.7+security-01
11.1.7+security-01
GitHub advisory
github.com/grafana/grafana (Go)
11.2.0 to before 11.2.2+security-01
11.2.2+security-01
GitHub advisory
github.com/grafana/grafana (Go)
all versions
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 26 Sep 2024
    CVE ID reserved by GRAFANA.
  2. 17 Oct 2024
    Metasploit module: Grafana SQL Expressions DuckDB Command Injection.
  3. 18 Oct 2024
    Published in the CVE List.
  4. 19 Oct 2024
    First public proof of concept on GitHub.
  5. 4 Nov 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
15 repositories
GitHubno warning signs foundnollium/CVE-2024-9264131 stars · created 19 Oct 2024Exploit for Grafana arbitrary file-read and RCE (CVE-2024-9264)
GitHubno warning signs foundz3k0sec/CVE-2024-9264-RCE-Exploit38 stars · created 21 Oct 2024Grafana RCE exploit (CVE-2024-9264)
GitHubno warning signs foundz3k0sec/File-Read-CVE-2024-92648 stars · created 20 Oct 2024File Read Proof of Concept for CVE-2024-9264
GitHubno warning signs foundCythonic1/CVE-2024-92643 stars · created 31 May 2025A go implementation for CVE-2024-9264 which effect grafana versions 11.0.x, 11.1.x, and 11.2.x.
GitHubno warning signs foundrvzsec/CVE-2024-92642 stars · created 7 Jul 2025Authenticated RCE in Grafana (v11.0) via SQL Expressions · PoC Exploit
GitHubno warning signs foundpunitdarji/Grafana-CVE-2024-92640 stars · created 21 Oct 2024
GitHubno warning signs foundExerrdev/CVE-2024-9264-Fixed0 stars · created 15 Jun 2025
GitHubno warning signs foundRoyall-Researchers/CVE-2024-92640 stars · created 5 Jul 2025
GitHubno warning signs foundruizii/CVE-2024-92640 stars · created 5 Jul 2025Grafana RCE
GitHubno warning signs foundpatrickpichler/grafana-CVE-2024-92640 stars · created 21 Jul 2025Grafana image with DuckDB binary present vulnerable to exploit CVE-2024-9264

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Grafana vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-9264: Remote code execution in Grafana. https://patchminder.com/cve/cve-2024-9264/ (accessed 5 December 2026).