CVE-2025-41115: Github.com/grafana/grafana Grafana Incorrect Privilege Assignment Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-w62r-7c53-fmc5
CVSS 10.0
CWE-266
Published
Advisory Summary

CVE-2025-41115 is a CRITICAL (CVSS 10.0) grafana incorrect privilege assignment vulnerability vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves grafana incorrect privilege assignment vulnerability. Remediation is available by upgrading affected packages to version 12.0.7, 12.1.4, 12.2.2, 1.9.2-0.20251106142618-ca5d89812015.

CVE-2025-41115 at a Glance

CVE Identifier CVE-2025-41115
GHSA Identifier GHSA-w62r-7c53-fmc5
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Github.com/grafana/grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-41115

To remediate this vulnerability, upgrade all affected Github.com/grafana/grafana dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/grafana/grafana fixed: 12.0.7
Upgrade github.com/grafana/grafana to 12.0.7
github.com/grafana/grafana fixed: 12.1.4
Upgrade github.com/grafana/grafana to 12.1.4
github.com/grafana/grafana fixed: 12.2.2
Upgrade github.com/grafana/grafana to 12.2.2
github.com/grafana/grafana fixed: 1.9.2-0.20251106142618-ca5d89812015
Upgrade github.com/grafana/grafana to 1.9.2-0.20251106142618-ca5d89812015
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/grafana/grafana

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-41115, inspect your project dependencies for Github.com/grafana/grafana:

inspect dependencies for github.com/grafana/grafana

Analyze the terminal output to locate any version of Github.com/grafana/grafana in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.0.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Github.com/grafana/grafana, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-41115 Affected Github.com/grafana/grafana Versions

4 component(s)
Fixed Versions:
12.0.712.1.412.2.21.9.2-0.20251106142618-ca5d89812015
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
≥ 12.0.0
< 12.0.7
12.0.7
github.com/grafana/grafana
Go
≥ 12.1.0
< 12.1.4
12.1.4
github.com/grafana/grafana
Go
≥ 12.2.0
< 12.2.2
12.2.2
github.com/grafana/grafana
Go
≥ 1.9.2-0.20250310110405-e6fdb746f235
< 1.9.2-0.20251106142618-ca5d89812015
1.9.2-0.20251106142618-ca5d89812015

References

Frequently Asked Questions

What is CVE-2025-41115?
CVE-2025-41115 is a security vulnerability in Github.com/grafana/grafana involving Grafana Incorrect Privilege Assignment vulnerability under CWE-266: Incorrect Privilege Assignment.
Which Github.com/grafana/grafana versions are affected?
Affected versions include releases prior to 12.0.7, 12.1.4, 12.2.2, 1.9.2-0.20251106142618-ca5d89812015 across affected packages: github.com/grafana/grafana.
What version fixes CVE-2025-41115?
Upgrading to 12.0.7, 12.1.4, 12.2.2, 1.9.2-0.20251106142618-ca5d89812015 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/grafana affected?
Yes, github.com/grafana/grafana is affected in releases prior to 12.0.7, 12.1.4, 12.2.2, 1.9.2-0.20251106142618-ca5d89812015. Upgrade your dependency to 12.0.7, 12.1.4, 12.2.2, 1.9.2-0.20251106142618-ca5d89812015 or later.
What is the CVSS score of CVE-2025-41115?
CVE-2025-41115 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2025-41115?
CVE-2025-41115 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2025-41115?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/grafana'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w62r-7c53-fmc5",
  "modified" : "2025-11-27T08:39:59Z",
  "published" : "2025-11-21T15:31:28Z",
  "aliases" : [ "CVE-2025-41115" ],
  "summary" : "Grafana Incorrect Privilege Assignment vulnerability",
  "details" : "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.\n\nIn 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.\n\nThis vulnerability applies only if all of the following conditions are met:\n- `enableSCIM` feature flag set to true\n- `user_sync_enabled` config option in the `[auth.scim]` block set to true",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.1.0"
      }, {
        "fixed" : "12.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.2.0"
      }, {
        "fixed" : "12.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.2-0.20250310110405-e6fdb746f235"
      }, {
        "fixed" : "1.9.2-0.20251106142618-ca5d89812015"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-41115"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/commit/ca5d89812015ef2db3acc62826f73650450b331e"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-w62r-7c53-fmc5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/releases/tag/v12.0.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/releases/tag/v12.1.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/releases/tag/v12.2.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/releases/tag/v12.3.0"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/CVE-2025-41115"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-21T18:11:52Z",
    "nvd_published_at" : "2025-11-21T15:15:52Z"
  }
}