Skip to content
OpenAdvisories

Weakness (CWE)

CWE-121: Stack-based Buffer Overflow

Variant Draft

The product writes past the end of a buffer that was allocated on the stack.

How to prevent it (5 mitigations)
  1. Operation, Build and Compilation

    Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.

    D3-SFCV (Stack Frame Canary Validation) from D3FEND [REF-1334] discusses canary-based detection in detail.

  2. Architecture and Design

    Use an abstraction library to abstract away risky APIs. Not a complete solution.

  3. Implementation

    Implement and perform bounds checking on input.

  4. Implementation

    Do not use dangerous functions such as gets. Use safer, equivalent functions which check for boundary errors.

  5. Operation, Build and Compilation

    Run or compile the software using features or extensions that randomly arrange the positions of a program's executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.

    Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64]. Imported modules may be similarly realigned if their default memory addresses conflict with other modules, in a process known as "rebasing" (for Windows) and "prelinking" (for Linux) [REF-1332] using randomly generated addresses. ASLR for libraries cannot be used in conjunction with prelink since it would require relocating the libraries at run-time, defeating the whole purpose of prelinking.

    For more information on these techniques see D3-SAOR (Segment Address Offset Randomization) from D3FEND [REF-1335].

Source: MITRE CWE-121

2,638 results · Clear filters · Feed

  • High 8.0

    Alpine iLX-F511 vCard Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

    Alpine iLX-F511 vCard Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected Alpine iLX-F511 devices. User interaction is required to exploit this vul…

  • High 8.8

    Session Smart Router: An attacker-controlled input causes remote code execution when parsing DHCP options

    A Stack Buffer Overflow vulnerability in the DHCP client in Juniper Networks Session Smart Router allows an unauthenticated attacker on the local network to achieve remote code execution via a malicious DHCP reply.

  • High 8.8

    Dell PowerProtect Data Domain, Feature Release versions 7.7.1.0 through 8.8, LTS2024 release versions 7.13.1.0 through …

  • High 7.1

    rtl_433 through 25.12 Stack-Based Buffer Overflow via Proflame 2 Decoder

    rtl_433 through 25.12 contains a stack-based buffer overflow vulnerability in proflame2_mc() that allows nearby attackers to write past a 7-byte stack buffer by sending more than seven valid Manchester-coded words. Attackers can transmit a crafted OOK radio s…

  • High 7.8

    Substance3D - Painter | Stack-based Buffer Overflow (CWE-121)

    Substance3D - Painter is affected by a Stack-based Buffer Overflow vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a victim must open a malicious file.

  • High 8.6

    Fireware OS Authenticated Stack Buffer Overflow in certd Allows Denial of Service

    A stack-based buffer overflow vulnerability in the Fireware OS certd process allows an authenticated attacker with access to the Firebox management interface to crash the certificate management service and potentially execute arbitrary code by sending a speci…

  • High 8.8

    VMime through 0.9.2 Stack-Based Buffer Overflow via uuencode Decoder

    VMime through 0.9.2 contains an integer underflow in the uuEncoder::decode function that allows remote attackers to trigger a stack-based buffer overflow via crafted uuencoded MIME parts. Attackers can send an email with a uuencoded line whose length characte…

  • High 7.8

    FLTK through 1.4.5 Stack Buffer Overflow via Fl_BMP_Image colors_used Field

    FLTK through 1.4.5 contains a stack-based buffer overflow vulnerability in Fl_BMP_Image::load_bmp_() that allows attackers to corrupt stack memory by supplying an oversized BMP colors_used field. Attackers can craft BMP or ICO files with colors_used above 256…

  • High 7.8

    A stack buffer overflow was addressed through improved input validation. This issue is fixed in macOS Golden Gate 27, m…

  • High 7.8

    V-SFT provided by FUJI ELECTRIC CO., LTD. contains a stack-based buffer overflow vulnerability. Opening a crafted V7 fi…

  • High 7.5

    osmo-msc through 1.15.0 contains a stack-based buffer overflow in decode_mme_name() in src/libmsc/sgs_iface.c. This all…

  • High 8.1

    ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 Stack Buffer Overflow via bzip2 Compressed Images

    ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a stack-based buffer overflow in the handling of bzip2 compressed images. Attackers can supply a crafted image using bzip2 compression to overwrite stack memory during decoding, causing crashes or …

  • High 7.6

    ConnMan through 2.0 has a stack-based buffer overflow via a DHCPv6 Reply message. This occurs in get_domains in gdhcp/c…

  • High 7.5

    Microsoft Exchange Online Remote Code Execution Vulnerability

    Stack-based buffer overflow in Microsoft Exchange Online allows an authorized attacker to execute code over a network.

  • High 7.5

    Out-of-bounds write in Zigbee Simple_Desc_req handling

    In EmberZNet 9.1.1 and earlier, a malformed Simple_Desc_req response can result in an out-of-bounds write potentially leading to remote code execution. This response must come from a device that has already joined the network, and the attacker must wait for a…

  • High 7.5

    Out-of-bounds write in Zigbee Publish Price Matrix handling

    In EmberZNet 9.1.1 and earlier, a malformed Publish Price Matrix command can result in an out-of-bounds write potentially leading to remote code execution. These messages must come from a device that has already joined the network. Only devices supporting the…

  • High 7.8
    CVE-2026-92183 Public exploit

    GIMP APNG File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

    GIMP APNG File Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that …

  • High 8.8

    IBM Planning Analytics Buffer Overflow

    IBM Planning Analytics 2.0 and 2.1 are vulnerable to a stack-based buffer overflow, caused by improper bounds checking. An attacker could overflow the buffer and execute arbitrary code on the system.

  • High 7.8

    IBM Sterling Connect:Direct for Unix Buffer Overflow

    IBM Sterling Connect Direct for Unix 6.4.0.0 through 6.4.0.6 and 6.3.0.0 through 6.3.0.7 apnotify utility is vulnerable to a code injection due to insufficient validation of user input.

  • High 8.6

    A stack-based buffer overflow vulnerability could allow a remote authenticated attacker to achieve arbitrary code execu…

  • High 8.6

    A stack-based buffer overflow vulnerability in the FileProcess::CheckDir function could allow a remote authenticated at…

  • High 8.6

    A stack-based buffer overflow vulnerability in a non-functional feature could allow an authenticated attacker to achiev…

  • High 7.5

    A stack-based buffer overflow vulnerability in the logs settings functionality could allow an authenticated attacker to…

  • High 8.2

    Buffer Copy without Checking Size of Input in certain ASUS router models allows an adjacent authenticated user to corru…

  • High 8.8

    A stack overflow was addressed with improved input validation. This issue is fixed in iOS 26.7 and iPadOS 26.7, iOS 27 …

  • High 7.8

    Gimp: gimp: heap out-of-bounds read/write in psd thumbnail loader (load_resource_1033)

    A flaw was found in GIMP. The PSD thumbnail resource loader performs a BGR-to-RGB channel swap with a fixed 3-byte stride and does not verify that the JPEG thumbnail is RGB. A crafted grayscale PSD thumbnail can cause a heap out-of-bounds read and write in th…

  • High 8.5
    CVE-2026-105810 Public exploit

    Authenticated Local Stack Overflow in TP-Link Tapo C320WS

    Tapo C320WS V2.0 contains an authenticated stack-based buffer overflow in the local onboarding Wi-Fi configuration path. An authenticated attacker on the adjacent network can submit a crafted request containing an oversized encrypted password field, overwrite…

  • High 8.1

    IBM MQ Buffer Overflow

    IBM MQ could allow a remote attacker to execute arbitrary code due to a stack buffer overflow when processing TLS certificates with malformed distinguished names during channel connection establishment.

  • High 7.5

    GV-ASManager Web Server Buffer Overflow Vulnerability

    A vulnerability is in Web Server default connection ports under the process name GeoWebServer.exe .

  • High 8.8

    Microsoft Office Word Remote Code Execution Vulnerability

    Stack-based buffer overflow in Microsoft Office Word allows an unauthorized attacker to execute code over a network.

  • High 8.8

    Microsoft Office Word Remote Code Execution Vulnerability

    Stack-based buffer overflow in Microsoft Office Word allows an unauthorized attacker to execute code over a network.

  • High 8.8

    Microsoft Office Word Remote Code Execution Vulnerability

    Stack-based buffer overflow in Microsoft Office Word allows an unauthorized attacker to execute code over a network.

  • High 7.3

    HPE NonStop XABroker - Memory corruption vulnerability

    A buffer overflow vulnerability in HPE NonStop XABroker may cause memory corruption, resulting in application crash.

  • High 7.3

    HPE NonStop ODBC/MX Server - Memory corruption vulnerability

    A buffer overflow vulnerability in HPE NonStop ODBC/MX Server may cause memory corruption, resulting in application crash.

  • High 7.3

    HPE NonStop ODBC/MX Services - Memory corruption vulnerability

    A buffer overflow vulnerability in HPE NonStop ODBC/MX Services may cause memory corruption, resulting in application crash.

  • High 7.6

    HPE NonStop SQL/MX Executor - Buffer overflow vulnerability

    A stack buffer overflow vulnerability in HPE NonStop SQL/MX Executor may potentially result in information disclosure or process crash.

  • High 7.5

    HPE NonStop TELSERV - Memory corruption vulnerability

    A stack-based buffer overflow vulnerability in HPE NonStop TELSERV can cause memory corruption that may result in DoS.

  • High 7.5

    HPE NonStop SNMP Trap Multiplexer - Memory Corruption vulnerability

    A security vulnerability in HPE NonStop SNMP Trap Multiplexer may cause memory corruption

  • High 8.8

    Junos OS and Junos OS Evolved: An adjacent LDP peer causes routing-engine compromise when LDP is enabled

    A Stack-based Buffer Overflow vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated adjacent LDP peer to cause an rpd crash or execute arbitrary code via a malformed LDP Label Mapping me…

  • High 8.8

    Junos OS and Junos OS Evolved: A network attacker causes root-level code execution or denial of service when SNMP and AAA are enabled

    A Stack-based Buffer Overflow vulnerability in the authd Juniper Networks Junos OS and Junos OS Evolved allows a network attacker with SNMP read access to execute code with root privileges or cause a denial of service via a specific SNMP packet, when SNMP and…