{"id":"CVE-2024-9264","summary":"Grafana SQL Expressions allow for remote code execution","details":"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.","aliases":["BIT-grafana-2024-9264","GHSA-q99m-qcv4-fpm7","GO-2024-3215"],"modified":"2026-11-05T02:31:30.597455184Z","published":"2024-10-18T03:20:52.489Z","related":["SUSE-SU-2024:3911-1","SUSE-SU-2025:01985-1","SUSE-SU-2025:01987-1","SUSE-SU-2025:01989-1","SUSE-SU-2025:01991-1","openSUSE-SU-2024:0350-1","openSUSE-SU-2024:14431-1","openSUSE-SU-2024:14447-1","openSUSE-SU-2026:20654-1"],"database_specific":{"cna_assigner":"GRAFANA","cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9264.json","unresolved_ranges":[{"extracted_events":[{"strategy":"ChangesAt","range":[{"introduced":"11.0.0"},{"fixed":"+security-01"},{"introduced":"11.1.0"},{"fixed":"+security-01"},{"introduced":"11.2.0"},{"fixed":"+security-01"},{"introduced":"11.0.0"},{"fixed":"+security-01"},{"introduced":"11.1.0"},{"fixed":"+security-01"},{"introduced":"11.2.0"},{"fixed":"+security-01"}],"source":"AFFECTED_FIELD"}]}]},"references":[{"type":"WEB","url":"https://github.com/grafana/grafana/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9264.json"},{"type":"ADVISORY","url":"https://grafana.com/security/security-advisories/cve-2024-9264/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9264"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20250314-0007/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/grafana/grafana","events":[{"introduced":"277ef258d4b9a5acdf2932347c6a4ca72d739b28"},{"last_affected":"277ef258d4b9a5acdf2932347c6a4ca72d739b28"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"11.0.0"},{"last_affected":"11.0.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:*"}]}}],"versions":["11.0.0","v11.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-9264.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}