CVE-2026-13732
High · 7.0CVSS
7.0
EPSS
0.1%
Published
Aug 31, 2026
CISA due date
—
Cloudanix analysis
A bug in the popular debugger program can let an attacker run their own commands on a computer simply by tricking someone into opening a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- High
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The read_member_functions() function in gdb/stabsread.c mishandles removal of destructor entries from a linked list of C++ member functions while decrementing the list length counter, leaving stale pointers that cause an out-of-bounds write when the list is later copied into its final allocated array.
Why it matters to the business
An attacker who supplies a malicious ELF binary can gain arbitrary command execution inside the GDB process on a developer's or analyst's workstation when the file is opened and any symbol-inspection command is issued, potentially leading to theft of source code, credentials, or lateral movement without requiring execution of the inferior binary.
How an attack unfolds
An attacker builds an ELF containing crafted .stab and .stabstr sections that trigger the linked-list accounting error; the victim opens the file in GDB and runs any operation that inspects symbols (e.g., break), causing the out-of-bounds write that is turned into code execution inside the debugger process.
How to fix it
Upgrade GDB to a version containing the corrected STABS parser logic; until patches are available, avoid opening untrusted binaries or use alternative debuggers for initial triage.
How to confirm the fix worked
Confirm the installed GDB binary reports a patched version string; test that a known-triggering ELF no longer produces memory corruption or unexpected process behavior under symbol inspection.
Typical attack path
- Craft an ELF binary containing malicious .stab/.stabstr sections that exercise the STABS parser bug
- Deliver the binary to the target (email, download, shared storage)
- Victim opens the binary with GDB and performs any symbol-inspection command
- Out-of-bounds write is triggered and converted into arbitrary command execution within the GDB process
How to detect it
Review GDB process creation logs and command-line history for unexpected ELF files; monitor for GDB child processes spawning shells or network connections after symbol operations; inspect system audit logs for unusual memory-write or crash patterns inside GDB.
What your security team should do
- Apply the GDB security update as soon as it is released
- Restrict GDB usage on sensitive systems to trusted binaries only
- Add GDB process execution to endpoint monitoring for anomalous child processes or network activity
The record
A flaw was found in GDB's STABS debug format parser. The read_member_functions() function in gdb/stabsread.c contains a linked list removal bug in the code that separates destructor and non-destructor member functions of C++ classes. The bug causes the destructor entries to remain in the main function list while the list length counter is decremented, resulting in an out-of-bounds write when the function list is copied to its final allocated array. An attacker can craft an ELF binary with malicious .stab and .stabstr sections that triggers this out-of-bounds write when a user opens the file in GDB and performs any symbol-inspection operation such as setting a breakpoint. The inferior process does not need to be executed. Under controlled conditions, this was demonstrated to achieve execution of arbitrary commands within the GDB process.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120931 Out of bounds write in WebGL in Google Chrome on on Android prior to 156.0.8078.47… CWE-787
- CVE-2026-61495 TinyUSB through 0.21.0, fixed in commit e85c2b8, contains an out-of-bounds write… CWE-787
- CVE-2026-121037 Out of bounds write in ANGLE in Google Chrome on on Windows prior to 157.0.8103.38… CWE-787
- CVE-2026-120952 An out-of-bounds write in the MongoDB Atlas SQL ODBC Driver may be triggered when a value… CWE-787
- CVE-2026-120959 A memory-handling flaw in the MongoDB Atlas SQL ODBC Driver can cause values returned for… CWE-787
- CVE-2026-63418 Monitoring Plugins is a suite of plugins for monitoring applications. CWE-787
- CVE-2026-40661 An out-of-bounds write (OOW) condition in the AMD Compressonator SDK could allow an… CWE-787
- CVE-2026-121513 Off-by-one Heap Overflow in µD3TN v0.15.1 SPP Parser allows Unauthenticated Remote… CWE-787