Skip to main content
Exploitation reportedNot in CISA KEV yetFix available

CVE-2024-9264

Grafana SQL Expressions allow for remote code execution

Exploitation reported by one source. First attested on 2025-05-20 by GCVE · kevintel.

  • Published2024-10-18
  • Fixed in11.2.2+security-01 · 11.1.7+security-01 · 11.0.6+security-01
  • WeaknessCWE-77 · CWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-10-1803:20CVE publishedCNA
  2. 2024-10-1804:15CVE publishedNVD
  3. 2025-05-2019:38Listed as exploited by GCVEGCVE
  4. 2025-05-2019:38Exploitation first reportedGCVE

Versions per branch

OSV · CISA-ADP · NVD
grafana/grafana
BranchAffectedFixed in
11.2≥ 11.2.0, < 11.2.2+security-0111.2.2+security-01
11.1≥ 11.1.0, < 11.1.7+security-0111.1.7+security-01
11.0≥ 11.0.0, < 11.0.6+security-0111.0.6+security-01
—all versionsno fix published
Grafana
BranchAffectedFixed in
11.2≥ 11.2.2, < 11.2.2\+security-0111.2.2\+security-01
11.2≥ 11.2.0, < 11.2.1\+security-0111.2.1\+security-01
11.1≥ 11.1.7, < 11.1.7\+security-0111.1.7\+security-01
11.1≥ 11.1.0, < 11.1.6\+security-0111.1.6\+security-01
11.0≥ 11.0.6, < 11.0.6\+security-0111.0.6\+security-01
11.0≥ 11.0.0, < 11.0.5\+security-0111.0.5\+security-01
11.0= 11.0.0no fix published
grafana
BranchAffectedFixed in
11.x≥ 11.0.0, < 11.2.211.2.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GRAFANA, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Grafanaother versions: not affected

    https://github.com/grafana/grafana/

    Affected
    • ≥ 11.0.0, < 11.0.5fixed in 11.0.5semver
    • ≥ 11.1.0, < 11.1.6fixed in 11.1.6semver
    • ≥ 11.2.0, < 11.2.1fixed in 11.2.1semver
    • ≥ 11.0.0, < 11.0.6fixed in 11.0.6semver
    • ≥ 11.1.0, < 11.1.7fixed in 11.1.7semver
    • ≥ 11.2.0, < 11.2.2fixed in 11.2.2semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-10-18

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • golang-github-prometheus-alertmanagerSUSE:Manager Client Tools 12all versions · fixed in 0.26.0-1.31.2
  • golang-github-prometheus-node_exporterSUSE:Manager Client Tools 12all versions · fixed in 1.9.1-1.36.2
  • golang-github-prometheus-node_exporterSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5all versions · fixed in 1.9.1-1.36.2
  • golang-github-prometheus-node_exporterSUSE:Linux Enterprise Server 12 SP5-LTSSall versions · fixed in 1.9.1-1.36.2
  • golang-github-prometheus-prometheusSUSE:Manager Client Tools 15all versions · fixed in 2.53.4-150000.3.62.2
  • golang-github-prometheus-prometheusSUSE:Manager Client Tools 12all versions · fixed in 2.53.4-1.60.2
  • govulncheck-vulndbSUSE:Package Hub 12all versions · fixed in 0.0.20241104T154416-5.1
  • govulncheck-vulndbSUSE:Linux Enterprise Module for Package Hub 15 SP6all versions · fixed in 0.0.20241030T212825-150000.1.9.1

26 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-9264 Red Hat Product Security

    grafana: Command injection and local file inclusion via SQL Expressions

Full record on NVD

Fix

  1. Update grafana/grafana to 11.2.2+security-01 · 11.1.7+security-01 · 11.0.6+security-01

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
1 moduleexploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264rank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 4.0 vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
2024-10-18
Last Modified
2026-11-04
NVD status
Modified
GitHub Advisory
GHSA-q99m-qcv4-fpm7

Frequently asked questions

What is CVE-2024-9264?

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.

Is CVE-2024-9264 actively exploited?

A proof-of-concept exploit exists for CVE-2024-9264, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-9264?

CVE-2024-9264 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running grafana/grafana? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record