9.9

CVE-2024-9264: Grafana SQL Expressions allow for remote code execution

Modified
AliasesUBUNTU-CVE-2024-9264GHSA-q99m-qcv4-fpm7BIT-grafana-2024-9264
Published 18-10-2024Last modified 14-03-2025

Vulnerability summary

CVE-2024-9264 is a critical (CVSS 9.9) Improper Control of Generation of Code vulnerability in grafana. EPSS estimates a 97.55% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritiseweaponized exploit

Weaponized exploit (Metasploit, 17-10-2024)

Source freshness unavailable

How is this decided?
CVSS score
9.9/10
010
Critical · v3.1 (CVE.org)
EPSS score
97.55%
0%100%
Critical · +2.69 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1metasploit

Advisory lineage

Upstream 0 · Downstream 8 · Related 11

Timeline

  1. 18-10-2024
    PublishedVulnerability first disclosed.
  2. 14-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

10 scores · 6 sources · 2 versions

EPSS trend

Probability

97.55%

Chance of exploitation in the next 30 days

Percentile

100%

Versus all other CVEs

30-day change

Increase +2.69 pp

From 94.86% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • MetasploitMetasploitremoteVerified

    Grafana SQL Expressions DuckDB Command Injection

    exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264

    Maturity: weaponized

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard8 products
  • grafana-fips-11.6All versions (No fix recorded)
  • grafana-fips-12.0< 12.0.10-r6
  • grafana-fips-12.1< 12.1.10.01-r3
  • grafana-fips-12.2All versions (No fix recorded)
  • grafana-fips-12.3All versions (No fix recorded)
Alpine1 product
  • grafana< 11.0.7-r0
Github.com/grafana1 product
  • grafana≥ 11.0.0, < 11.0.6+security-01 | ≥ 11.1.0, < 11.1.7+security-01 | ≥ 11.2.0, < 11.2.2+security-01 | All versions (No fix recorded)
Grafana1 product
  • grafanaEOL≥ 11.0.0, < 11.0.5 | ≥ 11.1.0, < 11.1.6 | ≥ 11.2.0, < 11.2.1 | ≥ 11.0.0, < 11.0.6 | ≥ 11.1.0, < 11.1.7 | ≥ 11.2.0, < 11.2.2 | 11.0.0
Ubuntu1 product
  • grafanaAll versions (No fix recorded)

5 vendors · 12 products

References

14 links
Show all 14 references