CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
Exploitation reported by one source. First attested on 2025-05-20 by GCVE · kevintel.
- Published2024-10-18
- Fixed in11.2.2+security-01 · 11.1.7+security-01 · 11.0.6+security-01
- WeaknessCWE-77 · CWE-94
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTCVersions per branch
OSV · CISA-ADP · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.2 | ≥ 11.2.0, < 11.2.2+security-01 | 11.2.2+security-01 | OSV |
| 11.1 | ≥ 11.1.0, < 11.1.7+security-01 | 11.1.7+security-01 | OSV |
| 11.0 | ≥ 11.0.0, < 11.0.6+security-01 | 11.0.6+security-01 | OSV |
| — | all versions | no fix published | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.2 | ≥ 11.2.2, < 11.2.2\+security-01 | 11.2.2\+security-01 | CISA-ADP |
| 11.2 | ≥ 11.2.0, < 11.2.1\+security-01 | 11.2.1\+security-01 | CISA-ADP |
| 11.1 | ≥ 11.1.7, < 11.1.7\+security-01 | 11.1.7\+security-01 | CISA-ADP |
| 11.1 | ≥ 11.1.0, < 11.1.6\+security-01 | 11.1.6\+security-01 | CISA-ADP |
| 11.0 | ≥ 11.0.6, < 11.0.6\+security-01 | 11.0.6\+security-01 | CISA-ADP |
| 11.0 | ≥ 11.0.0, < 11.0.5\+security-01 | 11.0.5\+security-01 | CISA-ADP |
| 11.0 | = 11.0.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 11.x | ≥ 11.0.0, < 11.2.2 | 11.2.2 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GRAFANA, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Grafanaother versions: not affected
https://github.com/grafana/grafana/
Affected- ≥ 11.0.0, < 11.0.5fixed in 11.0.5semver
- ≥ 11.1.0, < 11.1.6fixed in 11.1.6semver
- ≥ 11.2.0, < 11.2.1fixed in 11.2.1semver
- ≥ 11.0.0, < 11.0.6fixed in 11.0.6semver
- ≥ 11.1.0, < 11.1.7fixed in 11.1.7semver
- ≥ 11.2.0, < 11.2.2fixed in 11.2.2semver
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-10-18
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- golang-github-prometheus-alertmanagerSUSE:Manager Client Tools 12all versions · fixed in 0.26.0-1.31.2
- golang-github-prometheus-node_exporterSUSE:Manager Client Tools 12all versions · fixed in 1.9.1-1.36.2
- golang-github-prometheus-node_exporterSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5all versions · fixed in 1.9.1-1.36.2
- golang-github-prometheus-node_exporterSUSE:Linux Enterprise Server 12 SP5-LTSSall versions · fixed in 1.9.1-1.36.2
- golang-github-prometheus-prometheusSUSE:Manager Client Tools 15all versions · fixed in 2.53.4-150000.3.62.2
- golang-github-prometheus-prometheusSUSE:Manager Client Tools 12all versions · fixed in 2.53.4-1.60.2
- govulncheck-vulndbSUSE:Package Hub 12all versions · fixed in 0.0.20241104T154416-5.1
- govulncheck-vulndbSUSE:Linux Enterprise Module for Package Hub 15 SP6all versions · fixed in 0.0.20241030T212825-150000.1.9.1
26 more package ranges on OSV.dev
Vendor advisories
- CVE-2024-9264 Red Hat Product Security
grafana: Command injection and local file inclusion via SQL Expressions
Fix
- Update grafana/grafana to 11.2.2+security-01 · 11.1.7+security-01 · 11.0.6+security-01
Advisories and patches
- grafana.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-11-01
- PoC-in-GitHub14 repositories, unverifiedknown since 2026-11-01nollium/CVE-2024-9264z3k0sec/File-Read-CVE-2024-9264z3k0sec/CVE-2024-9264-RCE-ExploitCythonic1/CVE-2024-9264Exerrdev/CVE-2024-9264-Fixed
- Metasploit modules
- 1 moduleexploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264rank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- GCVEexploitation2025-05-20
- CISA-ADPSSVC decisionpoc2024-11-01
- CNACVSS 4.09.42024-10-18
- CNACVSS 3.19.92024-10-18
- NVDCVSS 3.18.8read 2026-11-04
- CNAweakness (CWE)CWE-942024-10-18
- NVDweakness (CWE)CWE-77read 2026-11-04
- FIRST EPSSEPSS score97.6 %read 2026-11-18
- PoC-in-GitHubproof of concept14known since 2026-11-01
- ProjectDiscoverydetectionread 2026-11-18
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2024-10-25
Identifiers
- BIT-grafana-2024-9264same flawBitnami · Apache-2.0
- CGA-299p-4xch-q86msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4cfc-29gv-fp9jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-4vr9-jfv8-pjmpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-53fx-p9p2-jpvfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-58w4-rm22-94xjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-58xw-w8fq-g2q9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-68j9-3f9c-3f63same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6pqr-w6x6-pchrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7jfx-q2vm-52rhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7jr7-222h-g9gwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8g69-5h68-hx29same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8qx7-wh9f-747fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8vmj-mw3q-qv8qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9338-7mm4-grh2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-99mx-5858-9m23same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9fvf-rvjf-29vwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cjh8-4m7j-jqm3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-cr4c-rmpr-4r3xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-crg5-rg7r-4v84same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f4fc-mqgh-q7j3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gjvx-vr43-3994same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gx7j-c6mv-vh78same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hq7r-hgvr-7q42same flawChainguard · CC-BY-NC-ND-4.0
- CGA-jvx6-66wm-xvx9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-p797-2jgw-h9jfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p7jf-325q-99phsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-px9g-jxm3-37jvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-q772-h438-84v5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qcvq-vmf3-fvprsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qjxc-7qf2-vgx6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qrxp-4g23-3wfpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r3f4-3rww-2rqcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r7wj-5v8f-8xjmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rfcr-7fcj-gm3xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v397-x2w4-7f4rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-v62x-84vj-rp4vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w2cf-wm7m-v99fsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w58x-j4v2-wjqjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w5wj-9vfc-g2vmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w98g-4c2g-m22jsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-3110same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-q99m-qcv4-fpm7same flawGitHub Advisory Database · CC-BY-4.0
- GO-2024-3215same flawGo Vulnerability Database · CC-BY-4.0
- MINI-46wj-669r-wqqpsame flawMinimOS · LicenseRef-unstated
- MINI-72gw-xxrx-hqq8same flawMinimOS · LicenseRef-unstated
- MINI-777w-phrm-h39psame flawMinimOS · LicenseRef-unstated
- MINI-7pf4-x5fj-gg9xsame flawMinimOS · LicenseRef-unstated
- MINI-9jcp-6jhq-rfwqsame flawMinimOS · LicenseRef-unstated
- MINI-9p88-ch6f-mxx4same flawMinimOS · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0 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
- Published
- 2024-10-18
- Last Modified
- 2026-11-04
- NVD status
- Modified
- GitHub Advisory
- GHSA-q99m-qcv4-fpm7
Frequently asked questions
What is CVE-2024-9264?
Is CVE-2024-9264 actively exploited?
What is the CVSS score for CVE-2024-9264?
Running grafana/grafana? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2021-39226KEVsame product
- CVE-2021-43798KEVsame product
- CVE-2020-13379same product
- CVE-2025-4123same productgrafana: Cross-site Scripting (XSS) in Grafana via Custom Frontend Plugins and Open Redirect
- CVE-2021-41174same product
- CVE-2021-27358same product
- CVE-2025-6197same productgrafana: Open Redirect in Grafana
- CVE-2022-31097same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-q99m-qcv4-fpm7
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0