{"schema":"threatline.record/2","record":{"id":"CVE-2024-9264","aliases":[],"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.","categories":["Applications & CMS"],"product":"Grafana","vendor":"Grafana","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","product":"Grafana","vendor":"Grafana","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"}],"defaultStatus":"unaffected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.0.5","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.1.6","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.2.1","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.0.6","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.1.7","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","source_modified_at":"2025-03-14T10:03:06.561Z","fetched_at":"2026-10-23T18:52:38.922436Z","package":{"name":"Grafana","ecosystem":null},"version":"11.2.2","basis":"first unaffected version stated in the CVE record"}],"cvss":9.4,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.97138,"percentile":0.99896,"score_date":"2026-10-23"},"published_at":"2024-10-18T03:20:52.489Z","modified_at":"2025-03-14T10:03:06.561Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-9264","fetched_at":"2026-10-23T18:52:38.922436Z","source_modified_at":"2025-03-14T10:03:06.561Z"},{"source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2024-10-17"},{"source":"Nuclei","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":null},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-9264","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","Metasploit","Nuclei","EPSS"],"references":[{"source":"CVE List","url":"https://grafana.com/security/security-advisories/cve-2024-9264/"},{"source":"CVE List","url":"https://security.netapp.com/advisory/ntap-20250314-0007/"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total","assessed_at":"2024-10-31T00:00:00+00:00"},"exploits":[{"added":"2026-10-14","check":true,"date":"2024-10-17","kind":"Exploit module","name":"Grafana SQL Expressions DuckDB Command Injection","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb"},{"kind":"Scanner template","name":"Grafana Post-Auth DuckDB - SQL Injection To File Read","source":"Nuclei","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml"}],"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2025-03-14T10:03:06.561Z","content_hash":"22996df551fcc17644067f3ca6270575830cac914eff6b3443b4786a19ef923c"}}
