VDB

CVE-2024-9264

CVE-2024-9264 PUBLISHED CVSS 9.4 CRITICAL

Grafana SQL Expressions allow for remote code execution

Reported by grafana · Published October 18, 2024

github.com/grafana/grafana is fixed in 11.2.3, 11.2.2+security-01, 11.1.8 and 3 more (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/grafana/grafanaGo Modules11.2.3, 11.2.2+security-01, 11.1.8, 11.1.7+security-01, 11.0.7, 11.0.6+security-01
GrafanaGitHub Packages11.2.2, 11.2.1, 11.1.7, 11.1.6, 11.0.6, 11.0.5
grafana-fips-12.1Chainguard12.1.10.01-r3
grafanaBitnami11.2.2
grafana-11.0Chainguard11.0.7-r0
grafana-fips-12.0Chainguard12.0.10-r6
grafana-11.0Wolfi11.0.7-r0
grafana-fips-11.0Chainguard11.0.7-r0
grafana-fips-13.1Chainguard13.1.0-r0
grafanaAlpine11.0.7-r0
grafanagrafana11.2.2+security-01, 11.2.1+security-01, 11.1.7+security-01, 11.1.6+security-01, 11.0.6+security-01, 11.0.5+security-01
grafanaBitnami11.2.2

Risk scores

CVSS 4.0
9.4
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

Affected products

VendorProductVersions
GrafanaGrafana11.0.0, 11.1.0, 11.2.0
chainguardgrafana-fips-12.10
chainguardgrafana-fips-13.0*
chainguardgrafana-fips-11.6*
chainguardgrafana-fips-12.4*
github.comgrafana/grafana11.2.0, 11.1.0, 11.0.0
grafanagrafana11.2.2, 11.0.0, 11.0.6
chainguardgrafana-11.00
GrafanaGrafana11.2.0, 11.0.0, 11.1.0
chainguardgrafana-fips-12.00
chainguardgrafana-fips-12.2*
wolfigrafana-11.00
chainguardgrafana-fips-12.3*
chainguardgrafana-fips-11.00
chainguardgrafana-fips-13.10
alpinegrafana0

Timeline

  • Oct 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 18, 2024 Coalition ESS Score (12 in total, the first dated here)
  • Oct 18, 2024 CVE Published
  • Oct 22, 2024 PoC Published
  • Mar 17, 2026 Security Advisory (5 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-9264
vulnetix vdb fixes CVE-2024-9264

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-9264/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›