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

573 results · Clear filters · Feed

  • Critical 9.8

    Tenda WH450 HTTP Request DhcpListClient stack-based overflow

    A security flaw has been discovered in Tenda WH450 1.0.0.18. Impacted is an unknown function of the file /goform/DhcpListClient of the component HTTP Request Handler. The manipulation of the argument page results in stack-based buffer overflow. The attack can…

  • Critical 9.8
    CVE-2024-58299 Public exploit

    PCMan FTP Server 2.0 Remote Buffer Overflow via 'pwd' Command

    PCMan FTP Server 2.0 contains a buffer overflow vulnerability in the 'pwd' command that allows remote attackers to execute arbitrary code. Attackers can send a specially crafted payload during the FTP login process to overwrite memory and potentially gain sys…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Several stack-based buffer overflow vulnerabilities exists in the MFER parsing functionality of The Biosig Project libb…

  • Critical 9.8

    Stack-based buffer overflow via unsafe sscanf in check_cookie()

    An unauthenticated remote attacker can abuse unsafe sscanf calls within the check_cookie() function to write arbitrary data into fixed-size stack buffers which leads to full device compromise.

  • Critical 9.8

    Stack-based buffer overflow via unsafe sscanf in check_account()

    An unauthenticated remote attacker can abuse unsafe sscanf calls within the check_account() function to write arbitrary data into fixed-size stack buffers which leads to full device compromise.

  • Critical 9.4

    Stack-based buffer overflow vulnreability in Circutor SGE-PLC1000/SGE-PLC50

    Stack-based buffer overflow vulnerability in CircutorSGE-PLC1000/SGE-PLC50 v9.0.2. The 'SetLan' function is invoked when a new configuration is applied. This new configuration function is activated by a management web request, which can be invoked by a user w…

  • Critical 9.8

    Security Point (Windows) of MaLion and MaLionCloud contains a stack-based buffer overflow vulnerability in processing H…

  • Critical 9.8

    D-Link DIR-816L authentication.cgi authenticationcgi_main stack-based overflow

    A vulnerability was detected in D-Link DIR-816L 2_06_b09_beta. Affected by this vulnerability is the function authenticationcgi_main of the file /authentication.cgi. Performing manipulation of the argument Password results in stack-based buffer overflow. Remo…

  • Critical 9.3

    FIberHome AN5506-04-FA / HG6245D Routers Remote Stack Overflow

    FiberHome AN5506-04-FA firmware versions up to and including RP2631 and HG6245D prior to RP2602 contain a stack-based buffer overflow, as the HTTP service ('webs') fails to enforce maximum lengths for Cookie header values. When a cookie longer than 511 bytes …

  • Critical 9.8

    A stack-based buffer overflow issue was discovered in the phddns client in Blu-Castle BCUM221E 1.0.0P220507 via the pas…

  • Critical 9.1

    Stack-based buffer overflow vulnerability in WAVLINK QUANTUM D3G/WL-WN530HG3 firmware M30HG3_V240730, and possibly othe…

  • Critical 9.8
    CVE-2025-53521 Exploited

    BigIP APM Vulnerability

    When a BIG-IP APM access policy is configured on a virtual server, specific malicious traffic can lead to Remote Code Execution (RCE).   Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

    KEV Mar 27, 2026
  • Critical 9.2

    Valve Source SDK Stack-Based Buffer Overflow RCE

    Valve's Source SDK (source-sdk-2013)'s ragdoll model parsing logic contains a stack-based buffer overflow vulnerability.The tokenizer function `nexttoken` copies characters from an input string into a fixed-size stack buffer without performing bounds checks. …

  • Critical 9.8

    Tenda CH22 HTTP Request AdvSetWrlsafeset formWrlsafeset stack-based overflow

    A security vulnerability has been detected in Tenda CH22 up to 1.0.0.1. This issue affects the function formWrlsafeset of the file /goform/AdvSetWrlsafeset of the component HTTP Request Handler. The manipulation of the argument mit_ssid_index leads to stack-b…

  • Critical 9.3
    CVE-2009-20007 Public exploit

    Talkative IRC v0.4.4.16 Response Buffer Overflow

    Talkative IRC v0.4.4.16 is vulnerable to a stack-based buffer overflow when processing specially crafted response strings sent to a connected client. An attacker can exploit this flaw by sending an overly long message that overflows a fixed-length buffer, pot…

  • Critical 9.3
    CVE-2009-20005 Public exploit

    InterSystems Caché UtilConfigHome.csp Stack Buffer Overflow

    A stack-based buffer overflow exists in the UtilConfigHome.csp endpoint of InterSystems Caché 2009.1. The vulnerability is triggered by sending a specially crafted HTTP GET request containing an oversized argument to the .csp handler. Due to insufficient boun…

  • Critical 9.8

    Tenda AC1206 HTTP Request AdvSetMacMtuWa check_param_changed stack-based overflow

    A vulnerability was found in Tenda AC1206 15.03.06.23. This vulnerability affects the function check_param_changed of the file /goform/AdvSetMacMtuWa of the component HTTP Request Handler. Performing manipulation of the argument wanMTU results in stack-based …

  • Critical 9.8

    Mercury KM08-708H GiGA WiFi Wave2 HTTP Header stack-based overflow

    A vulnerability was detected in Mercury KM08-708H GiGA WiFi Wave2 1.1.14. This affects an unknown function of the component HTTP Header Handler. The manipulation of the argument Host results in stack-based buffer overflow. The attack can be executed remotely.…

  • Critical 9.8

    A vulnerability has been identified in SIMATIC PCS neo V4.1 (All versions), SIMATIC PCS neo V5.0 (All versions), SIMATI…

  • Critical 9.8

    Tenda W30E V16.01.0.19 (5037) was discovered to contain a stack overflow in the v17 parameter in the UploadCfg function…

  • Critical 9.3
    CVE-2011-10032 Public exploit

    Sunway Forcecontrol SNMP NetDBServer.exe Opcode 0x57

    Sunway ForceControl version 6.1 SP3 and earlier contains a stack-based buffer overflow vulnerability in the SNMP NetDBServer service, which listens on TCP port 2001. The flaw is triggered when the service receives a specially crafted packet using opcode 0x57 …

  • Critical 9.3
    CVE-2009-20009 Public exploit

    Belkin Bulldog Plus Web Service Buffer Overflow

    Belkin Bulldog Plus version 4.0.2 build 1219 contains a stack-based buffer overflow vulnerability in its web service authentication handler. When a specially crafted HTTP request is sent with an oversized Authorization header, the application fails to properl…

  • Critical 9.8

    Tenda AC21/AC23 GetParentControlInfo stack-based overflow

    A security vulnerability has been detected in Tenda AC21 and AC23 16.03.08.16. Affected is the function GetParentControlInfo of the file /goform/GetParentControlInfo. Such manipulation of the argument mac leads to stack-based buffer overflow. The attack can b…

  • Critical 9.8

    Tenda AC1206 GetParentControlInfo stack-based overflow

    A vulnerability was detected in Tenda AC1206 15.03.06.23. Affected is the function GetParentControlInfo of the file /goform/GetParentControlInfo. The manipulation of the argument mac results in stack-based buffer overflow. It is possible to launch the attack …

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…

  • Critical 9.8

    A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.…