Weaknesses of type CWE-787

5,843 results

Escrita fora dos limites da memória

Ocorre quando o código escreve dados em um endereço de memória fora do intervalo alocado para uma estrutura (array, buffer, objeto). O programa não valida o tamanho ou índice antes de escrever, permitindo sobrescrever memória adjacente — causando corrupção de dados, queda da aplicação ou execução arbitrária de código.

Example

Um formulário web que copia o valor de um campo do usuário para um buffer de 64 bytes sem verificar o comprimento: se o atacante enviar 200 caracteres, a escrita invade a memória vizinha e pode sobrescrever um ponteiro de função ou variável crítica.

How to mitigate

Sempre validar tamanhos de entrada antes de copiar (usar `strncpy` em vez de `strcpy`, ou bibliotecas seguras como `bounds-checking`); usar linguagens com verificação automática de limites (Java, Rust); aplicar testes de fuzzing e análise estática de código para detectar escritas desprotegidas.

CVE-2018-20249—In Foxit Quick PDF Library (all versions prior to 16.12), issue where loading a malformed or malicious PDF containing invalid xref entries uEPSS 1.4%CVE-2026-85437CRITICALMOOS-IvP through 24.8.1 Buffer Overflow in IvP Function String DecodersEPSS 1.4%CVE-2022-40962HIGHMozilla developers Nika Layzell, Timothy Nikkel, Sebastian Hengst, Andreas Pehrson, and the Mozilla Fuzzing Team reported memory safety bugsEPSS 1.4%CVE-2022-42998CRITICALD-Link DIR-816 A2 1.10 B05 was discovered to contain a stack overflow via the srcip parameter at /goform/form2IPQoSTcAdd.EPSS 1.4%CVE-2021-21703HIGHPHP-FPM memory access in root process leading to privilege escalationEPSS 1.4%CVE-2022-34286—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-34276—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-34275—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-34284—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-34273—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-34289—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2022-2288HIGHOut-of-bounds Write in vim/vimEPSS 1.4%CVE-2022-34274—A vulnerability has been identified in PADS Standard/Plus Viewer (All versions). The affected application contains an out of bounds write paEPSS 1.4%CVE-2021-31492HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31484HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31491HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31487HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31496HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31490HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%CVE-2021-31494HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenText Brava! Desktop 16.6.3.84. User inEPSS 1.4%