Skip to content
OpenAdvisories

Weakness (CWE)

CWE-122: Heap-based Buffer Overflow

Variant Draft

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

How to prevent it (7 mitigations)
  1. Pre-design: Use a language or compiler that performs automatic bounds checking.

  2. Architecture and Design

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

  3. 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.

  4. 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].

  5. Implementation

    Implement and perform bounds checking on input.

  6. Implementation

    Do not use dangerous functions such as gets. Look for their safe equivalent, which checks for the boundary.

  7. Operation

    Use OS-level preventative functionality. This is not a complete solution, but it provides some defense in depth.

Source: MITRE CWE-122

4,090 results · Feed

  • Medium 5.9

    Suricata segfault on StreamingBufferSlideToOffsetWithRegions

    Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine. Prior to 7.0.8, a specially crafted TCP stream can lead to a very large buffer overflow while being zero-filled during initialization with me…

  • High 7.8

    Ashlar-Vellum Graphite VC6 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Ashlar-Vellum Graphite VC6 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ashlar-Vellum Graphite. User interaction is required to e…

  • High 7.8

    Ashlar-Vellum Graphite VC6 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Ashlar-Vellum Graphite VC6 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ashlar-Vellum Graphite. User interaction is required to e…

  • High 8.8

    GNU GRUB (aka GRUB2) through 2.12 has a heap-based buffer overflow in fs/hfs.c via crafted sblock data in an HFS filesy…

  • Critical 9.3

    HarfBuzz heap-buffer-overflow on hb_cairo_glyphs_from_buffer

    HarfBuzz is a text shaping engine. Starting with 8.5.0 through 10.0.1, there is a heap-based buffer overflow in the hb_cairo_glyphs_from_buffer function.

  • Medium 5.4

    A heap-based buffer overflow vulnerability in the processing of Link Control Protocol messages in FortiGate versions 5.…

  • High 7.8

    DWFX File Parsing Vulnerabilities in Autodesk Navisworks Desktop Software

    A maliciously crafted DWFX file, when parsed through Autodesk Navisworks, can be used to cause a Heap-based Overflow vulnerability. A malicious actor can leverage this vulnerability to cause a crash, read sensitive data, or execute arbitrary code in the conte…

  • High 7.8

    DWFX File Parsing Vulnerabilities in Autodesk Navisworks Desktop Software

    A maliciously crafted DWFX file, when parsed through Autodesk Navisworks, can be used to cause a Heap-based Overflow vulnerability. A malicious actor can leverage this vulnerability to cause a crash, read sensitive data, or execute arbitrary code in the conte…

  • High 7.8

    DWFX File Parsing Vulnerabilities in Autodesk Navisworks Desktop Software

    A maliciously crafted DWFX file, when parsed through Autodesk Navisworks, can be used to cause a Heap-based Overflow vulnerability. A malicious actor can leverage this vulnerability to cause a crash, read sensitive data, or execute arbitrary code in the conte…

  • Critical 9.8

    A vulnerability has been identified in Opcenter Execution Foundation (All versions < V2501.0001), Opcenter Intelligence…

  • High 7.5

    Bluetooth: classic: avdtp: missing buffer length check

    No proper validation of the length of user input in olcp_ind_handler in zephyr/subsys/bluetooth/services/ots/ots_client.c.

  • Medium 6.9

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), Heap-based Buffer Overflow, Integer Overflow or Wraparound vulnerability in RTI Connext Professional (Security Plugins) allows Overflow Variables and Tags.

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), Heap-based Buffer Overflow, Integer Overflow or Wraparound vulnerability in RTI Connext Professional (Security Plugins) allows Overflow Variables and Tags. This issue affects Connext Prof…

  • High 7.8

    Substance3D - Painter | Heap-based Buffer Overflow (CWE-122)

    Substance3D - Painter versions 10.1.1 and earlier are affected by a Heap-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 victi…

  • High 7.8

    Premiere Pro | Heap-based Buffer Overflow (CWE-122)

    Premiere Pro versions 25.0, 24.6.3 and earlier are affected by a Heap-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 m…

  • High 7.8

    Substance3D - Modeler | Heap-based Buffer Overflow (CWE-122)

    Substance3D - Modeler versions 1.14.1 and earlier are affected by a Heap-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 victi…

  • High 7.8

    Substance3D - Sampler | Heap-based Buffer Overflow (CWE-122)

    Substance3D - Sampler versions 4.5.1 and earlier are affected by a Heap-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

    Substance3D - Sampler | Heap-based Buffer Overflow (CWE-122)

    Substance3D - Sampler versions 4.5.1 and earlier are affected by a Heap-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

    InDesign Desktop | Heap-based Buffer Overflow (CWE-122)

    InDesign Desktop versions ID19.5, ID18.5.4 and earlier are affected by a Heap-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 …

  • High 7.8

    Media Encoder | Heap-based Buffer Overflow (CWE-122)

    Media Encoder versions 25.0, 24.6.3 and earlier are affected by a Heap-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
    CVE-2024-49138 Exploited Public exploit EPSS 26%

    Windows Common Log File System Driver Elevation of Privilege Vulnerability

    Windows Common Log File System Driver Elevation of Privilege Vulnerability

    KEV Dec 10, 2024
  • Medium 6.6

    Wireless Wide Area Network Service (WwanSvc) Elevation of Privilege Vulnerability

    Wireless Wide Area Network Service (WwanSvc) Elevation of Privilege Vulnerability

  • High 8.8

    Windows IP Routing Management Snapin Remote Code Execution Vulnerability

    Windows IP Routing Management Snapin Remote Code Execution Vulnerability

  • High 7.8

    Windows Task Scheduler Elevation of Privilege Vulnerability

    Windows Task Scheduler Elevation of Privilege Vulnerability

  • High 8.8

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • High 8.8

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • High 8.8

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • Medium 6.6

    Wireless Wide Area Network Service (WwanSvc) Elevation of Privilege Vulnerability

    Wireless Wide Area Network Service (WwanSvc) Elevation of Privilege Vulnerability

  • High 7.2

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • High 8.8

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • High 8.8

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

    Windows Routing and Remote Access Service (RRAS) Remote Code Execution Vulnerability

  • High 7.8

    A vulnerability has been identified in Solid Edge SE2024 (All versions < V224.0 Update 5). The affected application is …

  • High 7.8

    A vulnerability has been identified in Solid Edge SE2024 (All versions < V224.0 Update 5). The affected application is …

  • High 7.8

    A maliciously crafted SKP file, when linked or imported into Autodesk Revit, can be used to cause a Heap-based Overflow…

  • High 7.5

    Heap-based buffer overflow vulnerability in the SonicWall SMA100 SSLVPN due to the use of strcpy. This allows remote au…

  • High 7.8

    Fuji Electric Monitouch V-SFT X1 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Fuji Electric Monitouch V-SFT X1 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Fuji Electric Monitouch V-SFT. User interaction is …

  • Medium 4.8

    Single byte overread with convert.quoted-printable-decode filter

    In PHP versions 8.1.* before 8.1.31, 8.2.* before 8.2.26, 8.3.* before 8.3.14, due to an error in convert.quoted-printable-decode filter certain data can lead to buffer overread by one byte, which can in certain circumstances lead to crashes or disclose conte…

  • High 7.8

    Trimble SketchUp Viewer SKP File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Trimble SketchUp Viewer SKP File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Trimble SketchUp Viewer. User interaction is required to…

  • High 7.0

    Nikon NEF Codec Thumbnail Provider NRW File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Nikon NEF Codec Thumbnail Provider NRW File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Nikon NEF Codec. User interaction is required…

  • High 7.8

    Tungsten Automation Power PDF PDF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Tungsten Automation Power PDF PDF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tungsten Automation Power PDF. User interaction is…

  • High 7.8

    Tungsten Automation Power PDF PDF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

    Tungsten Automation Power PDF PDF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tungsten Automation Power PDF. User interaction is…