Vulnerabilities in pkg:golang/github.com/grafana/pyroscope
PACKAGECVE-2025-41118 is a CRITICAL (CVSS 9.1) pyroscope exposes storage secret vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/grafana/pyroscope libraries in the Go ecosystem. The issue involves pyroscope exposes storage secret. Remediation is available by upgrading affected packages to version 1.15.2, 1.16.1.
pkg:golang/github.com/grafana/pyroscope
Vulnerability advisories affecting package pkg:golang/github.com/grafana/pyroscope. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m9hq-h476-h2g8 | CVE-2025-41118 | CRITICAL | Pyroscope Exposes Storage Secret |
CVE-2025-41118 at a Glance
Security Impact
CVSS: 9.1
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:U/C:H/I:H/A:N).
How to Fix CVE-2025-41118
To remediate this vulnerability, upgrade all affected Github.com/grafana/pyroscope 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/pyroscope to 1.15.2
Upgrade github.com/grafana/pyroscope to 1.16.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/grafana/pyroscope
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-41118, inspect your project dependencies for Github.com/grafana/pyroscope:
inspect dependencies for github.com/grafana/pyroscope
Analyze the terminal output to locate any version of Github.com/grafana/pyroscope in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.15.2), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/grafana/pyroscope, 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-41118 Affected Github.com/grafana/pyroscope Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/grafana/pyroscope
|
Go |
< 1.15.2
|
1.15.2
|
|
github.com/grafana/pyroscope
|
Go |
≥ 1.16.0
< 1.16.1
|
1.16.1
|
References
Frequently Asked Questions
What is CVE-2025-41118?
Which Github.com/grafana/pyroscope versions are affected?
What version fixes CVE-2025-41118?
Is github.com/grafana/pyroscope affected?
What is the CVSS score of CVE-2025-41118?
What CWE is associated with CVE-2025-41118?
How can I check Go dependencies for CVE-2025-41118?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m9hq-h476-h2g8",
"modified" : "2026-04-27T16:37:55Z",
"published" : "2026-04-15T21:30:18Z",
"aliases" : [ "CVE-2025-41118" ],
"summary" : "Pyroscope Exposes Storage Secret",
"details" : "Pyroscope is an open-source continuous profiling database. The database supports various storage backends, including Tencent Cloud Object Storage (COS).\n\nIf the database is configured to use Tencent COS as the storage backend, an attacker could extract the secret_key configuration value from the Pyroscope API.\n\nTo exploit this vulnerability, an attacker needs direct access to the Pyroscope API. We highly recommend limiting the public internet exposure of all our databases, such that they are only accessible by trusted users or internal systems.\n\nThis vulnerability is fixed in versions:\n\n1.15.x: 1.15.2 and above.\n1.16.x: 1.16.1 and above.\n1.17.x: 1.17.0 and above (i.e. all versions).\n\nThanks to Théo Cusnir for reporting this vulnerability to us via our bug bounty program.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/pyroscope"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.15.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/grafana/pyroscope"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.16.0"
}, {
"fixed" : "1.16.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-41118"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/grafana/pyroscope"
}, {
"type" : "WEB",
"url" : "https://grafana.com/security/security-advisories/cve-2025-41118"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-732" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T21:41:13Z",
"nvd_published_at" : "2026-04-15T20:16:32Z"
}
}