Falhas do tipo CWE-680

112 resultados

Transbordamento de inteiro levando a transbordamento de buffer

Ocorre quando uma operação aritmética com inteiros ultrapassa os limites do tipo (overflow), resultando em um valor menor do que o esperado. Esse valor reduzido é então usado para alocar memória ou indexar um buffer, permitindo escrita fora dos limites. O atacante explora a discrepância entre o cálculo matemático correto e o resultado inteiro para injetar código ou corromper dados.

Exemplo

Um programa recebe o tamanho de um arquivo e calcula espaço para alocação como `tamanho + sizeof(header)`. Se tamanho é INT_MAX, a soma sofre overflow e retorna um valor pequeno; o buffer alocado fica insuficiente, e dados subsequentes são escritos além de seus limites.

Como mitigar

Valide o tamanho de entrada antes de operações aritméticas (garanta que a soma não ultrapasse o máximo do tipo). Use tipos inteiros sem sinal quando apropriado e considere bibliotecas de aritmética segura. Implemente verificações explícitas: `if (tamanho > INT_MAX - sizeof(header)) reject()` antes de alocar.

CVE-2021-32762HIGHInteger overflow that can lead to heap overflow in redis-cli, redis-sentinel on some platformsEPSS 2.7%CVE-2021-32765HIGHInteger Overflow to Buffer Overflow in HiredisEPSS 2.1%CVE-2021-21843HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21838HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21846HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21837HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21839HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21845HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21852HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21847HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2021-21844HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 2.0%CVE-2020-10929HIGHThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR R6700 V1.0.4.84_10.0.58 EPSS 1.9%CVE-2021-21841HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21851HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.7%CVE-2021-21849HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21853HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.7%CVE-2021-21840HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21836HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21842HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21850HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%