Grafana Labs SQL expressions allowing for RCE (CVE-2024-9264)

high Nessus Plugin ID 211576

Synopsis

The remote host is missing a security update.

Description

The version of Grafana Labs installed on the remote host is affected by a vulnerability as referenced in the CVE-2024-9264 advisory.

- 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.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

See vendor advisory

See Also

https://grafana.com/security/security-advisories/cve-2024-9264/

Plugin Details

Severity: High

ID: 211576

File Name: grafana_CVE-2024-9264.nasl

Version: 1.1

Type: remote

Family: Web Servers

Published: 11/19/2024

Updated: 11/19/2024

Configuration: Enable paranoid mode

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

CVSS v2

Risk Factor: High

Base Score: 9

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2024-9264

CVSS v3

Risk Factor: High

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: cpe:/a:grafana:grafana

Required KB Items: Settings/ParanoidReport

Patch Publication Date: 10/17/2024

Vulnerability Publication Date: 10/17/2024

Reference Information

CVE: CVE-2024-9264