CVE-2026-27876

Source
https://cve.org/CVERecord?id=CVE-2026-27876
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27876.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-27876
Aliases
Downstream
Related
Published
2026-03-27T14:24:36.771Z
Modified
2026-08-13T03:51:54.486770439Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
RCE on Grafana via sqlExpressions
Details

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.

Only instances with the sqlExpressions feature toggle enabled are vulnerable.

Only instances in the following version ranges are affected:

  • 11.6.0 (inclusive) to 11.6.14 (exclusive): 11.6.14 has the fix. 11.5 and below are not affected.
  • 12.0.0 (inclusive) to 12.1.10 (exclusive): 12.1.10 has the fix. 12.0 did not receive an update, as it is end-of-life.
  • 12.2.0 (inclusive) to 12.2.8 (exclusive): 12.2.8 has the fix.
  • 12.3.0 (inclusive) to 12.3.6 (exclusive): 12.3.6 has the fix.
  • 12.4.0 (inclusive) to 12.4.2 (exclusive): 12.4.2 has the fix. 13.0.0 and above also have the fix: no v13 release is affected.
Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27876.json",
    "cna_assigner": "GRAFANA",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "introduced": "11.6.0"
                },
                {
                    "fixed": "11.6.14"
                },
                {
                    "introduced": "12.0.0"
                },
                {
                    "fixed": "12.1.10"
                },
                {
                    "introduced": "12.2.0"
                },
                {
                    "fixed": "12.2.8"
                },
                {
                    "introduced": "12.3.0"
                },
                {
                    "fixed": "12.3.6"
                },
                {
                    "introduced": "12.4.0"
                },
                {
                    "fixed": "12.4.2"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/grafana/grafana

Affected ranges

Type
GIT
Repo
https://github.com/grafana/grafana
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:grafana:grafana:*:*:*:*:enterprise:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "11.6.0"
        },
        {
            "introduced": "11.6.14"
        },
        {
            "fixed": "12.0.0"
        },
        {
            "introduced": "12.1.10"
        },
        {
            "fixed": "12.2.0"
        },
        {
            "introduced": "12.2.8"
        },
        {
            "fixed": "12.3.0"
        },
        {
            "introduced": "12.3.6"
        },
        {
            "fixed": "12.4.0"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

pkg/promlib/v0.*
pkg/promlib/v0.0.1
pkg/promlib/v0.0.2
pkg/promlib/v0.0.3
pkg/promlib/v0.0.4
pkg/promlib/v0.0.5
pkg/promlib/v0.0.6
pkg/promlib/v0.0.7
pkg/promlib/v0.0.8
pkg/promlib/v0.0.9
pkg/util/xorm/v0.*
pkg/util/xorm/v0.0.1
v0.*
v0.0.0-cloud
v0.0.1-test
v1.*
v1.0.1
v1.0.2
v1.0.3
v1.0.4
v1.1.0
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.6.0
v1.6.1
v1.7.0-rc1
v1.9.0
v1.9.0-rc1
v1.9.1
v10.*
v10.0.0-preview
v2.*
v2.0.0-beta1
v2.0.0-beta3
v2.0.1
v2.0.2
v2.5.0
v2.6.0
v2.6.0-beta1
v3.*
v3.0.0-beta6
v3.0.0-beta7
v3.0.1
v3.0.2
v3.1.0-beta1
v3.2.1-test
v4.*
v4.4.0
v4.5.0
v4.5.0-beta1
v4.6.0-beta1
v5.*
v5.,2.4
v5.0.0
v5.0.0-beta1
v5.0.0-beta2
v5.0.0-beta3
v5.0.0-beta4
v5.0.0-beta5
v6.*
v6.0.0-beta1
v6.5
v8.*
v8.3.3
v8.4.0-beta1
v8.5.16
v9.*
v9.3.0-beta1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27876.json"