GHSA-8rm2-7qqf-34qm

Suggest an improvement
Source
https://github.com/advisories/GHSA-8rm2-7qqf-34qm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-8rm2-7qqf-34qm/GHSA-8rm2-7qqf-34qm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8rm2-7qqf-34qm
Aliases
Downstream
Related
Published
2026-05-05T19:34:05Z
Modified
2026-05-22T17:44:12.191792959Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Prometheus: Remote read endpoint allows denial of service via crafted snappy payload
Details

Impact

The remote read endpoint (/api/v1/read) does not validate the declared decoded length in a snappy-compressed request body before allocating memory. An unauthenticated attacker can send a small payload that causes a huge heap allocation per request. Under concurrent load this can exhaust available memory and crash the Prometheus process.

Patches

Has the problem been patched? What versions should users upgrade to?

Fixed in 3.11.3 and 3.5.3 LTS. Users should upgrade to these versions or later.

Workarounds

User who can not upgrade can place Prometheus behind a reverse proxy or firewall that requires authentication before requests reach /api/v1/read.

Database specific
{
    "nvd_published_at": "2026-05-04T19:16:04Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-400",
        "CWE-789"
    ],
    "github_reviewed_at": "2026-05-05T19:34:05Z"
}
References

Affected packages

Go / github.com/prometheus/prometheus

Package

Name
github.com/prometheus/prometheus
View open source insights on deps.dev
Purl
pkg:golang/github.com/prometheus/prometheus

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.311.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-8rm2-7qqf-34qm/GHSA-8rm2-7qqf-34qm.json"