github.com/prometheus/prometheus
Affected
- introduced
0.306.0, fixed0.311.3(semver)
Fixed versions
0.311.3
Fix
- Fixed version
0.311.3go get github.com/prometheus/[email protected]
Advisory
Also known as: BIT-prometheus-2026-42154, CVE-2026-42154, GO-2026-5264
Prometheus: Remote read endpoint allows denial of service via crafted snappy payload
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.
High Basis: The source's own band: HIGH
0.306.0, fixed 0.311.3 (semver)0.311.3
0.311.3go get github.com/prometheus/[email protected]0, fixed 0.305.2 (semver)0.305.2
0.305.2go get github.com/prometheus/[email protected]1.0.0-rc.0, last affected 2.5.0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0