
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-42154 is a denial-of-service vulnerability in Prometheus, an open-source monitoring system and time series database, caused by unvalidated memory allocation in the remote read endpoint. The remote read endpoint (/api/v1/read) fails to validate the declared decoded length in a snappy-compressed request body before allocating heap memory, allowing an unauthenticated attacker to trigger disproportionately large allocations with a small payload. Affected versions are all Prometheus releases prior to 3.5.3 (LTS) and versions 3.6.0 through 3.11.2 (fixed in 3.11.3). The vulnerability was disclosed on April 27, 2026, and carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).
The root cause is classified as CWE-400 (Uncontrolled Resource Consumption) and CWE-789 (Memory Allocation with Excessive Size Value). When Prometheus processes a snappy-compressed POST request to /api/v1/read, it reads the declared decoded length from the snappy frame header and allocates a buffer of that size before actually decompressing the data — without enforcing any upper bound on that declared length. An attacker can craft a small compressed payload that claims an arbitrarily large decoded size (a "snappy bomb"), causing the server to attempt a multi-gigabyte heap allocation per request. The fix, implemented in PRs #18584 (3.11.x branch) and #18585 (3.5.x LTS branch), adds a check via snappy.DecodedLen to reject requests whose declared decoded length exceeds a safe limit before any allocation occurs. No authentication or special privileges are required to reach this endpoint by default (GitHub Advisory, PR #18584, PR #18585).
Successful exploitation results in exhaustion of available heap memory on the Prometheus server, causing the process to crash and rendering monitoring and alerting capabilities unavailable. Because the attack requires no authentication and can be executed with concurrent requests, even a single attacker can reliably bring down the Prometheus instance. There is no confidentiality or integrity impact — the vulnerability is purely an availability (denial-of-service) issue affecting the Prometheus monitoring process itself (GitHub Advisory).
No public proof-of-concept exploit code has been confirmed, and there is no evidence of active in-the-wild exploitation at this time (GitHub Advisory). The vulnerability was responsibly disclosed by researchers Shadowbyte (4c1dr3aper) and Charlie Lewis. A GitHub repository attributed to ShadowByte1 referencing CVE-2026-42154 appeared in Feedly tracking data, though its contents are not confirmed as a weaponized exploit. The EPSS score is approximately 0.021% (very low probability of exploitation in the near term), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Qualys has added detection for this CVE (detection ID 762953).
/api/v1/read endpoint./api/v1/read endpoint with the appropriate Content-Encoding: snappy and Content-Type: application/x-protobuf headers, requiring no authentication credentials./api/v1/read from unexpected or external source IPs; requests with unusually small body sizes but triggering high memory consumption on the server./api/v1/read with Content-Encoding: snappy from a single or small set of source IPs in rapid succession; out-of-memory (OOM) kill events in system logs (e.g., Linux kernel OOM killer messages referencing the Prometheus process).prometheus process RSS growing to near system limits) followed by process crash or restart; repeated Prometheus service restarts visible in systemd or container orchestration logs.go_memstats_heap_alloc_bytes or go_memstats_sys_bytes metrics showing sudden large spikes correlated with incoming requests to the remote read endpoint.Upgrade Prometheus to version 3.5.3 (LTS) or 3.11.3 (or later), both released on April 27, 2026, which validate the snappy decoded length before allocating memory (v3.11.3 Release, v3.5.3 Release). For environments where immediate patching is not feasible, the official workaround is to place Prometheus behind a reverse proxy or firewall that enforces authentication before requests reach the /api/v1/read endpoint, effectively blocking unauthenticated access (GitHub Advisory). Additionally, network-level rate limiting on the /api/v1/read endpoint can reduce the impact of concurrent attack attempts. Note that the Java io.prometheus:simpleclient library is not affected — this vulnerability is specific to the Prometheus Go server binary.
The Prometheus maintainer team (led by Julien Pivotto / roidelapluie) coordinated a responsible disclosure and released patches on the same day the advisory was published (April 27, 2026), alongside fixes for two other security issues in the same release (v3.11.3 Release). SUSE issued security update announcements (SUSE-SU-2026:2243-1 and SUSE-SU-2026:2267-1) and openSUSE security lists distributed notifications, indicating broad downstream Linux distribution uptake of the fix. The community noted a false-positive risk with OWASP dependency-check incorrectly flagging the Java io.prometheus:simpleclient library due to shared CPE naming, prompting clarifications in several downstream projects.
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
prometheus
devel
prometheus
focal (esm-apps)
prometheus
jammy
prometheus
jammy (esm-apps)
prometheus
noble
prometheus
noble (esm-apps)
prometheus
resolute
prometheus
OpenShift
el9:openshift4/ose-prometheus-0:v4.12.0
RHEL 8
RHEL 9
:appstream:opentelemetry-collector-0:0.152.1-1.el9_4.src
RHEL 10
opentelemetry-collector-0:0.152.1-1.el10_0.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."