Skip to main content

Grafana

The SQL Expressions experimental feature of Grafana allows for the evaluation of queries containing user input

CVE-2024-9264

What this means

This is rated critical severity (9.4 out of 10). Current estimates put the chance of attack in the next 30 days at roughly 98%. Ask IT whether Grafana Grafana is in your estate, and treat that as the priority.

Full vendor 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.

Scoring and exploitation

9.4/ 10
CVSS 4.0 base scoreCritical

Exploitable over the network with a low-privilege account, and no one has to click or open anything. High impact on confidentiality, integrity, availability, subsequent confidentiality, subsequent integrity and subsequent availability.

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

Exploitability

Longer bar: easier to attack

Attack vectorNetworkAV:N
Attack complexityLowAC:L
Attack requirementsNoneAT:N
Privileges requiredLowPR:L
User interactionNoneUI:N

Impact

Longer bar: more harm

ConfidentialityHighVC:H
IntegrityHighVI:H
AvailabilityHighVA:H
Subsequent confidentialityHighSC:H
Subsequent integrityHighSI:H
Subsequent availabilityHighSA:H
Elevated attack likelihood (~97.6% in 30 days)Model estimate (): a probability signal, not confirmed exploitation
Exploited in the wild
Not confirmed in the
Not reported

Weaknesses

CWE-94CWE-77

Affected products ()

  • Grafana Grafana
Show the raw CPE strings (1)
  • cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:*

References

2 links from the CVE record, grouped by site; the vendor's advisory comes first.