nday
CVE-2024-9264

Grafana SQL Expressions allow for remote code execution

Grafana / Grafana

Divulgation : . nday n’a encore aucune trace de correctif ; cela ne veut pas dire qu’il n’en existe pas. Cette vulnérabilité figure dans 2 des 4 sources de PoC : metasploit et nuclei. Aucune inscription au catalogue KEV de la CISA à ce jour.

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 et 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
étape actuelle
POC
divulgation
CVSS
9.4 CRITICAL v4.0

Cycle de vie

Axe en UTC ; point = minute exacte, barre large = date seule, creux = inconnue ou déduite.
date inconnue
DISdivulguée
2024-10-18T03:20Z
PATcorrectif
aucune donnée
ANAanalyse
aucune donnée
POCPoC
metasploit, nuclei
ITWexploitée
aucune donnée
KEVKEV
aucune donnée

Résumé

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.

Journal des événements

+DISdivulgation

Fiche CVE publiée par GRAFANA. CVSS 9.4, gravité critique. Évaluation SSVC de la CISA : exploitation au niveau « poc ».

source cvelist · importé en masse par nday le · brut
{
  "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"
  }
}
date inconnuela source ne donne aucune date
+POCPoC publique

Metasploit propose le module exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264 (« Grafana SQL Expressions DuckDB Command Injection »). La source n’indique pas la date de publication du module.

source metasploit exploit/multi/http/grafana_sql_expressions_rce_cve_2024_9264 · importé en masse par nday le · brut
{
  "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"
  }
}
date inconnuela source ne donne aucune date
+POCPoC publique

Nuclei propose le modèle de détection CVE-2024-9264 (« Grafana Post-Auth DuckDB - SQL Injection To File Read »). La source n’indique pas la date de publication du modèle.

source nuclei · importé en masse par nday le · brut
{
  "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.

Échanges entre chercheurs

0 chercheur en a parlé ces 7 derniers jours

Publications sur X de chercheurs suivis par nday citant cette CVE, telles que publiées. nday ne les vérifie pas.

nday n’a encore recueilli aucune publication sur X d’un chercheur de sa liste citant cette CVE.

Discussion

0 comments

No comments yet.