CVE-2024-9264
Grafana SQL Expressions allow for remote code execution
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
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.
Official description from the CVE record, published by GRAFANA. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
CVSS 4.0 Critical 9.4
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
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: Low
No measurable action is needed to get around the system's built-in security controls. The attack is repeatable.
Attack requirements: None
The attack works without any special deployment or execution conditions.
Privileges required: Low
A basic user account is needed.
User interaction: None
No action from any user is needed.
Vulnerable system: confidentiality: High
Serious or total effect on the secrecy of data.
Vulnerable system: integrity: High
Serious or total effect on the trustworthiness of data.
Vulnerable system: availability: High
Serious or total effect on availability.
Subsequent systems: confidentiality: High
Serious or total effect on other systems' data secrecy.
Subsequent systems: integrity: High
Serious or total effect on other systems' data trustworthiness.
Subsequent systems: availability: High
Serious or total effect on other systems' availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | Low | No measurable action is needed to get around the system's built-in security controls. The attack is repeatable. |
| Attack requirements | None | The attack works without any special deployment or execution conditions. |
| Privileges required | Low | A basic user account is needed. |
| User interaction | None | No action from any user is needed. |
| Vulnerable system: confidentiality | High | Serious or total effect on the secrecy of data. |
| Vulnerable system: integrity | High | Serious or total effect on the trustworthiness of data. |
| Vulnerable system: availability | High | Serious or total effect on availability. |
| Subsequent systems: confidentiality | High | Serious or total effect on other systems' data secrecy. |
| Subsequent systems: integrity | High | Serious or total effect on other systems' data trustworthiness. |
| Subsequent systems: availability | High | Serious or total effect on other systems' availability. |
CVSS 3.1 Critical 9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: Low
No special conditions are needed. The attack can be repeated at will.
Privileges required: Low
A basic user account is needed.
User interaction: None
No action from any user is needed.
Scope: Changed
The impact can reach other components beyond the vulnerable one.
Confidentiality impact: High
Serious or total effect on the secrecy of data.
Integrity impact: High
Serious or total effect on the trustworthiness of data.
Availability impact: High
Serious or total effect on availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | Low | No special conditions are needed. The attack can be repeated at will. |
| Privileges required | Low | A basic user account is needed. |
| User interaction | None | No action from any user is needed. |
| Scope | Changed | The impact can reach other components beyond the vulnerable one. |
| Confidentiality impact | High | Serious or total effect on the secrecy of data. |
| Integrity impact | High | Serious or total effect on the trustworthiness of data. |
| Availability impact | High | Serious or total effect on availability. |
CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at first.org/cvss.
EPSS
- Score
- 0.97553 (97.6% probability)
- Percentile
- 99.9%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
CISA assessment as of Nov 1, 2024
- Exploitation
- Public proof of concept recorded by CISA
- Automatable
- no
- Technical impact
- total
Weakness (CWE)
- CWE-94Improper Control of Generation of Code
Affected products
Grafana
- affected: 11.0.0 up to before 11.0.5
- affected: 11.1.0 up to before 11.1.6
- affected: 11.2.0 up to before 11.2.1
- affected: 11.0.0 up to before 11.0.6
- affected: 11.1.0 up to before 11.1.7
- affected: 11.2.0 up to before 11.2.2
References
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:49 UTC. Sources and licenses