CVE-2026-42154

Prometheus: remote read endpoint allows denial of service via crafted snappy payload

Published May 4, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, 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. This issue has been patched in versions 3.5.3 and 3.11.3.

Analysis

AI-generated

Technical impact

This vulnerability in Prometheus' remote read endpoint handles SNAPPY-compressed payloads without verifying the decoded length prior to allocating memory. An attacker can exploit this by sending a small, carefully crafted payload that forces the server to allocate an enormous amount of heap space. The resulting memory exhaustion can cause the Prometheus process to crash, leading to denial of service. The weakness is a classic case of resource exhaustion and improper input validation (CWE-400, CWE-770, CWE-789).

Affected Systems

The issue affects all instances of Prometheus running versions older than 3.5.3 and 3.11.3. The vendor recommends updating to either 3.5.3 or 3.11.3 where the check has been added and the allocation guard is in place.

Risk and Exploitability

The CVSS score is 7.5, indicating a high severity for availability impact. The EPSS score is 0.0002, indicating a very low projected probability of exploitation (<1%). The vulnerability requires only unauthenticated network access to the /api/v1/read endpoint, which is commonly exposed. The attack can be launched remotely by an adversary capable of sending HTTP requests, and under concurrent load it can exhaust system memory quickly. As the vulnerability is not listed in CISA's KEV catalog, there is currently no widespread evidence of exploitation, but the potential for disruption remains high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Prometheus to version 3.5.3 or 3.11.3, which includes the input length validation in the remote read endpoint.
  • If upgrade is not immediately feasible, restrict access to the /api/v1/read endpoint by firewall rules or API gateway so that only trusted internal hosts can reach it.
  • Enable monitoring for memory usage spikes and set alerts for unexpected heap growth to detect potential exploitation attempts early.

Generated by OpenCVE AI on May 26, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8rm2-7qqf-34qm Prometheus: Remote read endpoint allows denial of service via crafted snappy payload
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:25039 cve-icon
https://access.redhat.com/errata/RHSA-2026:25245 cve-icon
https://access.redhat.com/errata/RHSA-2026:29770 cve-icon
https://access.redhat.com/errata/RHSA-2026:30651 cve-icon
https://access.redhat.com/errata/RHSA-2026:34357 cve-icon
https://access.redhat.com/errata/RHSA-2026:34359 cve-icon
https://access.redhat.com/errata/RHSA-2026:34364 cve-icon
https://access.redhat.com/errata/RHSA-2026:34794 cve-icon
https://access.redhat.com/errata/RHSA-2026:36651 cve-icon
https://access.redhat.com/errata/RHSA-2026:36796 cve-icon
https://access.redhat.com/errata/RHSA-2026:40118 cve-icon
https://access.redhat.com/errata/RHSA-2026:40262 cve-icon
https://access.redhat.com/errata/RHSA-2026:40792 cve-icon
https://access.redhat.com/errata/RHSA-2026:40945 cve-icon
https://access.redhat.com/errata/RHSA-2026:40970 cve-icon
https://access.redhat.com/errata/RHSA-2026:40972 cve-icon
https://access.redhat.com/errata/RHSA-2026:40974 cve-icon
https://access.redhat.com/errata/RHSA-2026:41019 cve-icon
https://access.redhat.com/errata/RHSA-2026:41030 cve-icon
https://access.redhat.com/errata/RHSA-2026:41031 cve-icon
https://access.redhat.com/errata/RHSA-2026:41066 cve-icon
https://access.redhat.com/errata/RHSA-2026:42146 cve-icon
https://access.redhat.com/errata/RHSA-2026:42796 cve-icon
https://access.redhat.com/errata/RHSA-2026:42852 cve-icon
https://access.redhat.com/errata/RHSA-2026:43052 cve-icon
https://access.redhat.com/errata/RHSA-2026:44235 cve-icon
https://access.redhat.com/errata/RHSA-2026:44263 cve-icon
https://access.redhat.com/errata/RHSA-2026:44622 cve-icon
https://access.redhat.com/errata/RHSA-2026:47149 cve-icon
https://access.redhat.com/errata/RHSA-2026:47728 cve-icon
https://access.redhat.com/errata/RHSA-2026:47952 cve-icon
https://access.redhat.com/errata/RHSA-2026:48699 cve-icon
https://access.redhat.com/errata/RHSA-2026:50758 cve-icon
https://access.redhat.com/errata/RHSA-2026:50843 cve-icon
https://access.redhat.com/errata/RHSA-2026:53412 cve-icon
https://access.redhat.com/errata/RHSA-2026:53413 cve-icon
https://access.redhat.com/errata/RHSA-2026:53415 cve-icon
https://access.redhat.com/errata/RHSA-2026:53530 cve-icon
https://access.redhat.com/errata/RHSA-2026:54288 cve-icon
https://access.redhat.com/errata/RHSA-2026:56340 cve-icon
https://access.redhat.com/errata/RHSA-2026:56789 cve-icon
https://access.redhat.com/errata/RHSA-2026:56912 cve-icon
https://access.redhat.com/errata/RHSA-2026:59833 cve-icon
https://access.redhat.com/errata/RHSA-2026:60386 cve-icon
https://access.redhat.com/security/cve/CVE-2026-42154 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2466505 cve-icon
https://github.com/prometheus/prometheus/pull/18584 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/pull/18585 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/releases/tag/v3.11.3 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/releases/tag/v3.5.3 cve-icon cve-icon cve-icon
https://github.com/prometheus/prometheus/security/advisories/GHSA-8rm2-7qqf-34qm cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-42154 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42154.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-42154 cve-icon
History
Type Values Removed Values Added
CPEs cpe:2.3:a:prometheus:prometheus:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Prometheus
Prometheus prometheus
Vendors & Products Prometheus
Prometheus prometheus
Type Values Removed Values Added
Description Prometheus is an open-source monitoring system and time series database. Prior to versions 3.5.3 and 3.11.3, 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. This issue has been patched in versions 3.5.3 and 3.11.3.
Title Prometheus: remote read endpoint allows denial of service via crafted snappy payload
Weaknesses CWE-400
CWE-789
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-789

    Memory Allocation with Excessive Size Value

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 10, 2026, 12:04 PM
Reserved
Apr 24, 2026, 5:15 PM
Status
Modified
Published
May 4, 2026, 7:16 PM
Modified
Nov 11, 2026, 11:10 PM
Severity
Important
Public date
May 4, 2026, 6:13 PM