# CVE-2024-1442: User with permissions to create a data source can CRUD all data sources

> A user with data source creation permissions can escalate privileges to read, modify, and delete all data sources in the organization.

- **Severity:** Medium 6.0 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Mar 2024
- **Updated:** 22 Nov 2024
- **Also known as:** BIT-grafana-2024-1442, GHSA-5mxf-42f5-j782, GO-2024-2629, MINI-2xrw-hmxm-7426, MINI-33fj-h6cf-qmf7, MINI-34fq-4cgh-c4rh, MINI-4263-4w3m-fxm9, MINI-5p8x-q59w-5fx8, MINI-5xwv-5wqm-5f56, MINI-9xp4-wqxw-9569, MINI-c5rv-xgvf-x7j9, MINI-g4qg-mvw2-4h5f, MINI-gff9-qxhr-jqcq, MINI-gvr8-c33p-7xjh, MINI-m48r-4p5m-8gqq, MINI-q8vr-grrp-v4jp, MINI-r7r7-673x-w4hq, MINI-rwc8-jr42-hw72, MINI-vqxp-7hjw-w3gf, MINI-wg73-868r-762j, UBUNTU-CVE-2024-1442

## What is CVE-2024-1442?

CVE-2024-1442 is a medium-severity vulnerability in Grafana Grafana, published on 7 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

A user with the permissions to create a data source can use Grafana API to create a data source with UID set to *.
Doing this will grant the user access to read, query, edit and delete all data sources within the organization.

Weakness: CWE-269 (Improper Privilege Management)

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

12 open source packages ship an affected version, including github.com/grafana/grafana and grafana. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/grafana/grafana` | Go | All versions | None |
| `github.com/grafana/grafana` | Go | From 10.0.0 | 10.0.12 |
| `github.com/grafana/grafana` | Go | From 10.0.0 | 10.0.12 |
| `github.com/grafana/grafana` | Go | From 10.1.0 | 10.1.8 |
| `github.com/grafana/grafana` | Go | From 10.1.0 | 10.1.8 |
| `github.com/grafana/grafana` | Go | From 10.2.0 | 10.2.5 |
| `github.com/grafana/grafana` | Go | From 10.2.0 | 10.2.5 |
| `github.com/grafana/grafana` | Go | From 10.3.0 | 10.3.4 |
| `github.com/grafana/grafana` | Go | From 10.3.0 | 10.3.4 |
| `github.com/grafana/grafana` | Go | From 8.5.0 | 9.5.7 |
| `github.com/grafana/grafana` | Go | From 8.5.0 | 9.5.7 |
| `grafana` | Bitnami | From 8.5.0 | 9.5.7, 10.0.12, 10.1.8, 10.2.5, 10.3.4 |

Products: Grafana Grafana.

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

Upgrade github.com/grafana/grafana to a fixed version for your release line: 10.0.12, 10.1.8, 10.2.5 or 10.3.4.

## Is CVE-2024-1442 being exploited?

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

## Other vulnerabilities in Grafana Grafana

- [CVE-2021-43798](https://insights.sbomify.com/CVE-2021-43798/): Grafana Path Traversal (high 7.5, exploited in the wild)
- [CVE-2025-41115](https://insights.sbomify.com/CVE-2025-41115/): Incorrect privilege assignment (critical 10.0)
- [CVE-2022-39328](https://insights.sbomify.com/CVE-2022-39328/): Grafana vulnerable to race condition allowing privilege escalation (critical 9.8)
- [CVE-2022-28660](https://insights.sbomify.com/CVE-2022-28660/): Auth bypass in n/a (critical 9.8)
- [CVE-2022-26148](https://insights.sbomify.com/CVE-2022-26148/): Information disclosure in n/a (critical 9.8)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-1442 is a medium-severity vulnerability in Grafana Grafana, published on 7 Mar 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-1442 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 10.0.0; fixed in 10.0.12
- github.com/grafana/grafana (Go): affected from 10.0.0; fixed in 10.0.12
- github.com/grafana/grafana (Go): affected from 10.1.0; fixed in 10.1.8
- github.com/grafana/grafana (Go): affected from 10.1.0; fixed in 10.1.8
- github.com/grafana/grafana (Go): affected from 10.2.0; fixed in 10.2.5
- github.com/grafana/grafana (Go): affected from 10.2.0; fixed in 10.2.5
- github.com/grafana/grafana (Go): affected from 10.3.0; fixed in 10.3.4
- github.com/grafana/grafana (Go): affected from 10.3.0; fixed in 10.3.4
- github.com/grafana/grafana (Go): affected from 8.5.0; fixed in 9.5.7
- github.com/grafana/grafana (Go): affected from 8.5.0; fixed in 9.5.7
- grafana (Bitnami): affected from 8.5.0; fixed in 9.5.7, 10.0.12, 10.1.8, 10.2.5, 10.3.4

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-1442/ (Markdown: https://insights.sbomify.com/CVE-2024-1442/index.md)
```

## Sources

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

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