SecurityContext

CVE-2024-9264: Grafana - Command Injection & Local File Inclusion

  • Cve: CVE-2024-9264
  • Name: Grafana - Command Injection & Local File Inclusion
  • 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.
  • Impact: Attackers can execute arbitrary commands and include local files, potentially leading to remote code execution and information disclosure.
  • Remediation: Sanitize user input in duckdb queries and ensure the duckdb binary is not in Grafana's PATH or remove the feature if not needed.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution, information_disclosure
  • Requirement type: logged_in
  • Requirements: User must have VIEWER or higher permissions; duckdb binary must be in Grafana's PATH
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.97553
  • Epss percentile: 0.99903
  • Assignee: [email protected]
  • Published at: 2024-10-18T04:15:04Z
  • Age in days: 767
  • Modified at: 2026-11-04T01:17:18Z
  • Public exploits total: 15
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-9264
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, public exploits capped, rejected by nvd

Cwe

IdName
CWE-94Improper Control of Generation of Code
CWE-77Improper Neutralization of Special Elements used in a Command

Nuclei templates

IdUrl
CVE-2024-9264https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yaml

Hackerone

  • Reports: 2
  • Rank: 3806

Public exploits

Same in every row:

  • Source: poc-in-github
UrlAdded date
https://github.com/barun121/CVE-2024-9264-in-Grafana-11.x2026-08-23
https://github.com/ozcanpng/CVE-2024-92642026-07-22
https://github.com/ferralon-demo/grafana-cve-2024-9264-duckdb-rce2026-07-07
https://github.com/yeonchoda/CVE-2024-92642026-06-29
https://github.com/amalpvatayam67/day05-grafana-sqlexpr-lab2025-09-13

References

UrlSourceTags
https://grafana.com/security/security-advisories/cve-2024-9264/nvdVendor Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9264.yamlnuclei_templateNuclei Template
https://security.netapp.com/advisory/ntap-20250314-0007/nvd

Products

ProductAffectedPlatform boundSourcesUrl
grafana:grafana= 11.0.0nonvd/v1/products/grafana/grafana

Projects

RepositoryLink kindsIndexedUrl
grafana/grafanapackage, pullyes/v1/repositories/grafana/grafana

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 15
  • Public exploit first date: 2024-10-17
  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 2
  • Exposed hosts: 202202
  • Checked, none or zero: known exploited, known exploited by, initial access
  • Not known: known exploited since, vulncheck known exploited since, initial access since

Nuclei template