CVE-2026-26931: Github.com/elastic/beats/v7 Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-5vrw-qjxw-89r5
CVSS 5.7
CWE-789
Published
Advisory Summary

CVE-2026-26931 is a MODERATE (CVSS 5.7) denial of service vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Github.com/elastic/beats/v7 libraries in the Go ecosystem. The issue involves metricbeat allocates memory with excessive size value leading to denial of service. Remediation is available by upgrading affected packages to version 7.0.0-alpha2.0.20260112100137-de072c4e371e.

CVE-2026-26931 at a Glance

CVE Identifier CVE-2026-26931
GHSA Identifier GHSA-5vrw-qjxw-89r5
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Github.com/elastic/beats/v7
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-26931

To remediate this vulnerability, upgrade all affected Github.com/elastic/beats/v7 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/elastic/beats/v7 fixed: 7.0.0-alpha2.0.20260112100137-de072c4e371e
Upgrade github.com/elastic/beats/v7 to 7.0.0-alpha2.0.20260112100137-de072c4e371e
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/elastic/beats/v7

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-26931, inspect your project dependencies for Github.com/elastic/beats/v7:

inspect dependencies for github.com/elastic/beats/v7

Analyze the terminal output to locate any version of Github.com/elastic/beats/v7 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0-alpha2.0.20260112100137-de072c4e371e), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Github.com/elastic/beats/v7, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Memory Allocation with Excessive Size Value (CWE-789) in the Prometheus remote_write HTTP handler in Metricbeat can lead Denial of Service via Excessive Allocation (CAPEC-130).

CVE-2026-26931 Affected Github.com/elastic/beats/v7 Versions

1 component(s)
Fixed Versions:
7.0.0-alpha2.0.20260112100137-de072c4e371e
Product / Package Ecosystem Affected Versions Fixed Version
github.com/elastic/beats/v7
Go
< 7.0.0-alpha2.0.20260112100137-de072c4e371e
7.0.0-alpha2.0.20260112100137-de072c4e371e

References

Frequently Asked Questions

What is CVE-2026-26931?
CVE-2026-26931 is a security vulnerability in Github.com/elastic/beats/v7 involving Metricbeat Allocates Memory with Excessive Size Value Leading to Denial of Service under CWE-789: Memory Allocation with Excessive Size Value.
Which Github.com/elastic/beats/v7 versions are affected?
Affected versions include releases prior to 7.0.0-alpha2.0.20260112100137-de072c4e371e across affected packages: github.com/elastic/beats/v7.
What version fixes CVE-2026-26931?
Upgrading to 7.0.0-alpha2.0.20260112100137-de072c4e371e (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/elastic/beats/v7 affected?
Yes, github.com/elastic/beats/v7 is affected in releases prior to 7.0.0-alpha2.0.20260112100137-de072c4e371e. Upgrade your dependency to 7.0.0-alpha2.0.20260112100137-de072c4e371e or later.
What is the CVSS score of CVE-2026-26931?
CVE-2026-26931 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-26931?
CVE-2026-26931 is classified under CWE-789: Memory Allocation with Excessive Size Value (The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.).
How can I check Go dependencies for CVE-2026-26931?
Run the dependency tree command: 'inspect dependencies for github.com/elastic/beats/v7'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5vrw-qjxw-89r5",
  "modified" : "2026-03-19T21:23:04Z",
  "published" : "2026-03-19T18:31:18Z",
  "aliases" : [ "CVE-2026-26931" ],
  "summary" : "Metricbeat Allocates Memory with Excessive Size Value Leading to Denial of Service",
  "details" : "Memory Allocation with Excessive Size Value (CWE-789) in the Prometheus remote_write HTTP handler in Metricbeat can lead Denial of Service via Excessive Allocation (CAPEC-130).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/elastic/beats/v7"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0-alpha2.0.20260112100137-de072c4e371e"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-26931"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/elastic/beats/commit/de072c4e371eafeb2a42d65b9ad513f666e4ffd7"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.elastic.co/t/metricbeat-8-19-13-9-2-5-security-update-esa-2026-09/385532"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/elastic/beats"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-789" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-19T21:23:04Z",
    "nvd_published_at" : "2026-03-19T17:16:23Z"
  }
}