# CVE-2025-41115: Incorrect privilege assignment

> A malicious SCIM client can override internal user IDs to impersonate users or escalate privileges in Grafana Enterprise when SCIM provisioning is enabled.

- **Severity:** Critical 10.0 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 21 Nov 2025
- **Updated:** 27 Aug 2026
- **Also known as:** BIT-grafana-2025-41115, GHSA-w62r-7c53-fmc5, GO-2025-4153, MINI-496w-pqgh-6cvf, MINI-598p-68r2-9hc5, MINI-5xxq-mr3h-pqcf, MINI-7q3f-3w8j-8f23, MINI-7x9w-hf2c-7vj6, MINI-9vpr-fr5r-5m7x, MINI-cf6x-jx9h-9hr3, MINI-cqwh-4cvj-5585, MINI-gh8w-5rqj-346r, MINI-ghgv-v9g5-p26c, MINI-prhw-p6pm-f829, MINI-r4xq-9fvx-3vrp, MINI-rqv8-ch9p-64p8, MINI-rrhj-89qf-h378, MINI-v668-7rqw-j7j5, MINI-wg3f-537w-pvcg, MINI-xr7x-8qgm-6vxf

## What is CVE-2025-41115?

CVE-2025-41115 is a critical vulnerability in Grafana Grafana, published on 21 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

SCIM provisioning was introduced in Grafana Enterprise and Grafana Cloud in April to improve how organizations manage users and teams in Grafana by introducing automated user lifecycle management.

In Grafana versions 12.x where SCIM provisioning is enabled and configured, a vulnerability in user identity handling allows a malicious or compromised SCIM client to provision a user with a numeric externalId, which in turn could allow to override internal user IDs and lead to impersonation or privilege escalation.

This vulnerability applies only if all of the following conditions are met:
- `enableSCIM` feature flag set to true
- `user_sync_enabled` config option in the `[auth.scim]` block set to true

Weakness: CWE-266 (Incorrect Privilege Assignment)

## Which versions are affected by CVE-2025-41115?

10 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 | From 1.9.2-0.20250310110405-e6fdb746f235 | None |
| `github.com/grafana/grafana` | Go | From 1.9.2-0.20250310110405-e6fdb746f235 | 1.9.2-0.20251106142618-ca5d89812015 |
| `github.com/grafana/grafana` | Go | From 1.9.2-0.20250310110405-e6fdb746f235 | 1.9.2-0.20251106142618-ca5d89812015 |
| `github.com/grafana/grafana` | Go | From 12.0.0 | 12.0.7 |
| `github.com/grafana/grafana` | Go | From 12.0.0 | 12.0.7 |
| `github.com/grafana/grafana` | Go | From 12.1.0 | 12.1.4 |
| `github.com/grafana/grafana` | Go | From 12.1.0 | 12.1.4 |
| `github.com/grafana/grafana` | Go | From 12.2.0 | 12.2.2 |
| `github.com/grafana/grafana` | Go | From 12.2.0 | 12.2.2 |
| `grafana` | Bitnami | From 12.0.0 | 12.2.1 |

Products: Grafana Grafana.

## How do I fix CVE-2025-41115?

Upgrade github.com/grafana/grafana to a fixed version for your release line: 1.9.2-0.20251106142618-ca5d89812015, 12.0.7, 12.1.4 or 12.2.2.

## Is CVE-2025-41115 being exploited?

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

Public exploit code:

- CVE-2025-41115 (github_poc): https://github.com/rockmelodies/Blackash-CVE-2025-41115
- Exploit and test stand for CVE-2025-41115 (github_poc): https://github.com/I3r1h0n/GrafanaSCIMalform

## 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-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)
- [CVE-2018-15727](https://insights.sbomify.com/CVE-2018-15727/): Grafana Authentication Bypass (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-41115 and fix it if it is affected.

What it is: CVE-2025-41115 is a critical vulnerability in Grafana Grafana, published on 21 Nov 2025. 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-2025-41115 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/grafana/grafana (Go): affected from 1.9.2-0.20250310110405-e6fdb746f235; no fix listed
- github.com/grafana/grafana (Go): affected from 1.9.2-0.20250310110405-e6fdb746f235; fixed in 1.9.2-0.20251106142618-ca5d89812015
- github.com/grafana/grafana (Go): affected from 1.9.2-0.20250310110405-e6fdb746f235; fixed in 1.9.2-0.20251106142618-ca5d89812015
- github.com/grafana/grafana (Go): affected from 12.0.0; fixed in 12.0.7
- github.com/grafana/grafana (Go): affected from 12.0.0; fixed in 12.0.7
- github.com/grafana/grafana (Go): affected from 12.1.0; fixed in 12.1.4
- github.com/grafana/grafana (Go): affected from 12.1.0; fixed in 12.1.4
- github.com/grafana/grafana (Go): affected from 12.2.0; fixed in 12.2.2
- github.com/grafana/grafana (Go): affected from 12.2.0; fixed in 12.2.2
- grafana (Bitnami): affected from 12.0.0; fixed in 12.2.1

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

## Sources

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

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