Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-6322 Overview
CVE-2024-6322 is an access control bypass vulnerability in Grafana affecting plugin data sources. The flaw stems from improper scoping of the ReqActions check defined in the plugin.json file. Grafana enforces action-based permissions, but the check is not evaluated per data source instance. An authenticated user or service account with query access to any other data source handled by the same plugin can bypass the intended restriction. The vulnerability is categorized under [CWE-266] Incorrect Privilege Assignment.
Critical Impact
Authenticated users with query access to one data source can perform plugin actions on other data sources they should not be authorized to access.
Affected Products
- Grafana instances using plugins that rely on the ReqActions field in plugin.json for access control
- Multi-tenant Grafana deployments with multiple data sources backed by the same plugin
- Grafana environments granting differential data source permissions to users or service accounts
Discovery Timeline
- 2024-08-20 - CVE-2024-6322 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-6322
Vulnerability Analysis
Grafana plugins declare required actions through the ReqActions field in the plugin.json manifest. These actions act as authorization gates for plugin endpoints and data source operations. The vulnerability arises because Grafana evaluates ReqActions globally rather than against the specific data source instance being accessed.
An attacker holding query permission on one data source satisfies the global ReqActions requirement. The authorization layer then permits the action on a different data source instance, provided it is backed by the same plugin. This breaks the per-resource isolation model that administrators expect when granting scoped permissions.
Root Cause
The root cause is a missing resource-scope check in the authorization pipeline. The ReqActions enforcement validates that the principal holds the action against any data source rather than against the targeted data source. This is a classic incorrect privilege assignment pattern tracked under [CWE-266].
Attack Vector
Exploitation requires network access to the Grafana API and an authenticated account with prior query access to at least one data source handled by the targeted plugin. The attacker issues an API request directed at a second data source instance using an endpoint protected by ReqActions. The authorization check passes incorrectly, and the attacker performs the restricted action against the second data source. No user interaction is required.
No verified public exploit code is available. Refer to the Grafana Security Advisory CVE-2024-6322 for vendor-authored technical detail.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2024-6322
Indicators of Compromise
- Grafana audit log entries showing a single user or service account invoking plugin actions across multiple data source UIDs in short succession
- API requests to plugin resource endpoints targeting data sources outside the user's documented permission scope
- Unexpected query or administrative events against data sources that a given account was never explicitly granted access to
Detection Strategies
- Correlate Grafana access logs with the role-based access control (RBAC) assignment matrix to identify actions executed on data sources outside the principal's assigned scope
- Alert on service account activity that touches more data source instances than configured in its permission grants
- Review plugin resource call patterns for the same pluginId traversing multiple datasourceUid values from one session
Monitoring Recommendations
- Enable Grafana's audit logging and forward events to a centralized SIEM for correlation
- Baseline normal data source access per user and service account, then alert on deviation
- Monitor Grafana API endpoints matching the pattern /api/datasources/*/resources/* for cross-tenant access attempts
How to Mitigate CVE-2024-6322
Immediate Actions Required
- Upgrade Grafana to the patched release identified in the Grafana Security Advisory CVE-2024-6322
- Inventory plugins that declare ReqActions in plugin.json and identify data sources using those plugins
- Review service account and user permissions, and revoke query access from accounts that do not require it
Patch Information
Grafana Labs has released fixed versions addressing the scoping defect. Consult the Grafana Security Advisory CVE-2024-6322 for the specific fixed versions corresponding to your deployed major release and apply the upgrade through your standard change management process.
Workarounds
- Restrict query access to only the minimum set of data sources required for each user or service account
- Remove or disable plugins that rely solely on ReqActions for authorization in multi-data-source environments until patched
- Enforce network-level segmentation so untrusted principals cannot reach the Grafana API
# Verify installed Grafana version before and after patching
grafana-server -v
# Example: list configured data sources via the Grafana API for permission review
curl -H "Authorization: Bearer $GRAFANA_API_TOKEN" \
https://grafana.example.com/api/datasources
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

