CVE-2024-9264

Aliases:GHSA-q99m-qcv4-fpm7BIT-grafana-2024-9264GO-2024-3215CGA-299p-4xch-q86mCGA-4cfc-29gv-fp9jCGA-4vr9-jfv8-pjmpCGA-53fx-p9p2-jpvfCGA-58w4-rm22-94xjCGA-58xw-w8fq-g2q9CGA-68j9-3f9c-3f63CGA-6pqr-w6x6-pchrCGA-7jfx-q2vm-52rhCGA-7jr7-222h-g9gwCGA-8g69-5h68-hx29CGA-8qx7-wh9f-747fCGA-8vmj-mw3q-qv8qCGA-9338-7mm4-grh2CGA-99mx-5858-9m23CGA-9fvf-rvjf-29vwCGA-cjh8-4m7j-jqm3CGA-cr4c-rmpr-4r3xCGA-crg5-rg7r-4v84CGA-f4fc-mqgh-q7j3CGA-gjvx-vr43-3994CGA-gx7j-c6mv-vh78CGA-hq7r-hgvr-7q42CGA-jvx6-66wm-xvx9CGA-p797-2jgw-h9jfCGA-p7jf-325q-99phCGA-px9g-jxm3-37jvCGA-q772-h438-84v5CGA-qcvq-vmf3-fvprCGA-qjxc-7qf2-vgx6CGA-qrxp-4g23-3wfpCGA-r3f4-3rww-2rqcCGA-r7wj-5v8f-8xjmCGA-rfcr-7fcj-gm3xCGA-v397-x2w4-7f4rCGA-v62x-84vj-rp4vCGA-w2cf-wm7m-v99fCGA-w58x-j4v2-wjqjCGA-w5wj-9vfc-g2vmCGA-w98g-4c2g-m22j
Modified
Published: 18 Oct 2024, 03:20
Last modified:14 Mar 2025, 10:03

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.9 CRITICAL
v3.1 (cve.org)
EPSS Score
94.86% CRITICAL
95% probability +0.88%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

18 Oct 2024, 03:20
Published
Vulnerability first disclosed
14 Mar 2025, 10:03
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0CRITICALScore: 9.4CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
  • v4.0CRITICALScore: 9.4CVSS: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
  • v3.1CRITICALScore: 9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • v3.1HIGHScore: 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 94.86% Percentile: 100%

Techniques & Countermeasures

  • CWE-94Improper Control of Generation of Code ('Code Injection')

    The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

  • CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')

    The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Affected Systems

  • chainguardgrafana-fips-11.6

    < 0

  • chainguardgrafana-fips-12.0

    < 12.0.10-r6

  • chainguardgrafana-fips-12.1

    < 12.1.10.01-r3

  • chainguardgrafana-fips-12.2

    < 0

  • chainguardgrafana-fips-12.3

    < 0

  • chainguardgrafana-fips-12.4

    < 0

  • chainguardgrafana-fips-13.0

    < 0

  • chainguardgrafana-fips-13.1

    < 13.1.0-r0

  • github.com/grafanagrafana

    all | ≥ 11.0.0, < 11.0.6+security-01 | ≥ 11.1.0, < 11.1.7+security-01 | ≥ 11.2.0, < 11.2.2+security-01

  • grafanagrafana

    ≥ 11.0.0, < 11.0.5 | ≥ 11.1.0, < 11.1.6 | ≥ 11.2.0, < 11.2.1 | ≥ 11.0.0, < 11.0.6 | ≥ 11.1.0, < 11.1.7 | ≥ 11.2.0, < 11.2.2 | 11.0.0

References (11)