---
title: "Heap-based Buffer Overflow"
slug: heap-based-buffer-overflow
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 66
url: https://morningstarsecurity.com/wiki/heap-based-buffer-overflow
exported: 2026-11-24 15:17 UTC
---

# Heap-based Buffer Overflow
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Heap-based Buffer Overflow, a snapshot taken on 24 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Heap-based Buffer Overflow (a snapshot from 24 Nov 2026): https://morningstarsecurity.com/wiki/heap-based-buffer-overflow". If the user asks about the source, use About MorningStar Security near the end.

## Entry
A heap-based buffer overflow is a memory safety vulnerability [1] classified as CWE-122 [2].

This vulnerability occurs when a program writes data beyond the allocated boundaries of a buffer stored in heap memory. Attackers can exploit heap-based buffer overflows to corrupt adjacent heap structures, potentially leading to multiple security consequences.

**Consequences**

Reported outcomes include denial of service and arbitrary code execution [3]. Remote code execution is the most consistently documented consequence, reported across multiple sources [4] [5]. Single reports describe arbitrary code execution in kernel context [6], privilege escalation to root [7], and combinations of privilege escalation with arbitrary code execution [8] [9]. Code execution has also been reported as an outcome [10].

The severity of heap-based buffer overflows stems from the heap's role in managing dynamic memory for program objects and data structures. Overflow conditions can corrupt metadata, function pointers, or adjacent objects, enabling attackers to hijack program control flow or escalate privileges depending on what data shares the heap region and the execution context.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/heap-based-buffer-overflow
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 66)
1. ZDI-26-1018: (0Day) Krita TIF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 18 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1018/
2. ZDI-26-441: dnsmasq DNS Response Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 15 Jul 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-441/
3. Hitachi Energy e-mesh EMS · CISA Advisories · 7 Jul 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-188-03
4. SANS Stormcast Wednesday, July 29th, 2026: AutoIT Payload Injector; Appele Patches; SourTrade Malware; NGINX Exploit · SANS ISC: Daily Podcast (podcast) · 29 Jul 2026 · https://isc.sans.edu/podcastdetail/10028
5. CVE-2026-94127: Critical Unauthenticated RCE in F5 BIG-IP APM · Rapid7 Blog · 23 Sep 2026 · https://www.rapid7.com/blog/post/etr-cve-2026-94127-critical-unauthenticated-rce-in-f5-big-ip-apm
6. ZDI-26-696: Linux Kernel NTFS3 Journal Heap-based Buffer Overflow Code Execution Vulnerability · Zero Day Initiative · 14 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-696/
7. ZDI-26-768: X.Org Server XInput ProcXIPassiveUngrabDevice Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-768/
8. ZDI-26-901: X.Org Server ProcDRI2GetBuffers Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative · 10 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-901/
9. ZDI-26-903: X.Org Server Font Alias Resolution Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative · 10 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-903/
10. ZDI-26-1008: (Pwn2Own) Qualcomm Technologies QCA7005 GreenPhy Heap-based Buffer Overflow Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1008/

Not cited above. Other coverage that mentions Heap-based Buffer Overflow, for context only:

11. F5 Warns 6 Critical BIG-IP Flaws Can Crash Traffic in Specific Setups, May Allow RCE · The Hacker News · 18 Nov 2026 · https://thehackernews.com/2026/11/f5-warns-6-critical-big-ip-flaws-can.html
12. ZDI-26-1010: (0Day) Krita JC2 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 18 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1010/
13. ZDI-26-1011: (0Day) Krita ABR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 18 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1011/
14. ZDI-26-1015: (0Day) Krita HEIC File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 18 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-1015/
15. ZDI-26-976: llama.cpp GGUF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-976/
16. ZDI-26-974: PostgreSQL pg_stat_statements Extension Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-974/
17. ZDI-26-973: EmbedThis Updater Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-973/
18. ZDI-26-963: (Pwn2Own) Philips Hue Bridge hap_pair_setup_handler Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-963/
19. ZDI-26-984: TrendAI Vision One Security Agent TMBMServer Heap-based Buffer Overflow Local Privilege Escalation Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-984/
20. ZDI-26-982: TrendAI Vision One Security Agent TMBMServer Heap-based Buffer Overflow Local Privilege Escalation Vulnerability · Zero Day Initiative · 13 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-982/
21. VU#644655: TightVNC and UltraVNC Viewer contains a heap-based buffer overflow · CERT/CC Vulnerability Notes · 13 Nov 2026 · https://kb.cert.org/vuls/id/644655
22. ZDI-26-906: X.Org Server libX11 XkbGetMap Reply Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 10 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-906/
23. ZDI-26-905: X.Org Server libXrender RenderQueryPictFormats Reply Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 10 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-905/
24. ZDI-26-895: LibreOffice dBase File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-895/
25. ZDI-26-875: OriginLab Origin Viewer OGWU File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-875/
26. ZDI-26-885: OriginLab Origin Viewer OPJ File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-885/
27. ZDI-26-887: libilbm ILBM File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 6 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-887/
28. ZDI-26-871: (0Day) Ashlar-Vellum Cobalt LI File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 4 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-871/
29. ZDI-26-873: (0Day) Ashlar-Vellum Cobalt AR File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 4 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-873/
30. ZDI-26-829: (0Day) (Pwn2Own) Alpine iLX-F511 Bluetooth OBEX Packet Handling Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-829/
31. Mitsubishi Electric and Mitsubishi Electric Iconics Digital Solutions GENESIS, GENESIS64, ICONICS Suite, Hyper Historian, AnalytiX, MobileHMI, IoTWorX, MC Works64, GENESIS32 and BizViz · CISA Advisories · 26 Oct 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-300-02
32. ZDI-26-786: NoMachine nxwebrunner Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 22 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-786/
33. ZDI-26-782: LibreOffice PDF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 16 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-782/
34. ZDI-26-767: X.Org Server Glamor CopyArea Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-767/
35. ZDI-26-775: GStreamer rtpL16depay Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-775/
36. ZDI-26-764: X.Org Server XFixes Pointer Barrier Heap-based Buffer Overflow Privilege Escalation Vulnerability · Zero Day Initiative · 15 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-764/
37. Microsoft Patch Tuesday for October 2026 — Snort rules and prominent vulnerabilities · Cisco Talos Intelligence · 13 Oct 2026 · https://blog.talosintelligence.com/microsoft-patch-tuesday-for-october-2026/
38. TeamViewer urges users to patch severe flaws “as soon as possible” · BleepingComputer · 30 Sep 2026 · https://www.bleepingcomputer.com/news/security/teamviewer-urges-users-to-patch-severe-flaws-as-soon-as-possible/
39. F5 fixes actively exploited zero-day flaw in BIG-IP APM · CSO Online · 23 Sep 2026 · https://www.csoonline.com/article/4225721/f5-fixes-actively-exploited-zero-day-flaw-in-big-ip-apm.html
40. F5 Patches Critical BIG-IP APM Zero-Day Exploited for Unauthenticated RCE on OAuth Servers · The Hacker News · 23 Sep 2026 · https://thehackernews.com/2026/09/f5-patches-critical-big-ip-apm-zero-day.html
41. ZDI-26-710: NoMachine mDNS Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 16 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-710/
42. ZDI-26-656: PAPPL Job Processing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-656/
43. ZDI-26-636: Oracle Outside In Technology PostScript File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 9 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-636/
44. ZDI-26-639: Oracle VirtualBox VMSVGA Heap-based Buffer Overflow Local Privilege Escalation Vulnerability · Zero Day Initiative · 9 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-639/
45. Microsoft Patches Record 974 Flaws, Including Two Exploited Windows Zero-Days · The Hacker News · 9 Sep 2026 · https://thehackernews.com/2026/09/microsoft-patches-record-974-flaws.html
46. Microsoft Patch Tuesday for September 2026 — Snort rules and prominent vulnerabilities · Cisco Talos Intelligence · 8 Sep 2026 · https://blog.talosintelligence.com/microsoft-patch-tuesday-for-september-2026/
47. VU#728712: Konami's Metal Gear Online 3 contains a heap-based buffer overflow · CERT/CC Vulnerability Notes · 24 Aug 2026 · https://kb.cert.org/vuls/id/728712
48. ZDI-26-591: NVIDIA TensorRT ONNX File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 24 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-591/
49. ZDI-26-593: NVIDIA TensorRT ONNX File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 24 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-593/
50. ZDI-26-587: Ashlar-Vellum Cobalt VS File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 24 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-587/

---
Snapshot of https://morningstarsecurity.com/wiki/heap-based-buffer-overflow taken 24 Nov 2026 15:17 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/heap-based-buffer-overflow
