Memory Allocation with Excessive Size Value Affecting github.com/elastic/beats/v7/metricbeat/module/prometheus/remote_write package, versions >=8.0.0 <8.19.13>=9.0.0 <9.2.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th 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-GITHUBCOMELASTICBEATSV7METRICBEATMODULEPROMETHEUSREMOTEWRITE-15701705
  • published20 Mar 2026
  • disclosed19 Mar 2026
  • creditUnknown

Introduced: 19 Mar 2026

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

How to fix?

Upgrade github.com/elastic/beats/v7/metricbeat/module/prometheus/remote_write to version 8.19.13, 9.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the remote_write HTTP handler (not enabled by default). An attacker can cause excessive memory allocation by sending specially crafted HTTP requests, potentially leading to service disruption.

Workaround:

For users that are not able to upgrade it is recommended:

  1. Disable the remote_write module if it is not required for operations:
  • Remove or comment out the Prometheus remote_write configuration block in metricbeat.yml

  • Restart Metricbeat to apply changes

  1. Restrict network access using firewall rules or network policies:
  • Limit access to the remote_write endpoint to trusted Prometheus server IP addresses only

  • Use host: "localhost" binding if the Prometheus server runs on the same host

CVSS Base Scores

version 4.0
version 3.1