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,641 results · Clear filters · Feed

  • High 8.8

    A stack-based buffer overflow vulnerability exists in the confsrv set_mf_rule functionality of TCL LinkHub Mesh Wifi MS…

  • High 8.8

    A stack-based buffer overflow vulnerability exists in the confsrv set_port_fwd_rule functionality of TCL LinkHub Mesh W…

  • High 8.8

    A stack-based buffer overflow vulnerability exists in the confsrv confctl_set_app_language functionality of TCL LinkHub…

  • High 8.8

    A stack-based buffer overflow vulnerability exists in the confers ucloud_add_node_new functionality of TCL LinkHub Mesh…

  • High 7.1

    A stack-based buffer overflow vulnerability was found on ADM

    A stack-based buffer overflow vulnerability was found inside ADM when using WebDAV due to the lack of data size validation. An attacker can exploit this vulnerability to run arbitrary code. Affected ADM versions include: 3.5.9.RUE3 and below, 4.0.5.RVI1 and b…

  • High 7.5

    This vulnerability allows local attackers to escalate privileges on affected installations of xhyve. An attacker must f…

  • High 7.8

    Stack-based Buffer Overflow in vim/vim

    Stack-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.

  • High 7.5

    DoS Vulnerability in URLEncodedFormDecoder in Vapor

    Vapor is a server-side Swift HTTP web framework. When using automatic content decoding an attacker can craft a request body that can make the server crash with the following request: `curl -d "array[_0][0][array][_0][0][array]$(for f in $(seq 1100); do echo -…

  • High 7.8

    Bandisoft ARK Library buffer overflow vulnerability

    In the code that verifies the file size in the ark library, it is possible to manipulate the offset read from the target file due to the wrong use of the data type. An attacker could use this vulnerability to cause a stack buffer overflow and as a result, per…

  • High 7.8
    CVE-2022-27791 EPSS 18%

    Adobe Acrobat Reader DC Font Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

    Acrobat Reader DC versions 22.001.20085 (and earlier), 20.005.3031x (and earlier) and 17.012.30205 (and earlier) is affected by a stack-based buffer overflow vulnerability due to insecure processing of a font, potentially resulting in arbitrary code execution…

  • High 7.8

    Adobe After Effects Stack Buffer Overflow Could Lead To RCE

    Adobe After Effects versions 22.2.1 (and earlier) and 18.4.5 (and earlier) are affected by a stack overflow vulnerability due to insecure handling of a crafted file, potentially resulting in arbitrary code execution in the context of the current user. Exploit…

  • High 7.8

    Adobe After Effects Stack Buffer Overflow Could Lead To RCE

    Adobe After Effects versions 22.2.1 (and earlier) and 18.4.5 (and earlier) are affected by a stack overflow vulnerability due to insecure handling of a crafted file, potentially resulting in arbitrary code execution in the context of the current user. Exploit…

  • High 7.8

    XMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code Execution

    XMP Toolkit SDK version 2021.07 (and earlier) is affected by a stack-based buffer overflow vulnerability potentially resulting in arbitrary code execution in the context of the current user. Exploitation requires user interaction in that a victim must open a …

  • High 7.8

    XMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code Execution

    XMP Toolkit SDK version 2021.07 (and earlier) is affected by a stack-based buffer overflow vulnerability potentially resulting in arbitrary code execution in the context of the current user. Exploitation requires user interaction in that a victim must open a …

  • High 7.8

    XMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code Execution

    XMP Toolkit SDK version 2021.07 (and earlier) is affected by a stack-based buffer overflow vulnerability potentially resulting in arbitrary code execution in the context of the current user. Exploitation requires user interaction in that a victim must open a …

  • High 7.8

    XMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code Execution

    XMP Toolkit SDK version 2021.07 (and earlier) is affected by a stack-based buffer overflow vulnerability potentially resulting in arbitrary code execution in the context of the current user. Exploitation requires user interaction in that a victim must open a …

  • High 7.8

    ICSA-22-090-03 Fuji Electric Alpha5

    The affected product is vulnerable to a stack-based buffer overflow, which may allow an attacker to execute arbitrary code.

  • High 7.8

    Rockwell Automation Studio 5000 Logix Designer Code Injection

    Omron CX-Position (versions 2.5.3 and prior) is vulnerable to multiple stack-based buffer overflow conditions while parsing a specific project file, which may allow an attacker to locally execute arbitrary code.

  • High 7.6

    Stack buffer overflow in Wyze Cam Pan v2, Cam v2 and Cam v3

    Stack-based Buffer Overflow vulnerability in Wyze Cam Pan v2, Cam v2, Cam v3 allows an attacker to run arbitrary code on the affected device. This issue affects: Wyze Cam Pan v2 versions prior to 4.49.1.47. Wyze Cam v2 versions prior to 4.9.8.1002. Wyze Cam v…

  • High 7.5

    Stack buffer overflow in pjproject

    PJSIP is a free and open source multimedia communication library written in C. Versions 2.12 and prior contain a stack buffer overflow vulnerability that affects PJSUA2 users or users that call the API `pjmedia_sdp_print(), pjmedia_sdp_media_print()`. Applica…

  • High 7.8

    Adobe After Effects Stack-based Buffer Overflow Arbitrary code execution

    Adobe After Effects versions 22.2 (and earlier) and 18.4.4 (and earlier) are 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 int…

  • High 7.8

    Adobe After Effects Stack-based Buffer Overflow Arbitrary code execution

    Adobe After Effects versions 22.2 (and earlier) and 18.4.4 (and earlier) are 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 int…

  • High 7.8

    ICSA-22-055-01 FATEK Automation FvDesigner

    The affected product is vulnerable to a stack-based buffer overflow while processing project files, which may allow an attacker to execute arbitrary code

  • High 8.8
    CVE-2022-24355 Public exploit

    This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link TL-…

  • High 7.0

    MariaDB CONNECT Storage Engine Stack-based Buffer Overflow Privilege Escalation Vulnerability. This vulnerability allow…

  • High 7.8

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of Bentley View 10.15.0.…

  • High 7.8

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of Bentley MicroStation …

  • High 7.8

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of Bentley MicroStation …

  • High 7.8

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of Bentley MicroStation …

  • High 8.4

    Stack-based Buffer Overflow in vim/vim

    Stack-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.

  • High 7.8

    A stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon ReadIJCoord coordinate pars…

  • High 7.8

    A stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon ReadXYCoord coordinate pars…

  • High 7.8

    A stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon DCodeNumber parsing functio…

  • High 7.8

    A stack-based buffer overflow vulnerability exists in the Gerber Viewer gerber and excellon GCodeNumber parsing functio…

  • High 8.4

    Stack-based Buffer Overflow in vim/vim

    Stack-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.

  • High 8.8

    This vulnerability allows remote attackers to execute arbitrary code on affected installations of TP-Link TL-WA1201 1.0…

  • High 7.5

    Junos OS: MX and SRX series: Flowd core observed if the SIP ALG is enabled and a specific Session Initiation Protocol (SIP) packet is received

    A Stack-based Buffer Overflow vulnerability in the flow processing daemon (flowd) of Juniper Networks Junos OS on MX Series and SRX series allows an unauthenticated networked attacker to cause a flowd crash and thereby a Denial of Service (DoS). Continued rec…

  • High 7.8

    Omron CX-One

    Omron CX-One Versions 4.60 and prior are vulnerable to a stack-based buffer overflow while processing specific project files, which may allow an attacker to execute arbitrary code.

  • High 7.8

    WECON LeviStudioU

    WECON LeviStudioU Versions 2019-09-21 and prior are vulnerable to a stack-based buffer overflow, which may allow an attacker to remotely execute code.

  • High 7.8
    CVE-2021-44703 EPSS 58%

    Adobe Acrobat Pro DC Stack Overflow Vulnerability Arbitrary code execution

    Acrobat Reader DC version 21.007.20099 (and earlier), 20.004.30017 (and earlier) and 17.011.30204 (and earlier) are affected by a stack buffer overflow vulnerability due to insecure handling of a crafted file, potentially resulting in arbitrary code execution…