SB2024101803 - Remote code execution in Grafana SQL Expressions



SB2024101803 - Remote code execution in Grafana SQL Expressions

Published: October 18, 2024 Updated: October 22, 2024

Security Bulletin ID SB2024101803
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) PHP file inclusion (CVE-ID: CVE-2024-9264)

CWE-ID: CWE-98 - Improper Control of Filename for Include/Require Statement in PHP Program

CVSSv4: 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/E:P/U:Green


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.


Remediation

Install update from vendor's website.