Weaknesses of type CWE-122

3,189 results

Transbordamento de heap (heap overflow)

Ocorre quando um programa escreve dados além dos limites de um buffer alocado dinamicamente na memória heap, sobrescrevendo dados adjacentes ou metadados do alocador. Isso permite que um atacante corrompa estruturas críticas, execute código arbitrário ou cause travamento da aplicação.

Example

Uma função recebe um tamanho de entrada sem validar e copia para um buffer: `strcpy(heap_buffer, user_input)` sem verificar se user_input cabe. Se o usuário enviar 1000 bytes para um buffer de 256, o overflow sobrescreve estruturas próximas no heap e pode ser explorado para RCE.

How to mitigate

Use funções seguras de cópia (`strncpy`, `strlcpy`), valide e limite o tamanho da entrada antes de copiar, e considere usar linguagens com gerenciamento automático de memória ou ferramentas como AddressSanitizer durante testes para detectar overflows.

CVE-2021-33000—Parsing a maliciously crafted project file may cause a heap-based buffer overflow, which may allow an attacker to perform arbitrary code exeEPSS 1.0%CVE-2023-41229HIGHD-Link DIR-3040 HTTP Request Processing Referer Heap-Based Buffer Overflow Remote Code Execution VulnerabilityEPSS 1.0%CVE-2026-40033HIGHFreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypassEPSS 1.0%CVE-2021-38404HIGHDelta Electronics DOPSoft 2 Heap-based Buffer OverflowEPSS 1.0%CVE-2023-36730HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 1.0%CVE-2020-13581HIGHIn SoftMaker Software GmbH SoftMaker Office PlanMaker 2021 (Revision 1014), a specially crafted document can cause the document parser to coEPSS 1.0%CVE-2023-33221MEDIUM Heap Buffer Overflow when reading DESFire cardEPSS 1.0%CVE-2025-64678HIGHWindows Routing and Remote Access Service (RRAS) Remote Code Execution VulnerabilityEPSS 1.0%CVE-2026-69829CRITICALWindows Shell Remote Code Execution VulnerabilityEPSS 1.0%CVE-2022-3520HIGHHeap-based Buffer Overflow in vim/vimEPSS 1.0%CVE-2020-15205CRITICALData leak in TensorflowEPSS 1.0%CVE-2020-25674—WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ viaEPSS 1.0%CVE-2020-25665—The PALM image coder at coders/palm.c makes an improper call to AcquireQuantumMemory() in routine WritePALMImage() because it needs to be ofEPSS 1.0%CVE-2022-23537MEDIUMPJSIP vulnerable to heap buffer overflow when decoding STUN messageEPSS 1.0%CVE-2026-42536HIGHApache HTTP Server: mod_xml2enc heap overflowEPSS 1.0%CVE-2022-4584MEDIUMAxiomatic Bento4 mp42aac heap-based overflowEPSS 1.0%CVE-2021-42018MEDIUMA vulnerability has been identified in RUGGEDCOM i800, RUGGEDCOM i800NC, RUGGEDCOM i801, RUGGEDCOM i801NC, RUGGEDCOM i802, RUGGEDCOM i802NC,EPSS 1.0%CVE-2024-55627MEDIUMSuricata segfault on StreamingBufferSlideToOffsetWithRegionsEPSS 1.0%CVE-2025-21395HIGHMicrosoft Access Remote Code Execution VulnerabilityEPSS 1.0%CVE-2024-8946MEDIUMMicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflowEPSS 1.0%