{"id":"UBUNTU-CVE-2024-9264","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.","modified":"2025-10-24T05:06:47Z","published":"2024-10-18T04:15:00Z","upstream":["CVE-2024-9264"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-9264"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-9264"}],"affected":[{"package":{"name":"grafana","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/grafana@2.6.0+dfsg-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"grafana","binary_version":"2.6.0+dfsg-1"},{"binary_name":"grafana-data","binary_version":"2.6.0+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-9264.json"}}],"schema_version":"1.7.3","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_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/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"},{"type":"Ubuntu","score":"medium"}]}