Grafana SQL Expressions allow for remote code execution

Summary

CVECVE-2024-9264
StatePUBLISHED
AssignerGRAFANA
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-10-18 04:15:04 UTC
Updated2026-11-04 01:17:18 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v4.0 9.4 CRITICAL from [email protected]

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

EPSS: 0.975530000 probability, percentile 0.999020000 (date 2026-11-03)

Problem Types: CWE-94 | CWE-77 | CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary9.4CRITICALCVSS: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/C...
4.0CNACVSS9.4CRITICALCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
3.1[email protected]Primary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary9.9CRITICALCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
3.1CNACVSS9.9CRITICALCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Confidentiality
High
Integrity
High
Availability
High
Sub Conf.
High
Sub Integrity
High
Sub Availability
High

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

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Grafana Grafana 11.0.0 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Grafana Grafana affected 11.0.0 11.0.5 semver Not specified
CNA Grafana Grafana affected 11.1.0 11.1.6 semver Not specified
CNA Grafana Grafana affected 11.2.0 11.2.1 semver Not specified
CNA Grafana Grafana affected 11.0.0 11.0.6 semver Not specified
CNA Grafana Grafana affected 11.1.0 11.1.7 semver Not specified
CNA Grafana Grafana affected 11.2.0 11.2.2 semver Not specified
ADP Grafana Grafana affected 11.0.0 11.0.5\+security-01 semver Not specified
ADP Grafana Grafana affected 11.0.6 11.0.6\+security-01 semver Not specified
ADP Grafana Grafana affected 11.1.0 11.1.6\+security-01 semver Not specified
ADP Grafana Grafana affected 11.1.7 11.1.7\+security-01 semver Not specified
ADP Grafana Grafana affected 11.2.0 11.2.1\+security-01 semver Not specified
ADP Grafana Grafana affected 11.2.2 11.2.2\+security-01 semver Not specified

References

ReferenceSourceLinkTags
security.netapp.com/advisory/ntap-20250314-0007 af854a3a-2127-422b-91ae-364da2661108 security.netapp.com
grafana.com/security/security-advisories/cve-2024-9264 [email protected] grafana.com Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report