PHP file inclusion in Grafana - CVE-2024-9264
Published: October 18, 2024 / Updated: October 15, 2026
Vulnerability details
The vulnerability allows a remote user to include and execute arbitrary PHP files on the server.
The vulnerability exists due to improper input validation when handling data passed to "duckdb". A remote user with VIEWER permissions include and execute arbitrary PHP on the system with privileges of the web server.
Note, 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 software
How to mitigate CVE-2024-9264
Links to Public Exploits and PoC-codes
- Exploit #13121 - Grafana SQL Expressions DuckDB Command Injection (October 15, 2026)
- Exploit #11807 - CVE-2024-9264 (August 1, 2025)
- Exploit #10643 - CVE-2024-9264 (October 22, 2024)
- Exploit #10642 - CVE-2024-9264-RCE-Exploit (October 22, 2024)
- Exploit #10638 - File-Read-CVE-2024-9264 (October 22, 2024)
- Exploit #10636 - CVE-2024-9264 (October 22, 2024)