Weaknesses of type CWE-122

3,734 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-2023-23415CRITICALInternet Control Message Protocol (ICMP) Remote Code Execution VulnerabilityEPSS 3.5%CVE-2022-24795MEDIUMBuffer Overflow and Integer Overflow in yajl-rubyEPSS 3.4%CVE-2020-26986—A vulnerability has been identified in JT2Go (All versions < V13.1.0), Teamcenter Visualization (All versions < V13.1.0). Affected applicatiEPSS 3.4%CVE-2024-38237HIGHKernel Streaming WOW Thunk Service Driver Elevation of Privilege VulnerabilityEPSS 3.4%CVE-2023-38143HIGHWindows Common Log File System Driver Elevation of Privilege VulnerabilityEPSS 3.4%CVE-2022-2848CRITICALThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Kepware KEPServerEX 6.11.718.0. AuthenticaEPSS 3.4%CVE-2024-38242HIGHKernel Streaming Service Driver Elevation of Privilege VulnerabilityEPSS 3.4%CVE-2019-6740CRITICALThis vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Samsung Galaxy S9 prior to January 2019 EPSS 3.3%CVE-2023-21812HIGHWindows Common Log File System Driver Elevation of Privilege VulnerabilityEPSS 3.3%CVE-2021-24036—Passing an attacker controlled size when creating an IOBuf could cause integer overflow, leading to an out of bounds write on the heap with EPSS 3.3%CVE-2024-20677HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 3.3%CVE-2022-31144HIGHPotential heap overflow in Redis EPSS 3.2%CVE-2024-20696HIGHWindows libarchive Remote Code Execution VulnerabilityEPSS 3.2%CVE-2023-6779HIGHGlibc: off-by-one heap-based buffer overflow in __vsyslog_internal()EPSS 3.2%CVE-2019-9501HIGHBroadcom wl driver is vulnerable to heap buffer overflowEPSS 3.1%CVE-2022-1381HIGHglobal heap buffer overflow in skip_range in vim/vimEPSS 3.1%CVE-2018-9949—This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Foxit Reader 9.0.0.29935. User interactiEPSS 3.0%CVE-2018-9947—This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Foxit Reader 9.0.0.29935. User interactiEPSS 3.0%CVE-2018-9974—This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Foxit Reader 9.0.1.1049. User interactioEPSS 3.0%CVE-2021-29097HIGHArcGIS general raster security update: buffer overflowEPSS 3.0%