Memory Allocation with Excessive Size Value Affecting github.com/prometheus/prometheus/storage/remote package, versions <0.305.3>=1.0.0-rc.0 <3.5.3>=3.6.0-rc.0 <3.11.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.81% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMPROMETHEUSPROMETHEUSSTORAGEREMOTE-16419305
  • published5 May 2026
  • disclosed4 May 2026
  • creditShadowByte1

Introduced: 4 May 2026

CVE-2026-42154  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade github.com/prometheus/prometheus/storage/remote to version 0.305.3, 3.5.3, 3.11.3 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the remote read endpoint when processing snappy-compressed request bodies. An attacker can cause excessive memory allocation and crash the process by sending specially crafted payloads.

CVSS Base Scores

version 4.0
version 3.1