Fallos del tipo CWE-122

3195 resultados

Estouro de heap

É quando o código escreve dados além dos limites de um buffer alocado no heap (memória dinâmica), sobrescrevendo dados de outras estruturas adjacentes. Esse estouro pode corromper metadados do heap, variáveis vizinhas ou objetos do programa, permitindo execução de código arbitrário ou negação de serviço.

Ejemplo

Um servidor web recebe uma string de tamanho arbitrário e a copia para um buffer de 256 bytes sem validar o comprimento (ex: strcpy em C). Se o atacante enviar 500 bytes, o restante escreve além da zona alocada, corrompendo estruturas próximas e potencialmente ganhando controle do fluxo.

Cómo mitigar

Use funções seguras (strncpy, strlcpy, snprintf em C) que respeitam limites de tamanho; valide e sanitize entrada do usuário antes de copiar; ative proteções do SO (ASLR, DEP/NX); use linguagens de memória segura quando possível; aplique verificações de limites em loops de cópia.

CVE-2022-2207HIGHHeap-based Buffer Overflow in vim/vimEPSS 1.4%CVE-2023-24876HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 1.4%CVE-2022-32137HIGHCODESYS Runtime System prone to heap based buffer overflowEPSS 1.4%CVE-2022-26098HIGHHeap-based buffer overflow vulnerability in sheifd_create function of libsimba library prior to SMR Apr-2022 Release 1 allows code executionEPSS 1.4%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-2022-27568HIGHHeap-based buffer overflow vulnerability in parser_iloc function in libsimba library prior to SMR Apr-2022 Release 1 allows code execution bEPSS 1.4%CVE-2022-27571HIGHHeap-based buffer overflow vulnerability in sheifd_get_info_image function in libsimba library prior to SMR Apr-2022 Release 1 allows code eEPSS 1.4%CVE-2022-27569HIGHHeap-based buffer overflow vulnerability in parser_infe function in libsimba library prior to SMR Apr-2022 Release 1 allows code execution bEPSS 1.4%CVE-2022-27572HIGHHeap-based buffer overflow vulnerability in parser_ipma function of libsimba library prior to SMR Apr-2022 Release 1 allows code execution bEPSS 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-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-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-2024-21416HIGHWindows TCP/IP Remote Code Execution VulnerabilityEPSS 1.4%CVE-2022-2343HIGHHeap-based Buffer Overflow in vim/vimEPSS 1.4%CVE-2024-49012HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49007HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49006HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-48997HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49013HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-49017HIGHSQL Server Native Client Remote Code Execution VulnerabilityEPSS 1.4%