{"answers":{"affected":"4 open source packages ship an affected version, including github.com/elastic/beats/v7 and github.com/elastic/beats. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-26931 in the wild and no public exploit code.","fix":"Upgrade github.com/elastic/beats/v7 to 7.0.0-alpha2.0.20260112100137-de072c4e371e or later.","what":"CVE-2026-26931 is a medium-severity denial of service vulnerability in Elastic Metricbeat, published on 19 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-26931 and fix it if it is affected.\n\nWhat it is: CVE-2026-26931 is a medium-severity denial of service vulnerability in Elastic Metricbeat, published on 19 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-26931 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/elastic/beats/v7 (Go): affected all versions; fixed in 7.0.0-alpha2.0.20260112100137-de072c4e371e\n- github.com/elastic/beats/v7 (Go): affected all versions; fixed in 7.0.0-alpha2.0.20260112100137-de072c4e371e\n- github.com/elastic/beats/v7 (Go): affected all versions; fixed in 7.0.0-alpha2.0.20260112100137-de072c4e371e\n- github.com/elastic/beats (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-26931/ (Markdown: https://insights.sbomify.com/CVE-2026-26931/index.md)","id":"CVE-2026-26931","markdown":"https://insights.sbomify.com/CVE-2026-26931/index.md","name":"CVE-2026-26931","record":{"aliases":["ECHO-6e6e-7e35-9600","GHSA-5vrw-qjxw-89r5","GO-2026-4790","MINI-3m25-27rr-jm6j","MINI-45vw-48cp-8955","MINI-6p4v-rj56-9f72","MINI-7529-2qf3-7649","MINI-84hh-3vjg-rj56","MINI-92gr-f3hf-v6jm","MINI-9xvg-qq2r-g9vr","MINI-c752-88hq-qqgg","MINI-h63r-82w9-52jh","MINI-h7qj-8pr6-34jx","MINI-hxhc-7q22-fgr8","MINI-pgwc-3qgv-vqcp","MINI-px32-585j-qfph","MINI-rq8g-28g8-5wgq"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Metricbeat data shipper","requires_auth":"low_privilege","summary":"Attackers can cause denial of service in Metricbeat by triggering excessive memory allocation in the Prometheus remote_write handler.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"elastic","cpe":[{"product":"metricbeat","vendor":"elastic"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"description":"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).","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory Allocation with Excessive Size Value in Metricbeat Leading to Denial of Service","id":"CVE-2026-26931","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"Improper Validation of Array Index in Packetbeat Leading to Denial of Service","id":"CVE-2026-26932"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/elastic/beats","purl":"pkg:golang/github.com/elastic/beats","source":"GO-2026-4790"},{"ecosystem":"Go","fixed":["7.0.0-alpha2.0.20260112100137-de072c4e371e"],"introduced":["0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":null,"source":"GHSA-5vrw-qjxw-89r5"},{"ecosystem":"Go","fixed":["7.0.0-alpha2.0.20260112100137-de072c4e371e"],"introduced":["0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":"pkg:golang/github.com/elastic/beats/v7","source":"GHSA-5vrw-qjxw-89r5"},{"ecosystem":"Go","fixed":["7.0.0-alpha2.0.20260112100137-de072c4e371e"],"introduced":["0"],"last_affected":[],"package":"github.com/elastic/beats/v7","purl":"pkg:golang/github.com/elastic/beats/v7","source":"GO-2026-4790"}],"prev":{"headline":"Cross-site scripting in SmarterMail","id":"CVE-2026-26930"},"products":["Metricbeat"],"published":"2026-03-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-19","vendors":["Elastic"]},"summary":"Attackers can cause denial of service in Metricbeat by triggering excessive memory allocation in the Prometheus remote_write handler.","url":"https://insights.sbomify.com/CVE-2026-26931/"}