ghsa-q99m-qcv4-fpm7
Vulnerability from github
Published
2024-10-18 06:30
Modified
2025-03-14 20:26
Summary
Grafana Command Injection And Local File Inclusion Via Sql Expressions
Details

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.

Show details on source website


{
   affected: [
      {
         database_specific: {
            last_known_affected_version_range: "<= 11.0.6",
         },
         package: {
            ecosystem: "Go",
            name: "github.com/grafana/grafana",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "11.0.0",
                  },
                  {
                     fixed: "11.0.6+security-01",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         database_specific: {
            last_known_affected_version_range: "<= 11.1.7",
         },
         package: {
            ecosystem: "Go",
            name: "github.com/grafana/grafana",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "11.1.0",
                  },
                  {
                     fixed: "11.1.7+security-01",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
      {
         database_specific: {
            last_known_affected_version_range: "<= 11.2.2",
         },
         package: {
            ecosystem: "Go",
            name: "github.com/grafana/grafana",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "11.2.0",
                  },
                  {
                     fixed: "11.2.2+security-01",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2024-9264",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-77",
         "CWE-94",
      ],
      github_reviewed: true,
      github_reviewed_at: "2024-10-25T14:13:42Z",
      nvd_published_at: "2024-10-18T04:15:04Z",
      severity: "CRITICAL",
   },
   details: "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.",
   id: "GHSA-q99m-qcv4-fpm7",
   modified: "2025-03-14T20:26:23Z",
   published: "2024-10-18T06:30:32Z",
   references: [
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-9264",
      },
      {
         type: "WEB",
         url: "https://github.com/grafana/grafana/pull/81666",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/grafana/grafana",
      },
      {
         type: "WEB",
         url: "https://grafana.com/blog/2024/10/17/grafana-security-release-critical-severity-fix-for-cve-2024-9264",
      },
      {
         type: "WEB",
         url: "https://grafana.com/security/security-advisories/cve-2024-9264",
      },
      {
         type: "WEB",
         url: "https://security.netapp.com/advisory/ntap-20250314-0007",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
         type: "CVSS_V3",
      },
      {
         score: "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",
         type: "CVSS_V4",
      },
   ],
   summary: "Grafana Command Injection And Local File Inclusion Via Sql Expressions",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.