CVE-2026-17183: CVE Record

Published Aug 19, 2026
·
Updated

Summary

An authenticated organization user who can create or edit alert rules in a folder can query a datasource for which they do not have datasources:query permission. The attacker sets the client-controlled query field queryType to expr while retaining the UID of a real datasource.

The alert-rule authorization path treats the query as a server-side expression and skips datasource permission enforcement, while the evaluator subsequently resolves and executes the query against the real datasource identified by datasourceUid.

Impact

This bypass can expose data accessible through Grafana's configured datasource credentials to a low-privileged user who is not authorized to query that datasource directly. Confidentiality impact is High.

Integrity impact is Low because some datasource backends and configured credentials may permit state-changing queries. No availability impact has been demonstrated.

Attack prerequisites

- Authenticated, low-privileged user in the same Grafana organization - Permission to create or edit alert rules in an accessible folder - No datasources:query permission for the targeted datasource - Knowledge or discovery of the targeted datasource UID - No user interaction required

Technical details / root cause

1. The attacker submits an alert-rule query with queryType: "expr" and the UID of a real datasource. 2. The datasource authorization helper skips permission enforcement when query.QueryType == "expr". 3. queryType is client-controlled and is not validated against the referenced datasource. 4. During evaluation, Grafana selects and loads the actual datasource using DatasourceUID, not the spoofed queryType. 5. The query therefore executes using Grafana's datasource credentials despite the caller lacking datasources:query.

The root cause is inconsistent query classification between authorization and execution: authorization trusts queryType, while execution trusts DatasourceUID.

Affected product / component

- Product: Grafana OSS - Component: Unified Alerting / ngalert - Area: Alert-rule datasource authorization and query evaluation - Confirmed version: Grafana OSS 13.0.1 - Affected version range: not yet assessed

Severity

- CVSS 3.1: 7.1 High - Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N - CWE-863: Incorrect Authorization

Scope is Unchanged because the vulnerable authorization decision and resulting impact remain within Grafana's security authority.

Source

- Researcher: czarflix - Intigriti report: GRAFANALABS-F996ATD7 - Report URL: https://app.intigriti.com/company/submissions/GRAFANALABS-F996ATD7

Related report / duplicate assessment

This is a default-Grafana-OSS reproduction of the root cause previously reported in GRAFANALABS-IAQAFIXI. The earlier submission was archived as Not Applicable because its proof of concept depended on Cloud/Enterprise-specific permission mechanisms, and the researcher was invited to demonstrate the issue under default OSS permissions. This report establishes that missing prerequisite and should be treated as the actionable OSS submission, not dismissed as a duplicate.

VUL-2026-0095 and VUL-2026-0126 concern Enterprise Recorded Queries and have different components, endpoints, and root causes; they are related authorization issues but not duplicates.

Recommended remediation

- Do not exempt a query from datasource authorization based solely on client-controlled queryType. - Resolve the referenced datasource server-side before authorization and apply datasources:query whenever the resolved UID represents a real datasource. - Require expression queries to reference only the canonical server-side expression datasource and reject mismatches such as queryType: "expr" paired with a real datasource UID. - Ensure authorization and evaluation use the same canonical datasource identity and fail closed when fields conflict. - Add regression coverage for an OSS user with folder-level alert-rule edit permission but without datasource query permission, including mismatched queryType and datasourceUid values.

Affected Software

1 affected component
Grafana Labs Grafana OSS=13.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grafana OSS to a version that resolves this vulnerability.

    Fixed in 13.0.1Patch CVE-2026-17183
  2. Configuration

    In alert-rule authorization and evaluation, ensure the same canonical datasource identity is used for both steps; do not exempt queries from datasource authorization solely because client-controlled queryType is "__expr__". If queryType and the resolved/expected canonical datasource identity (DatasourceUID) conflict, fail closed (reject the alert-rule query).

    Unified Alerting (ngalert) - alert-rule datasource authorization & query evaluation queryType vs DatasourceUID authorization matching = fail-closed on mismatch
  3. Configuration

    Require expression queries to reference only the canonical server-side expression datasource. Reject mismatches such as queryType:"__expr__" paired with a real DatasourceUID.

    Unified Alerting (ngalert) - expression queries server-side expression datasource enforcement = require canonical server-side expression datasource
  4. Configuration

    Resolve the referenced datasource server-side before authorization. Apply datasources:query permission enforcement whenever the resolved UID represents a real datasource (i.e., permissions must be checked against the resolved/real datasource identity, not based on queryType alone).

    Unified Alerting (ngalert) - authorization helper authorization uses resolved canonical datasource identity = resolve referenced datasource before authorization
  5. Operational

    Add regression coverage for an OSS user with folder-level alert-rule edit permission but without datasources:query permission, including cases with mismatched queryType and datasourceUid values (queryType:"__expr__" with a real datasource UID), to prevent this authorization/execution inconsistency from reoccurring.

Event History

Aug 19, 2026
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Is unauthenticated access sufficient to exploit this issue?

No. Exploitation requires an authenticated low-privileged user in the same Grafana organization.

2

What permissions and information does an attacker need?

The attacker needs permission to create or edit alert rules in an accessible folder, the UID of a target datasource, and no datasources:query permission for that datasource. They abuse the client-controlled queryType value __expr__ while retaining the real datasource UID.

3

What data could be exposed?

The bypass can expose data available through the credentials configured for the targeted Grafana datasource, even when the user is not authorized to query that datasource directly.

4

Is the impact limited to data disclosure?

Confidentiality impact is high. Some datasource backends and configured credentials may also allow state-changing queries, creating a low integrity impact; no availability impact has been demonstrated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203