CVE-2025-3454: Github.com/grafana/grafana Remote Code Execution Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/grafana/grafana to 0.0.0-20250424191517-1f707d16ed5d
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
CVE-2025-3454 Affected Github.com/grafana/grafana Versions
1 component(s)| 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?
Which Github.com/grafana/grafana versions are affected?
What version fixes CVE-2025-3454?
Is github.com/grafana/grafana affected?
What is the CVSS score of CVE-2025-3454?
What CWE is associated with CVE-2025-3454?
How can I check Go dependencies for CVE-2025-3454?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}