Loading...
Skip to main content

CVE-2024-9264 — Vulnerability in github.com/grafana/grafana — CVE...

CRITICAL

Grafana Command Injection And Local File Inclusion Via Sql Expressions

Published October 18, 2024Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published October 18, 2024 (724 days ago).
  • Last revised September 10, 2026 — 692 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/grafana/grafana to 11.2.2+security-01 or later
go get github.com/grafana/grafana@v11.2.2+security-01
Go
Update github.com/grafana/grafana to 11.1.7+security-01 or later
go get github.com/grafana/grafana@v11.1.7+security-01
Go
Update github.com/grafana/grafana to 11.0.6+security-01 or later
go get github.com/grafana/grafana@v11.0.6+security-01

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/grafana/grafana
go
All versions11.2.2+security-01
github.com/grafana/grafana
go
All versions11.1.7+security-01
github.com/grafana/grafana
go
All versions11.0.6+security-01

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2024-9264?
Grafana Command Injection And Local File Inclusion Via Sql Expressions This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2024-9264?
CVE-2024-9264 affects github.com/grafana/grafana. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-9264 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-q99m-qcv4-fpm7
BIT-grafana-2024-9264
GO-2024-3215

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies