Advisory

GHSA-q99m-qcv4-fpm7

Also known as: BIT-grafana-2024-9264, CVE-2024-9264, GO-2024-3215

Summary

Grafana Command Injection And Local File Inclusion Via Sql Expressions

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-10-18 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/grafana/grafana

Go · All systems

Affected

  • introduced 11.0.0, fixed 11.0.6+security-01 (semver)

Fixed versions

11.0.6+security-01

Fix

github.com/grafana/grafana

Go · All systems

Affected

  • introduced 11.1.0, fixed 11.1.7+security-01 (semver)

Fixed versions

11.1.7+security-01

Fix

github.com/grafana/grafana

Go · All systems

Affected

  • introduced 11.2.0, fixed 11.2.2+security-01 (semver)

Fixed versions

11.2.2+security-01

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences