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

4,197 results · Feed

  • High 8.8

    Tenda O3V2 httpd setSysTimeInfo fromSysToolTime stack-based overflow

    A vulnerability, which was classified as critical, was found in Tenda O3V2 1.0.0.12(3880). Affected is the function fromSysToolTime of the file /goform/setSysTimeInfo of the component httpd. The manipulation of the argument Time leads to stack-based buffer ov…

  • Critical 9.8
    CVE-2025-7206 EPSS 22%

    D-Link DIR-825 httpd switch_language.cgi sub_410DDC stack-based overflow

    A vulnerability, which was classified as critical, has been found in D-Link DIR-825 2.10. This issue affects the function sub_410DDC of the file switch_language.cgi of the component httpd. The manipulation of the argument Language leads to stack-based buffer …

  • High 7.5

    IBM InfoSphere Data Replication VSAM for z/OS Remote Source denial of service

    IBM InfoSphere Data Replication VSAM for z/OS Remote Source 11.4 could allow a remote user to cause a denial of service by sending an invalid HTTP request to the log reading service.

  • Medium 5.5

    Adobe Framemaker | Stack-based Buffer Overflow (CWE-121)

    Adobe Framemaker versions 2020.8, 2022.6 and earlier are affected by a Stack-based Buffer Overflow vulnerability that could lead to disclosure of sensitive memory. Exploitation of this issue requires user interaction in that a victim must open a malicious fil…

  • High 7.8

    Illustrator | Stack-based Buffer Overflow (CWE-121)

    Illustrator versions 28.7.6, 29.5.1 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 interaction in that a victim…

  • High 7.8

    Illustrator | Stack-based Buffer Overflow (CWE-121)

    Illustrator versions 28.7.6, 29.5.1 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 interaction in that a victim…

  • High 8.8

    D-Link DI-500WF jhttpd ip_position.asp sprintf stack-based overflow

    A vulnerability was found in D-Link DI-500WF 17.04.10A1T. It has been declared as critical. Affected by this vulnerability is the function sprintf of the file ip_position.asp of the component jhttpd. The manipulation of the argument ip leads to stack-based bu…

  • Medium 4.9

    A stack-based buffer overflow in Ivanti Connect Secure before version 22.7R2.8 and Ivanti Policy Secure before version …

  • High 7.8

    A vulnerability has been identified in Solid Edge SE2025 (All versions < V225.0 Update 5). The affected applications co…

  • High 7.8

    GStreamer H266 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

    GStreamer H266 Codec Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit thi…

  • Low 3.3

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 4.0

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 4.0

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 5.3

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 4.0

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 4.0

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Medium 4.0

    Stack overflow risk when vector images are parsed during file preview Impact: Successful exploitation of this vulnerabi…

  • Critical 9.8

    LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240626 have a stack-buffer-overflow in lj_strfmt_wfnum in lj_str…

  • High 8.8

    Belkin F9K1122 webs formBSSetSitesurvey stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33. It has been rated as critical. Affected by this issue is the function formBSSetSitesurvey of the file /goform/formBSSetSitesurvey of the component webs. The manipulation of the argument submit-url-ok leads …

  • High 8.8

    Belkin F9K1122 webs formSetLanguage stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33. It has been declared as critical. Affected by this vulnerability is the function formSetLanguage of the file /goform/formSetLanguage of the component webs. The manipulation of the argument webpage leads to …

  • High 8.8

    Belkin F9K1122 webs formWlanSetupWPS stack-based overflow

    A vulnerability has been found in Belkin F9K1122 1.00.33 and classified as critical. This vulnerability affects the function formWlanSetupWPS of the file /goform/formWlanSetupWPS of the component webs. The manipulation of the argument wps_enrolee_pin/webpage …

  • High 8.8

    Belkin F9K1122 webs formWlanMP stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33. It has been classified as critical. Affected is the function formWlanMP of the file /goform/formWlanMP of the component webs. The manipulation of the argument ateFunc/ateGain/ateTxCount/ateChan/ateRate/ateM…

  • High 8.8

    Belkin F9K1122 webs formConnectionSetting stack-based overflow

    A vulnerability, which was classified as critical, has been found in Belkin F9K1122 1.00.33. Affected by this issue is the function formConnectionSetting of the file /goform/formConnectionSetting of the component webs. The manipulation of the argument max_Con…

  • High 8.8

    Belkin F9K1122 webs formWanTcpipSetup stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33 and classified as critical. This issue affects the function formWanTcpipSetup of the file /goform/formWanTcpipSetup of the component webs. The manipulation of the argument pppUserName leads to stack-based bu…

  • High 8.8
    CVE-2025-7088 EPSS 14%

    Belkin F9K1122 webs formPPPoESetup stack-based overflow

    A vulnerability, which was classified as critical, was found in Belkin F9K1122 1.00.33. This affects the function formPPPoESetup of the file /goform/formPPPoESetup of the component webs. The manipulation of the argument pppUserName leads to stack-based buffer…

  • High 8.8
    CVE-2025-7087 EPSS 14%

    Belkin F9K1122 webs formL2TPSetup stack-based overflow

    A vulnerability classified as critical was found in Belkin F9K1122 1.00.33. Affected by this vulnerability is the function formL2TPSetup of the file /goform/formL2TPSetup of the component webs. The manipulation of the argument L2TPUserName leads to stack-base…

  • High 8.8

    Belkin F9K1122 webs formPPTPSetup stack-based overflow

    A vulnerability classified as critical has been found in Belkin F9K1122 1.00.33. Affected is the function formPPTPSetup of the file /goform/formPPTPSetup of the component webs. The manipulation of the argument pptpUserName leads to stack-based buffer overflow…

  • High 8.8

    Belkin F9K1122 webs formiNICWpsStart stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33. It has been rated as critical. This issue affects the function formiNICWpsStart of the file /goform/formiNICWpsStart of the component webs. The manipulation of the argument pinCode leads to stack-based buff…

  • High 8.8

    Belkin F9K1122 webs formWpsStart stack-based overflow

    A vulnerability was found in Belkin F9K1122 1.00.33. It has been declared as critical. This vulnerability affects the function formWpsStart of the file /goform/formWpsStart of the component webs. The manipulation of the argument pinCode leads to stack-based b…

  • High 7.5

    Stack Buffer Overflow in MQTTCore

    Stack-based Buffer Overflow vulnerability in ABB RMC-100, ABB RMC-100 LITE. When the REST interface is enabled by the user, and an attacker gains access to the control network, and CVE-2025-6074 is exploited, the attacker can use the JSON configuration to ove…

  • High 7.5

    Stack Buffer Overflow in MQTTCore

    Stack-based Buffer Overflow vulnerability in ABB RMC-100, ABB RMC-100 LITE. When the REST interface is enabled by the user, and an attacker gains access to the control network, and user/password broker authentication is enabled, and CVE-2025-6074 is exploited…

  • High 7.5

    Tenda AC6 v15.03.05.16_multi is vulnerable to Buffer Overflow in the formSetFirewallCfg function via the firewallEn par…

  • Medium 4.8

    HP Universal Print Driver – Potential Denial of Service

    HP Universal Print Driver is potentially vulnerable to denial of service due to buffer overflow in versions of UPD 7.4 or older (e.g., v7.3.x, v7.2.x, v7.1.x, etc.).

  • Medium 4.2

    OAM service stack overflow caused by crafted SOAP message within the MNO internal RAN management network

    Sending a crafted SOAP "set" operation message within the Mobile Network Operator (MNO) internal Radio Access Network (RAN) management network can cause Nokia Single RAN baseband OAM service component restart with software versions earlier than release 24R1-S…

  • High 8.8

    Tenda AC5 SetSysTimeCfg stack-based overflow

    A vulnerability was found in Tenda AC5 15.03.06.47 and classified as critical. Affected by this issue is some unknown functionality of the file /goform/SetSysTimeCfg. The manipulation of the argument time/timeZone leads to stack-based buffer overflow. The att…

  • High 8.8

    Tenda AC5 openSchedWifi stack-based overflow

    A vulnerability has been found in Tenda AC5 15.03.06.47 and classified as critical. Affected by this vulnerability is an unknown functionality of the file /goform/openSchedWifi. The manipulation of the argument schedStartTime/schedEndTime leads to stack-based…

  • High 7.5

    A buffer overflow in the formSetCfm() function of Tenda AC1206 1200M 11ac US_AC1206V1.0RTL_V15.03.06.23_multi_TD01 allo…

  • Low 3.3

    HDF5 H5Gnode.c H5G__node_cmp3 stack-based overflow

    A vulnerability has been found in HDF5 1.14.6 and classified as problematic. Affected by this vulnerability is the function H5G__node_cmp3 of the file src/H5Gnode.c. The manipulation leads to stack-based buffer overflow. It is possible to launch the attack on…

  • High 8.8

    Linksys WRT1900ACS/EA7200/EA7450/EA7500 IGD Layer3Forwarding SetDefaultConnectionService stack-based overflow

    A vulnerability has been found in Linksys WRT1900ACS, EA7200, EA7450 and EA7500 up to 20250619 and classified as critical. This vulnerability affects the function SetDefaultConnectionService of the file /upnp/control/Layer3Forwarding of the component IGD. The…

  • High 7.3

    A buffer overflow vulnerability exists in the fromNatStaticSetting function of Tenda AC6 <=V15.03.05.19 via the page pa…