Cloudanix VulnDB

CVE-2026-13732

High · 7.0

CVSS

7.0

EPSS

0.1%

Published

Aug 31, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Craft an ELF binary containing malicious .stab/.stabstr sections that exercise the STABS parser bug
  2. Deliver the binary to the target (email, download, shared storage)
  3. Victim opens the binary with GDB and performs any symbol-inspection command
  4. 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