{"schema_version":"1.9.0","id":"GHSA-q99m-qcv4-fpm7","published":"2024-10-18T06:30:32Z","modified":"2026-09-10T03:50:19.895134204Z","aliases":["BIT-grafana-2024-9264","CVE-2024-9264","GO-2024-3215"],"summary":"Grafana Command Injection And Local File Inclusion Via Sql Expressions","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":[{"package":{"name":"github.com/grafana/grafana","ecosystem":"Go","purl":"pkg:golang/github.com/grafana/grafana"},"ranges":[{"type":"SEMVER","events":[{"introduced":"11.0.0"},{"fixed":"11.0.6+security-01"}]}],"database_specific":{"last_known_affected_version_range":"<= 11.0.6","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-q99m-qcv4-fpm7/GHSA-q99m-qcv4-fpm7.json"}},{"package":{"name":"github.com/grafana/grafana","ecosystem":"Go","purl":"pkg:golang/github.com/grafana/grafana"},"ranges":[{"type":"SEMVER","events":[{"introduced":"11.1.0"},{"fixed":"11.1.7+security-01"}]}],"database_specific":{"last_known_affected_version_range":"<= 11.1.7","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-q99m-qcv4-fpm7/GHSA-q99m-qcv4-fpm7.json"}},{"package":{"name":"github.com/grafana/grafana","ecosystem":"Go","purl":"pkg:golang/github.com/grafana/grafana"},"ranges":[{"type":"SEMVER","events":[{"introduced":"11.2.0"},{"fixed":"11.2.2+security-01"}]}],"database_specific":{"last_known_affected_version_range":"<= 11.2.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-q99m-qcv4-fpm7/GHSA-q99m-qcv4-fpm7.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9264"},{"type":"WEB","url":"https://github.com/grafana/grafana/pull/81666"},{"type":"PACKAGE","url":"https://github.com/grafana/grafana"},{"type":"WEB","url":"https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264"},{"type":"WEB","url":"https://grafana.com/security/security-advisories/cve-2024-9264"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20250314-0007"}],"database_specific":{"cwe_ids":["CWE-77","CWE-94"],"github_reviewed":true,"github_reviewed_at":"2024-10-25T14:13:42Z","nvd_published_at":"2024-10-18T04:15:04Z","severity":"CRITICAL"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},{"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/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"}]}