CVE-2025-3454: Github.com/grafana/grafana Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-9j65-rv5x-4vrf
CVSS 5.0
CWE-285
Published
Advisory Summary

CVE-2025-3454 is a MODERATE (CVSS 5.0) remote code execution vulnerability (CWE-285: Improper Authorization) affecting Github.com/grafana/grafana libraries in the Go ecosystem. The issue involves grafana's datasource proxy api allows authorization checks to be bypassed. Remediation is available by upgrading affected packages to version 0.0.0-20250424191517-1f707d16ed5d.

CVE-2025-3454 at a Glance

CVE Identifier CVE-2025-3454
GHSA Identifier GHSA-9j65-rv5x-4vrf
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/grafana/grafana
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.0

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

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

How to Fix CVE-2025-3454

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: 0.0.0-20250424191517-1f707d16ed5d
Upgrade github.com/grafana/grafana to 0.0.0-20250424191517-1f707d16ed5d
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-3454, 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 0.0.0-20250424191517-1f707d16ed5d), 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. 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

This vulnerability in Grafana's datasource proxy API allows authorization checks to be bypassed by adding an extra slash character in the URL path. Users with minimal permissions could gain unauthorized read access to GET endpoints in Alertmanager and Prometheus datasources. The issue primarily affects datasources that implement route-specific permissions, including Alertmanager and certain Prometheus-based datasources.

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

1 component(s)
Fixed Versions:
0.0.0-20250424191517-1f707d16ed5d
Product / Package Ecosystem Affected Versions Fixed Version
github.com/grafana/grafana
Go
≥ 0.0.0-20210414170620-dadccdda06e6
< 0.0.0-20250424191517-1f707d16ed5d
0.0.0-20250424191517-1f707d16ed5d

References

Frequently Asked Questions

What is CVE-2025-3454?
CVE-2025-3454 is a security vulnerability in Github.com/grafana/grafana involving Grafana's datasource proxy API allows authorization checks to be bypassed under CWE-285: Improper Authorization.
Which Github.com/grafana/grafana versions are affected?
Affected versions include releases prior to 0.0.0-20250424191517-1f707d16ed5d across affected packages: github.com/grafana/grafana.
What version fixes CVE-2025-3454?
Upgrading to 0.0.0-20250424191517-1f707d16ed5d (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 0.0.0-20250424191517-1f707d16ed5d. Upgrade your dependency to 0.0.0-20250424191517-1f707d16ed5d or later.
What is the CVSS score of CVE-2025-3454?
CVE-2025-3454 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2025-3454?
CVE-2025-3454 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2025-3454?
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-9j65-rv5x-4vrf",
  "modified" : "2025-06-05T05:42:47Z",
  "published" : "2025-06-02T12:30:33Z",
  "aliases" : [ "CVE-2025-3454" ],
  "summary" : "Grafana's datasource proxy API allows authorization checks to be bypassed",
  "details" : "This vulnerability in Grafana's datasource proxy API allows authorization checks to be bypassed by adding an extra slash character in the URL path.\n\nUsers with minimal permissions could gain unauthorized read access to GET endpoints in Alertmanager and Prometheus datasources.\n\nThe issue primarily affects datasources that implement route-specific permissions, including Alertmanager and certain Prometheus-based datasources.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/grafana/grafana"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0-20210414170620-dadccdda06e6"
      }, {
        "fixed" : "0.0.0-20250424191517-1f707d16ed5d"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3454"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grafana/grafana"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grafana/grafana/blob/be8d153dc33734caba4f617ff571d18253e68fa0/CHANGELOG.md#10417security-01-2025-04-22"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/blog/2025/04/22/grafana-security-release-medium-and-high-severity-fixes-for-cve-2025-3260-cve-2025-2703-cve-2025-3454"
  }, {
    "type" : "WEB",
    "url" : "https://grafana.com/security/security-advisories/cve-2025-3454"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-05T05:42:46Z",
    "nvd_published_at" : "2025-06-02T11:15:22Z"
  }
}