# CVE-2024-6322: Grafana plugin data sources vulnerable to access control bypass

> Attackers with access to one data source can bypass access controls to read data from other protected data sources in Grafana.

- **Severity:** Medium 4.4 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Aug 2024
- **Updated:** 23 Nov 2025
- **Also known as:** BIT-grafana-2024-6322, GHSA-hh8p-374f-qgr5, GO-2024-3079, MINI-28h6-pfvp-vwvp, MINI-43x9-gq98-37wm, MINI-4jq3-cjjh-c4w3, MINI-6cvf-w9rj-5jm4, MINI-6fjp-9vjv-wr54, MINI-73fx-f9rc-c2r4, MINI-7p7x-q5c5-pm46, MINI-9279-vh94-2c25, MINI-94w7-cgm5-mrf5, MINI-f2vq-c4px-gp2r, MINI-ffcr-8rrq-r5fm, MINI-g49w-w74r-w85m, MINI-gr7f-qh47-9hmj, MINI-m7r6-fmg9-cqv5, MINI-m9h7-qg2m-8v6h, MINI-rv23-xrxc-jm7f, MINI-wjwc-7rqx-h6w5, UBUNTU-CVE-2024-6322

## What is CVE-2024-6322?

CVE-2024-6322 is a medium-severity missing authorization vulnerability in Grafana, published on 20 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Access control for plugin data sources protected by the ReqActions json field of the plugin.json is bypassed if the user or service account is granted associated access to any other data source, as the ReqActions check was not scoped to each specific datasource. The account must have prior query access to the impacted datasource.

Weakness: CWE-266 (Incorrect Privilege Assignment)

## Which versions are affected by CVE-2024-6322?

10 open source packages ship an affected version, including github.com/grafana/grafana and grafana.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/grafana/grafana` | Go | All versions | None |
| `github.com/grafana/grafana` | Go | From 0.0.0-20240521130516-0072e4a92d89 | 0.0.0-20240725142242-c326d865c58b |
| `github.com/grafana/grafana` | Go | From 0.0.0-20240521130516-0072e4a92d89 | 0.0.0-20240725142242-c326d865c58b |
| `github.com/grafana/grafana` | Go | From 1.9.2-0.20240521130516-0072e4a92d89 | 1.9.2-0.20240725142242-c326d865c58b |
| `github.com/grafana/grafana` | Go | From 1.9.2-0.20240521130516-0072e4a92d89 | 1.9.2-0.20240725142242-c326d865c58b |
| `github.com/grafana/grafana` | Go | From 11.1.0 | 11.1.1 |
| `github.com/grafana/grafana` | Go | From 11.1.0 | 11.1.1 |
| `github.com/grafana/grafana` | Go | From 11.1.2 | 11.1.3 |
| `github.com/grafana/grafana` | Go | From 11.1.2 | 11.1.3 |
| `grafana` | Bitnami | From 11.1.0 | 11.1.3 |

## How do I fix CVE-2024-6322?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 0.0.0-20240725142242-c326d865c58b, 1.9.2-0.20240725142242-c326d865c58b, 11.1.1 or 11.1.3.

## Is CVE-2024-6322 being exploited?

There is no known exploitation of CVE-2024-6322 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-6322 and fix it if it is affected.

What it is: CVE-2024-6322 is a medium-severity missing authorization vulnerability in Grafana, published on 20 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-6322 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/grafana/grafana (Go): affected all versions; no fix listed
- github.com/grafana/grafana (Go): affected from 0.0.0-20240521130516-0072e4a92d89; fixed in 0.0.0-20240725142242-c326d865c58b
- github.com/grafana/grafana (Go): affected from 0.0.0-20240521130516-0072e4a92d89; fixed in 0.0.0-20240725142242-c326d865c58b
- github.com/grafana/grafana (Go): affected from 1.9.2-0.20240521130516-0072e4a92d89; fixed in 1.9.2-0.20240725142242-c326d865c58b
- github.com/grafana/grafana (Go): affected from 1.9.2-0.20240521130516-0072e4a92d89; fixed in 1.9.2-0.20240725142242-c326d865c58b
- github.com/grafana/grafana (Go): affected from 11.1.0; fixed in 11.1.1
- github.com/grafana/grafana (Go): affected from 11.1.0; fixed in 11.1.1
- github.com/grafana/grafana (Go): affected from 11.1.2; fixed in 11.1.3
- github.com/grafana/grafana (Go): affected from 11.1.2; fixed in 11.1.3
- grafana (Bitnami): affected from 11.1.0; fixed in 11.1.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-6322/ (Markdown: https://insights.sbomify.com/CVE-2024-6322/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-6322
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-6322
- OSV: https://osv.dev/vulnerability/CVE-2024-6322

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-6322/
Summaries are generated and may contain mistakes; the official description above is the record.
