nday
CVE-2024-9264

Grafana SQL Expressions allow for remote code execution

Grafana / Grafana

Fecha de divulgación: . nday aún no tiene constancia de una corrección; eso no significa que no exista parche. La recogen 2 de las 4 fuentes de PoC: metasploit y nuclei. No figura en el KEV de CISA.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

command injection
CWE-77, stated by NVD's analysts
code injection
CWE-94, stated by the CNA GRAFANA y NVD, republishing [email protected]
network
AV:N in 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 (CVSS 4.0) from the CNA GRAFANA
no user interaction
UI:N in 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 (CVSS 4.0) from the CNA GRAFANA
Metasploit
Metasploit modules exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264
nuclei
nuclei templates CVE-2024-9264
Grafana
affected products in the CVE record: Grafana · GrafanaCPE names NVD's analysts give as vulnerable: a:grafana:grafana
monitoring / logging / IT management
affected products in the CVE record: Grafana · GrafanaCPE names NVD's analysts give as vulnerable: a:grafana:grafanathe product type of Grafana in nday's product registry
etapa
POC
divulgación
cvss
9.4 CRITICAL v4.0

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
2024-10-18T03:20Z
PATparcheada
sin registro aún
ANAanalizada
sin registro aún
POCPoC
metasploit, nuclei
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:N
None: success does not depend on how the target is deployed or running
Privileges required PR:L
Low: ordinary user privileges
User interaction UI:N
None: no action by anyone other than the attacker

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

CVSS 4.0 vector from the CVE record, scored by the CNA GRAFANA.

Registro de eventos

+DISdivulgación

GRAFANA publicó el registro CVE. CVSS 9.4, severidad crítica. La evaluación SSVC de CISA asigna a la explotación el valor poc.

fuente cvelist · nday , importación masiva · en bruto
{
  "id": 60197,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264",
  "occurred_at": "2024-10-18T03:20:52.489Z",
  "observed_at": "2026-11-12T17:00:49.411818Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "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",
      "version": "4.0",
      "base_score": 9.4,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2024-11-01T03:55:22.563345Z",
      "automatable": "no",
      "exploitation": "poc",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2024-10-18T03:20:52.489Z",
    "assigner_short_name": "GRAFANA"
  }
}
se desconocela fuente no indica fecha
+POCPoC pública

Metasploit incluye el módulo exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264 (Grafana SQL Expressions DuckDB Command Injection). La fuente no indica cuándo se publicó el módulo.

fuente metasploit exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264 · nday , importación masiva · en bruto
{
  "id": 51201,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/http/grafana_sql_expressions_rce_cve_2024_9264.rb",
    "rank": 600,
    "check": true,
    "title": "Grafana SQL Expressions DuckDB Command Injection",
    "cve_ids": [
      "CVE-2024-9264"
    ],
    "fullname": "exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2026-10-14 12:06:46 +0000",
    "vuln_disclosure_date": "2024-10-17"
  }
}
se desconocela fuente no indica fecha
+POCPoC pública

Nuclei tiene la plantilla de detección CVE-2024-9264 (Grafana Post-Auth DuckDB - SQL Injection To File Read). La fuente no indica cuándo se publicó la plantilla.

fuente nuclei · nday , importación masiva · en bruto
{
  "id": 56585,
  "type": "poc_published",
  "source": "nuclei",
  "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:53.738369Z",
  "is_backfill": true,
  "dedupe_key": "CVE-2024-9264",
  "detail": {
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml",
    "kind": "detection_template",
    "title": "Grafana Post-Auth DuckDB - SQL Injection To File Read",
    "severity": "critical",
    "confidence": "curated",
    "cvss_score": "9.9",
    "template_id": "CVE-2024-9264",
    "template_path": "http/cves/2024/CVE-2024-9264.yaml"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Debate de investigadores

0 investigadores lo mencionaron en los últimos 7 días

Publicaciones en X de investigadores de la lista de nday que mencionan este CVE, tal como se publicaron. nday no las verifica.

nday aún no ha recopilado publicaciones en X de investigadores de su lista sobre este CVE.

Discussion

0 comments

No comments yet.