{"cve":"CVE-2024-9264","nvd":{"published":"2024-10-18T04:15:04.723","modified":"2026-06-17T08:24:14.750","status":"Modified","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.","cvss_v4":{"vector":"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","score":9.4},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-77","CWE-94"],"references":["https://grafana.com/security/security-advisories/cve-2024-9264/","https://security.netapp.com/advisory/ntap-20250314-0007/"],"products":["grafana:grafana"],"source":"nvd","synced_at":"2026-10-19T21:56:33.105311382+00:00"},"epss":{"cve":"CVE-2024-9264","score":0.97553,"percentile":0.99901,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-q99m-qcv4-fpm7","url":"https://osv.dev/vulnerability/GHSA-q99m-qcv4-fpm7","summary":"Grafana Command Injection And Local File Inclusion Via Sql Expressions","modified":"2026-09-10T03:50:19.895134204Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=11.0.0 <11.0.6+security-01"],"fixed":["11.0.6+security-01"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=11.1.0 <11.1.7+security-01"],"fixed":["11.1.7+security-01"]},{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=11.2.0 <11.2.2+security-01"],"fixed":["11.2.2+security-01"]}]},{"id":"GO-2024-3215","url":"https://osv.dev/vulnerability/GO-2024-3215","summary":"Grafana Command Injection And Local File Inclusion Via Sql Expressions in github.com/grafana/grafana","modified":"2026-02-04T04:34:44.806790Z","packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}