{"schema_version":"1.9.0","id":"CVE-2024-9264","published":"2024-10-18T03:20:52.489Z","modified":"2026-08-12T03:51:31.616368112Z","aliases":["BIT-grafana-2024-9264","GHSA-q99m-qcv4-fpm7","GO-2024-3215"],"related":["CGA-3mqw-v2g6-57gg","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"],"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/grafana/grafana","events":[{"introduced":"277ef258d4b9a5acdf2932347c6a4ca72d739b28"},{"fixed":"0421a8911cfc05a46c516fd9d033a51e52e51afe"},{"fixed":"6c4158b30465e78c0a4a222f27e020b9c3073afb"},{"introduced":"5b85c4c2fcf5d32d4f68aaef345c53096359b2f1"},{"fixed":"b2c053e5b47cd7e83b3a80a6256f1dbb9ddc22a3"},{"fixed":"dec13894710f1b3cd3d37a66d258f1d44536c4e5"},{"introduced":"c57667e4481563f5e6cf945b03bc0626caa4dbeb"},{"fixed":"086b47f098a2f2d27a6d538cf4bc523c892ecdd2"},{"fixed":"c47b921ef40c0c411e9bad2cac05eb6c540c0979"}],"database_specific":{"extracted_events":[{"introduced":"11.0.0"},{"fixed":"11.0.5"},{"fixed":"11.0.6"},{"introduced":"11.1.0"},{"fixed":"11.1.6"},{"fixed":"11.1.7"},{"introduced":"11.2.0"},{"fixed":"11.2.1"},{"fixed":"11.2.2"}],"source":"AFFECTED_FIELD"}}],"versions":["11.0.0","v11.0.4","v11.0.2","v11.0.1","v11.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-9264.json"}}],"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/"}],"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"},"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"}]}