Skip to content
Noroxi
CVE-2024-9264· NVD / CVE Program· CNA GRAFANA

Grafana SQL Expressions allow for remote code execution

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.

CriticalCVSS 9.4 · v4.0—Proof of concept Fix available
Published
Oct 18, 2024
Updated
Jun 17, 2026
EPSS
94.9% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

65

This week

Don’t wait for the next maintenance window.

CVSS
37 / 40 · 9.4 / 10
CISA KEV
0 / 30 · Not listed
EPSS
28 / 30 · 94.9%

CISA SSVC decision

Exploitation
proof of concept
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · GRAFANA
9.4
NVD has not scored this yet; the score shown is the CNA’s.

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
grafanagrafana

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • grafana grafana11.0.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GRAFANA). Independent of NVD's CPE analysis and usually ahead of it.

  • Grafana Grafana

    • 11.0.0 and later · before 11.0.5affected · semverfixed in +security-01
    • 11.1.0 and later · before 11.1.6affected · semverfixed in +security-01
    • 11.2.0 and later · before 11.2.1affected · semverfixed in +security-01
    • 11.0.0 and later · before 11.0.6affected · semverfixed in +security-01
    • 11.1.0 and later · before 11.1.7affected · semverfixed in +security-01
    • 11.2.0 and later · before 11.2.2affected · semverfixed in +security-01

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Gogithub.com/grafana/grafanafrom 11.0.0 · before 11.0.6+security-0111.0.6+security-01
Gogithub.com/grafana/grafanafrom 11.1.0 · before 11.1.7+security-0111.1.7+security-01
Gogithub.com/grafana/grafanafrom 11.2.0 · before 11.2.2+security-0111.2.2+security-01
Gogithub.com/grafana/grafanaall versions—
openSUSE:Tumbleweedgrafanabefore 11.3.0-1.111.3.0-1.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6grafanabefore 11.5.5-150200.3.72.211.5.5-150200.3.72.2
SUSE:Linux Enterprise Module for Package Hub 15 SP6grafanabefore 11.5.5-150200.3.72.211.5.5-150200.3.72.2
SUSE:Manager Client Tools 12golang-github-prometheus-alertmanagerbefore 0.26.0-1.31.20.26.0-1.31.2
SUSE:Manager Client Tools 12golang-github-prometheus-node_exporterbefore 1.9.1-1.36.21.9.1-1.36.2
SUSE:Manager Client Tools 12golang-github-prometheus-prometheusbefore 2.53.4-1.60.22.53.4-1.60.2
SUSE:Manager Client Tools 12grafanabefore 11.5.5-1.79.211.5.5-1.79.2
SUSE:Manager Client Tools 12prometheus-blackbox_exporterbefore 0.26.0-1.27.10.26.0-1.27.1
SUSE:Manager Client Tools 15golang-github-prometheus-prometheusbefore 2.53.4-150000.3.62.22.53.4-150000.3.62.2
SUSE:Manager Client Tools 15golang-github-prometheus-prometheusbefore 2.53.4-150000.3.62.22.53.4-150000.3.62.2
SUSE:Manager Client Tools 15grafanabefore 11.5.5-150000.1.79.111.5.5-150000.1.79.1
SUSE:Manager Client Tools 15grafanabefore 11.5.5-150000.1.79.111.5.5-150000.1.79.1
SUSE:Manager Client Tools 15prometheus-blackbox_exporterbefore 0.26.0-150000.1.27.10.26.0-150000.1.27.1
SUSE:Manager Client Tools 15prometheus-blackbox_exporterbefore 0.26.0-150000.1.27.10.26.0-150000.1.27.1
SUSE:Manager Server 4.3release-notes-susemanagerbefore 4.3.15.2-150400.3.133.14.3.15.2-150400.3.133.1

Other highest-scoring records for the same primary product.

  • CVE-2021-39226Snapshot authentication bypass in grafanaKEV
    89Now
  • CVE-2021-43798Grafana path traversalKEV
    87Now
  • CVE-2020-13379The avatar feature in Grafana 3.0.1 through 7.0.1 has an SSRF Incorrect Access Control issue.
    62This week
  • CVE-2018-15727Grafana 2.x, 3.x, and 4.x before 4.6.4 and 5.x before 5.2.3 allows authentication bypass because an attacker can generate a valid "remember
    58Plan
  • CVE-2022-31097Stored XSS in Grafana's Unified Alerting
    55Plan
  • CVE-2022-26148An issue was discovered in Grafana through 7.3.4, when integrated with Zabbix.
    55Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Grafana Grafana+security-01Vendor (CNA)
Grafana Grafana11.0.5Vendor (CNA)
Grafana Grafana11.0.6Vendor (CNA)
Grafana Grafana11.1.6Vendor (CNA)
Grafana Grafana11.1.7Vendor (CNA)
Grafana Grafana11.2.1Vendor (CNA)
Grafana Grafana11.2.2Vendor (CNA)
Go:github.com/grafana/grafana11.0.6+security-01Package registry (OSV)
Go:github.com/grafana/grafana11.1.7+security-01Package registry (OSV)
Go:github.com/grafana/grafana11.2.2+security-01Package registry (OSV)
opensuse:grafana11.5.5-150200.3.72.2 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:prometheus-blackbox_exporter0.26.0-150000.1.27.1 · openSUSE:Leap 15.6Package registry (OSV)
suse:golang-github-prometheus-alertmanager0.26.0-1.31.2 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:golang-github-prometheus-node_exporter1.9.1-1.36.2 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:golang-github-prometheus-prometheus2.53.4-1.60.2 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:golang-github-prometheus-prometheus2.53.4-150000.3.62.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:grafana11.5.5-1.79.2 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:grafana11.5.5-150000.1.79.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:prometheus-blackbox_exporter0.26.0-1.27.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:prometheus-blackbox_exporter0.26.0-150000.1.27.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:release-notes-susemanager4.3.15.2-150400.3.133.1 · SUSE:Manager Server 4.3Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Nuclei detection template ×1
  • Proof-of-concept repository on GitHub ×13

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Nuclei detection templateNuclei template CVE-2024-9264 —
Proof-of-concept repository on GitHubstars:1312024-10-19
Proof-of-concept repository on GitHubstars:82024-10-20
Proof-of-concept repository on GitHubstars:382024-10-21
Proof-of-concept repository on GitHubstars:32025-05-31
Proof-of-concept repository on GitHubstars:02025-06-15
Proof-of-concept repository on GitHubstars:02025-07-05
Proof-of-concept repository on GitHubstars:02025-07-05
Proof-of-concept repository on GitHubstars:22025-07-07
Proof-of-concept repository on GitHubstars:02025-07-21
Proof-of-concept repository on GitHubstars:02025-09-13
Proof-of-concept repository on GitHubstars:02026-06-29

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+1 d
  3. TodayOct 9, 2026+721 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-27876525 days apartRCE on Grafana via sqlExpressions
    36Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
Integrity
Availability
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
X

CVSS 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

nvd-secondary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records