Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
Stack Buffer Overflow
A stack buffer overflow occurs when a program writes more data to a buffer allocated on the stack than the buffer can hold, causing the excess data to overwrite adjacent memory. This is a class of memory safety vulnerability 1.
Consequences
Stack buffer overflows can lead to multiple severe outcomes:
Code Execution & Control Flow
The overflow can enable Remote Code Execution 2 or arbitrary code execution 3 by overwriting return addresses or function pointers on the stack, allowing an attacker to redirect program execution to malicious code. More broadly, the vulnerability permits hijacking program execution flow 4.
Memory & Availability
The overflow causes memory corruption 5, potentially destabilizing the process. Attackers may also trigger Denial of Service alongside arbitrary code execution 6.
Attack Mechanism
The core mechanism exploits the stack's linear memory layout. When a function allocates a local buffer without proper bounds checking, input longer than the buffer's size overwrites the return address or saved frame pointer stored above it on the stack. By crafting input with a specific payload, an attacker can replace the return address with a pointer to shellcode or a gadget chain, causing the CPU to execute attacker-controlled instructions when the function returns.
Stack buffer overflows are particularly dangerous because they are often exploitable without Address Space Layout Randomization (ASLR) or other mitigations, and they require no special privileges to trigger—only the ability to provide input to the vulnerable function.
In the news 48
- ZDI-26-499: WatchGuard FireWare OS cli Token Parser Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-456: GIMP TIF File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- This Week in Security: Another Record Patch Tuesday, LAME is More Secure, Secure Boot is Less Secure, and Milk Malware · Hackaday
- My Stack Simulator, (Wed, Jul 8th) · SANS Internet Storm Center
- thttpd v2.26 Stack-Based Buffer Overflow in thttpd htpasswd Utility Allows Local Memory Corruption · Full Disclosure
- thttpd v2.26 Stack-Based Buffer Overflow in thttpd redirect CGI Program · Full Disclosure
- F5 releases emergency patches for critical BIG-IP RCE flaws · BleepingComputer
- F5 Warns 6 Critical BIG-IP Flaws Can Crash Traffic in Specific Setups, May Allow RCE · The Hacker News
- ZDI-26-1033: (0Day) (Pwn2Own) United Chargers Grizzl-E Smart 40A OCPP GetConfiguration Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- 'Not rocket surgery' claims researcher who found six Danfoss fridge controller zero-days in under an hour · The Register: Security
- Don't bother patching: multiple remote code execution vulnerabilities in Danfoss AK-SM800A · Lobsters
- ZDI-26-880: OriginLab Origin Viewer OGWU File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-870: (0Day) Ashlar-Vellum Cobalt XE File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-822: (0Day) (Pwn2Own) Alpine iLX-F511 Framework Service Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-828: (0Day) (Pwn2Own) Alpine iLX-F511 Android Auto Service Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-823: (0Day) (Pwn2Own) Alpine iLX-F511 prh_sdp_service_search_decode Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-827: (0Day) (Pwn2Own) Alpine iLX-F511 Android Auto Connection Handler Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- Several Linux Kernel Vulnerabilities Accidentally Posted To Public Kernel Mailing List · Slashdot: Your Rights Online
- ZDI-26-788: Cisco Snort OLE VBA Decompression Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-750: WatchGuard FireWare OS spamd statushdlr Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- CVE-2026-44756: Pre-Auth RCE in SAP EPP Processing (ICM, Web Dispatcher, disp+work) · Full Disclosure
- D-Link warns of max severity zero-day bug in DIR-822A routers · BleepingComputer
- Zyxel and Veeam Flaws Under Active Exploitation With Command and SYSTEM Access · The Hacker News
- CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories
- ZDI-26-714: Samsung rlottie Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-713: GIMP APNG File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-655: PAPPL Printer IPP Processing Stack-based Buffer Overflow Local Privilege Escalation Vulnerability · Zero Day Initiative
- ZDI-26-632: WatchGuard FireWare OS epm connect Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- Broadcom patches critical VMware Workstation and Fusion VM escape vulnerabilities · SC Media
- WireGuard-Linux Stack-Based Buffer Overflow in lsiio (Linux IIO Userspace Tool) Due to Unbounded fscanf · Full Disclosure
- lighttpd2 Signedness Error in li_chunkqueue_append_mem() Leads to Out-of-Bounds Memory Access · Full Disclosure
- Pyramid Solutions NetStaX EtherNet/IP Stack · CISA Advisories
- [dos] EVerest 2025.9.0 - DoS · Exploit-DB
- Microsoft Patch Tuesday for August 2026 — Snort rules and prominent vulnerabilities · Cisco Talos Intelligence
- Microsoft Patch Tuesday August 2026, (Tue, Aug 11th) · SANS Internet Storm Center
- A Vision for Cargo · Lobsters
- ZDI-26-500: WatchGuard FireWare OS networkd network_wireless_kick_off_user_cb Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- ZDI-26-465: GStreamer OGG File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- Recursion Is Lying to You · Hacker News (YC)
- Critical OpenWrt DHCPv6 Flaw Could Let Unauthenticated Attackers Run Code as Root · The Hacker News
- The age of token efficiency, the age of libraries · Hacker News (YC)
- Why AI Productivity Is a Faulty Metric · HackerNoon
- 2026 Stack Overflow Developer Survey · Lobsters
- I could do that in a weekend (2016) · Hacker News (YC)
- WolfSSL, GeoVision, VTK vulnerabilities · Cisco Talos Intelligence
- [remote] Hydra - Stack Buffer Overflow · Exploit-DB
- Exploit Writing Tutorial Part 2 - Jumping to shellcode - The Video · Corelan
- Exploit Writing Tutorial Part 1 - The Video · Corelan
Sign in for the full story cards: summaries, tags and starring.