CVE-2025-41118 Sensitive COS `SecretKey` exposed in plaintext via configuration API due to missing type protection
Attackers with API access can extract Tencent COS SecretKey in plaintext if COS backend is configured, exposing cloud credentials.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-41118?
CVE-2025-41118 is a critical vulnerability in Grafana Pyroscope, published on 15 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-41118?
6 open source packages ship an affected version, including github.com/grafana/pyroscope and grafana-pyroscope. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/grafana/pyroscope Go | All versions | 1.15.2, 1.16.1 |
github.com/grafana/pyroscope Go | All versions | 1.15.2 |
github.com/grafana/pyroscope Go | All versions | 1.15.2 |
github.com/grafana/pyroscope Go | From 1.16.0 | 1.16.1 |
github.com/grafana/pyroscope Go | From 1.16.0 | 1.16.1 |
grafana-pyroscope Bitnami | All versions | 1.15.2, 1.17.0 |
Products include Grafana Pyroscope.
How do I fix CVE-2025-41118?
Upgrade github.com/grafana/pyroscope to a fixed version for your release line: 1.15.2 or 1.16.1.
Is CVE-2025-41118 being exploited?
There is no known exploitation of CVE-2025-41118 in the wild and no public exploit code.
Sources
Also known as BIT-grafana-pyroscope-2025-41118, GHSA-m9hq-h476-h2g8, GO-2026-5501.