PHP file inclusion in Grafana - CVE-2024-9264

 

PHP file inclusion in Grafana - CVE-2024-9264

Published: October 18, 2024 / Updated: August 1, 2025


Vulnerability identifier: #VU98806
CSH Severity: Medium
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-9264
CWE-ID: CWE-98
Exploitation vector: Remote access
Exploit availability: Public exploit is available

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

Grafana

How to mitigate CVE-2024-9264

Install updates from vendor's website.

Grafana - addressed in versions 11.0.5+security-01, 11.0.6+security-01, 11.1.6+security-01, 11.1.7+security-01, 11.2.1+security-01, 11.2.2+security-01

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins