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-2022-27570HIGHHeap-based buffer overflow vulnerability in parser_single_iref function in libsimba library prior to SMR Apr-2022 Release 1 allows code execEPSS 1.4%CVE-2021-24041—A missing bounds check in image blurring code prior to WhatsApp for Android v2.21.22.7 and WhatsApp Business for Android v2.21.22.7 could haEPSS 1.4%CVE-2020-1916—An incorrect size calculation in ldap_escape may lead to an integer overflow when overly long input is passed in, resulting in an out-of-bouEPSS 1.4%CVE-2020-1917—xbuf_format_converter, used as part of exif_read_data, was appending a terminating null character to the generated string, but was not usingEPSS 1.4%CVE-2024-21416HIGHWindows TCP/IP Remote Code Execution VulnerabilityEPSS 1.4%CVE-2026-28780CRITICALApache HTTP Server: buffer overflow in mod_proxy_ajp via ajp_msg_check_header()EPSS 1.4%CVE-2024-49012HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49006HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49015HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49008HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49007HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-48997HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49010HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49011HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49013HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49009HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-48999HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-48998HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49017HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-21347HIGHMicrosoft ODBC Driver Remote Code Execution VulnerabilityEPSS 1.4%