A heap-buffer overflow occurs when a program writes more data to a buffer than its heap allocation can hold. The extra data may overwrite nearby memory, potentially corrupting program state, causing a crash, or enabling code execution under the right conditions.
In cyber security, this bug matters especially in code that processes attacker-controlled input, such as a file or data decoder. An attack may supply crafted input that triggers the overflow. Defenses include validating input lengths, using memory-safe programming practices and tools, and promptly applying software updates that fix affected code.


