Vulnerabilities in pkg:golang/github.com/grafana/pyroscope

PACKAGE
Advisory Identifier: GHSA-m9hq-h476-h2g8
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/grafana/pyroscope

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-41118
GHSA Identifier GHSA-m9hq-h476-h2g8
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Github.com/grafana/pyroscope
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

github.com/grafana/pyroscope fixed: 1.15.2
Upgrade github.com/grafana/pyroscope to 1.15.2
github.com/grafana/pyroscope fixed: 1.16.1
Upgrade github.com/grafana/pyroscope to 1.16.1
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/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

Pyroscope is an open-source continuous profiling database. The database supports various storage backends, including Tencent Cloud Object Storage (COS). If 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. To 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. This vulnerability is fixed in versions: 1.15.x: 1.15.2 and above. 1.16.x: 1.16.1 and above. 1.17.x: 1.17.0 and above (i.e. all versions). Thanks to Théo Cusnir for reporting this vulnerability to us via our bug bounty program.

CVE-2025-41118 Affected Github.com/grafana/pyroscope Versions

2 component(s)
Fixed Versions:
1.15.21.16.1
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?
CVE-2025-41118 is a security vulnerability in Github.com/grafana/pyroscope involving Pyroscope Exposes Storage Secret under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Github.com/grafana/pyroscope versions are affected?
Affected versions include releases prior to 1.15.2, 1.16.1 across affected packages: github.com/grafana/pyroscope.
What version fixes CVE-2025-41118?
Upgrading to 1.15.2, 1.16.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/grafana/pyroscope affected?
Yes, github.com/grafana/pyroscope is affected in releases prior to 1.15.2, 1.16.1. Upgrade your dependency to 1.15.2, 1.16.1 or later.
What is the CVSS score of CVE-2025-41118?
CVE-2025-41118 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-41118?
CVE-2025-41118 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Go dependencies for CVE-2025-41118?
Run the dependency tree command: 'inspect dependencies for github.com/grafana/pyroscope'. 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-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"
  }
}