---
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-20 01:24 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 20 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 20 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, privilege escalation to root, and combinations of privilege escalation with arbitrary code execution. Code execution has also been reported as an outcome.

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 (5 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

---
Snapshot of https://morningstarsecurity.com/wiki/heap-based-buffer-overflow taken 20 Nov 2026 01:24 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
