# CVE-2024-9264: Grafana SQL Expressions allow for remote code execution

Status: published. Published: 2024-10-18. Updated: 2026-11-03.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Grafana / Grafana: ≥ 11.0.0; < 11.0.5 (affected, semver); unaffected at +security-01; ≥ 11.1.0; < 11.1.6 (affected, semver); unaffected at +security-01; ≥ 11.2.0; < 11.2.1 (affected, semver); unaffected at +security-01; ≥ 11.0.0; < 11.0.6 (affected, semver); unaffected at +security-01; ≥ 11.1.0; < 11.1.7 (affected, semver); unaffected at +security-01; ≥ 11.2.0; < 11.2.2 (affected, semver); unaffected at +security-01. Source: CNA: GRAFANA
- grafana / grafana: ≥ 11.0.0; < 11.0.5\+security-01 (affected, semver); ≥ 11.0.6; < 11.0.6\+security-01 (affected, semver); ≥ 11.1.0; < 11.1.6\+security-01 (affected, semver); ≥ 11.1.7; < 11.1.7\+security-01 (affected, semver); ≥ 11.2.0; < 11.2.1\+security-01 (affected, semver); ≥ 11.2.2; < 11.2.2\+security-01 (affected, semver). Source: ADP: CISA-ADP

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:grafana:grafana:11.0.0:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 4.0: 9.4 (critical); 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; source: CNA: GRAFANA

- CVSS 3.1: 9.9 (critical); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H; source: CNA: GRAFANA

- CVSS 4.0: 9.4 (critical); 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; source: NVD: security@grafana.com

- CVSS 3.1: 8.8 (high); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 9.9 (critical); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H; source: NVD: security@grafana.com

- CISA KEV: No listing in collected sources

- EPSS: 97.55% as of 2026-11-03; percentile 99.90%

- SSVC: exploitation poc; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-94, CWE-77

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://grafana.com/security/security-advisories/cve-2024-9264/ (CNA: GRAFANA)

- https://security.netapp.com/advisory/ntap-20250314-0007/ (ADP: CVE)

- https://grafana.com/security/security-advisories/cve-2024-9264/ (security@grafana.com; Vendor Advisory)

- https://security.netapp.com/advisory/ntap-20250314-0007/ (af854a3a-2127-422b-91ae-364da2661108)

## Provenance

- CNA: GRAFANA: https://www.cve.org/CVERecord?id=CVE-2024-9264; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-9264; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-9264; retrieved 2026-11-03; source updated Not reported

Revision: a9021d560c7601c0bb6d192c94d835fc7960e40c259d0ec8e6f9db2b6c342e43

Canonical: https://y2.dev/cve/CVE-2024-9264

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.