Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2024-9264

Grafana SQL Expressions allow for remote code execution

Products / packages Grafana · grafana

Published

Share

Severity and exploitation

Not in CISA KEV

KEV coverage does not rule out exploitation.

KEV checked 29/11/2026, 00:15:30 UTC
GRAFANA · CVSS:4.0 · 9.4
Assessment vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GRAFANA · CVSS:3.1 · 9.9
Assessment vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
The headline uses the highest imported catalog score. Assessments can differ by source and CVSS version.

Severity

critical9.9

CVSS measures technical severity, not the likelihood of an attack.

Known exploitation

Not listed in the checked CISA KEV catalog

Absence from CISA KEV does not rule out attacks.

Public exploit

Not established by this record

Missing evidence does not mean no public exploit exists.

Remediation

Fix status not established

No structured fix or guidance is available here. Check the latest publisher advisory.

What this means

Grafana versions before 11.0.5, 11.1.6, and 11.2.1 have a code injection vulnerability in the SQL Expressions feature, allowing users with VIEWER or higher permission to execute attacks if the `duckdb` binary is present in the $PATH. The vulnerability is due to insufficient sanitization of user input in `duckdb` queries. Users with the required permission and access to the `duckdb` binary can exploit this vulnerability.

Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.

Attack conditions

No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.

Review supporting sources →

Affected versions

Check the exact model, release, and any platform requirements against your installation.

Grafana · GRAFANA

Grafana

6 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

11.0.0 → before 11.0.5

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

11.1.0 → before 11.1.6

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

11.2.0 → before 11.2.1

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

11.0.0 → before 11.0.6

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

11.1.0 → before 11.1.7

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

11.2.0 → before 11.2.2

semver versions

From +security-01: unaffected

Source order retained; this version scheme requires manual review.

unaffected

unknown

Other versions: unaffected

grafana · CISA-ADP

grafana

6 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

11.0.0 → before 11.0.5\+security-01

semver versions

11.0.6 → before 11.0.6\+security-01

semver versions

11.1.0 → before 11.1.6\+security-01

semver versions

11.1.7 → before 11.1.7\+security-01

semver versions

11.2.0 → before 11.2.1\+security-01

semver versions

11.2.2 → before 11.2.2\+security-01

semver versions

unaffected

unknown

Other versions: unaffected

Product identifiers (CPE)cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*
Automatic dependency matching is unavailable for this record. Use the product evidence and publisher’s instructions to check your installation.

What to do

Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.

No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.

cve.new guidance unless attributed to a publisher. This page does not inspect your installation.

Public exploit evidence

No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.

Original source description

Read the full publisher 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.

References

2 sources

Inside the record

Evidence available

Package identity · not supplied
Version evidence
Remediation guidance · not supplied
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2024-9264

View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.

cve.new JSON →

Underlying weaknesses

The source’s classification of what caused the vulnerability.

CWE-94 ↗

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

GRAFANA

Related →
Contributing organizations · 3
GRAFANA

Assigning organization

2024-10-18
CISA-ADP

Additional data publisher

2026-11-04
CVE

Additional data publisher

2025-03-14

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
  1. CVE · CVE-2024-9264

    Observed 2026-11-04T00:38:23.484Z · upstream updated 2026-11-04T00:11:17.366Z

    Product or version evidence changed

    before

    [
      {
        "vendor": "Grafana",
        "name": "Grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.6",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.7",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.2",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [],
        "source": "GRAFANA",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      }
    ]

    after

    [
      {
        "vendor": "Grafana",
        "name": "Grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.6",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.7",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.2",
            "versionType": "semver",
            "changes": [
              {
                "at": "+security-01",
                "status": "unaffected"
              }
            ]
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [],
        "source": "GRAFANA",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      },
      {
        "vendor": "grafana",
        "name": "grafana",
        "platforms": [],
        "versions": [
          {
            "version": "11.0.0",
            "status": "affected",
            "lessThan": "11.0.5\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.0.6",
            "status": "affected",
            "lessThan": "11.0.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.0",
            "status": "affected",
            "lessThan": "11.1.6\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.1.7",
            "status": "affected",
            "lessThan": "11.1.7\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.0",
            "status": "affected",
            "lessThan": "11.2.1\\+security-01",
            "versionType": "semver"
          },
          {
            "version": "11.2.2",
            "status": "affected",
            "lessThan": "11.2.2\\+security-01",
            "versionType": "semver"
          }
        ],
        "defaultStatus": "unaffected",
        "cpes": [
          "cpe:2.3:a:grafana:grafana:*:*:*:*:*:*:*:*"
        ],
        "source": "CISA-ADP",
        "url": "https://www.cve.org/CVERecord?id=CVE-2024-9264"
      }
    ]

Large field values are marked as truncated previews. Original source snapshots remain retained.

Showing up to 50 most recent observed changes.

Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.

critical9.1
CVE-2026-27876

RCE on Grafana via sqlExpressions

A chained attack via SQL Expressions and a Grafana Enterprise plugin can lead to a remote arbitrary code execution impact (RCE). This is enabled by a feature in Grafana (OSS), so all users are always recommended to update to avoid future attack vectors going this path.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

Grafana · Grafana / Red Hat · Red Hat Enterprise Linux 10
high7.1
CVE-2022-23498

When query caching is enabled in Grafana users can query another users session

Grafana is an open-source platform for monitoring and observability. When datasource query caching is enabled, Grafana caches all headers, including grafana_session. As a result, any user that queries a datasource where the caching is enabled can acquire another user’s session. To mitigate the vulnerability you can disable datasource query caching for all datasources. This issue has been patched in versions 9.2.10 and 9.3.4.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

grafana · grafana
high7.3
CVE-2022-23552

Grafana stored XSS in FileUploader component

Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch and prior to versions 8.5.16, 9.2.10, and 9.3.4, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible because SVG files weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

grafana · grafana
medium6.7
CVE-2022-39324

Grafana vulnerable to spoofing originalUrl of snapshots

Grafana is an open-source platform for monitoring and observability. Prior to versions 8.5.16 and 9.2.8, malicious user can create a snapshot and arbitrarily choose the originalUrl parameter by editing the query, thanks to a web proxy. When another user opens the URL of the snapshot, they will be presented with the regular web interface delivered by the trusted Grafana server. The Open original dashboard button no longer points to the to the real original dashboard but to the attacker’s injected URL. This issue is fixed in versions 8.5.16 and 9.2.8.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

grafana · grafana