### 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.
Update github.com/prometheus/prometheus to 0.311.3; github.com/prometheus/prometheus to 0.305.2 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanPrometheus: Remote read endpoint allows denial of service via crafted snappy payload affects github.com/prometheus/prometheus (go), github.com/prometheus/prometheus (go), github.com/prometheus/prometheus (go). Severity is high. ### 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.
AI coding agents often install or upgrade packages automatically in go. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|
### 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.
Update github.com/prometheus/prometheus to 0.311.3; github.com/prometheus/prometheus to 0.305.2 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanPrometheus: Remote read endpoint allows denial of service via crafted snappy payload affects github.com/prometheus/prometheus (go), github.com/prometheus/prometheus (go), github.com/prometheus/prometheus (go). Severity is high. ### 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.
AI coding agents often install or upgrade packages automatically in go. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|
| github.com/prometheus/prometheusgo | >=0.306.0,<0.311.3 | 0.311.3 |
|---|---|---|
| github.com/prometheus/prometheusgo | <0.305.2 | 0.305.2 |
| github.com/prometheus/prometheusgo | >=1.0.0-rc.0,<=2.5.0 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| github.com/prometheus/prometheusgo | >=0.306.0,<0.311.3 | 0.311.3 |
|---|---|---|
| github.com/prometheus/prometheusgo | <0.305.2 | 0.305.2 |
| github.com/prometheus/prometheusgo | >=1.0.0-rc.0,<=2.5.0 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard