KEVIntel
9.4
CVSS
Critical

CVE-2024-9264

PUBLISHED

Grafana SQL Expressions allow for remote code execution

PoC available Remote Low complexity No user interaction
Vendor
Grafana
Product
Grafana
Published
Oct 18, 2024
EPSS
92.1% · 100% pctl

Automate this intelligence with the Pro API

Everything on this page — CVSS, EPSS, exploit status, PoCs, scanner integrations, mentions, tags, and immediate honeypot data — is available programmatically for VM, SOC, and CTI workflows.

Description

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.

nuclei_scanner

Weaknesses (CWE)

  • Improper Control of Generation of Code ('Code Injection')

CVSS scores

CVSS v4.0 9.4 Critical

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

CVSS v3.1 9.9 Critical

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Exploitation status

Proof of concept available

Recorded 2024-10-20 01:13:37 UTC · GitHub

Known exploited vulnerability sources

Catalogues that list this CVE as a known exploited vulnerability.

Source Added
The Shadowserver (via CIRCL) First 2025-05-20 19:38 UTC

Scanner integrations

Potential proof of concepts

These PoCs are unverified and could contain malware. Use at your own risk.

z3k0sec/CVE-2024-9264-RCE-Exploit

github · Created 2024-10-21 03:36:05 UTC · 15 stars

Grafana RCE exploit (CVE-2024-9264)

z3k0sec/File-Read-CVE-2024-9264

github · Created 2024-10-20 01:13:37 UTC · 6 stars

File Read Proof of Concept for CVE-2024-9264

nollium/CVE-2024-9264

github · Created 2024-10-19 13:50:52 UTC · 91 stars

Exploit for Grafana arbitrary file-read and RCE (CVE-2024-9264)

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Proof of Concept Exploit Available

  • Detected by Nuclei

  • Added to KEVIntel