{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-9264","id":"CVE-2024-9264","title":"Grafana SQL Expressions allow for remote code execution","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","descriptionLong":"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.","published":"2024-10-18T03:20:52.489Z","updated":"2026-11-05T02:30:33.143206354Z","reserved":"2024-09-26T20:15:46.544Z","status":"Modified","rejected":false,"assigner":"GRAFANA","metric":{"version":"4.0","score":9.4,"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","rating":"critical","source":"GRAFANA"},"metrics":[{"version":"4.0","score":9.4,"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","rating":"critical","source":"GRAFANA"},{"version":"4.0","score":9.4,"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/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","rating":"critical","source":"grafana.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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/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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GRAFANA"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"grafana.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["Grafana"],"affectedProducts":[{"vendor":"Grafana","product":"Grafana","defaultStatus":"unaffected","versions":[{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.0.5","status":"affected","version":"11.0.0","versionType":"semver"},{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.1.6","status":"affected","version":"11.1.0","versionType":"semver"},{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.2.1","status":"affected","version":"11.2.0","versionType":"semver"},{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.0.6","status":"affected","version":"11.0.0","versionType":"semver"},{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.1.7","status":"affected","version":"11.1.0","versionType":"semver"},{"changes":[{"at":"+security-01","status":"unaffected"}],"lessThan":"11.2.2","status":"affected","version":"11.2.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/grafana/grafana","purl":"pkg:golang/github.com/grafana/grafana","ranges":[">=11.0.0 <11.0.6+security-01",">=11.1.0 <11.1.7+security-01",">=11.2.0 <11.2.2+security-01","all versions"],"fixed":["11.0.6+security-01","11.1.7+security-01","11.2.2+security-01"],"advisory":"GHSA-q99m-qcv4-fpm7"}],"cwes":["CWE-94","CWE-77"],"aliases":["BIT-grafana-2024-9264","GHSA-q99m-qcv4-fpm7","GO-2024-3215"],"references":[{"url":"https://grafana.com/security/security-advisories/cve-2024-9264/","tags":["Vendor Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0007/","tags":["advisory"]},{"url":"https://github.com/grafana/grafana/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9264.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9264","tags":["advisory"]},{"url":"https://github.com/grafana/grafana/pull/81666","tags":["web","fix"]},{"url":"https://github.com/grafana/grafana","tags":["package"]},{"url":"https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264","tags":["web"]},{"url":"https://grafana.com/security/security-advisories/cve-2024-9264","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0007","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q99m-qcv4-fpm7","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.97553,"epssPercentile":0.99903,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9264","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-9264","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-q99m-qcv4-fpm7","ok":true,"note":"GHSA-q99m-qcv4-fpm7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-9264","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["grafana"],"critical":["CVSS 9.4 in a widely used technology","EPSS 98% with CVSS 9.4"],"attention":null}