Fallos del tipo CWE-680

112 resultados

Transbordamento de inteiro causando transbordamento de buffer

Ocorre quando um cálculo de inteiro transborda (excede o limite do tipo), gerando um valor pequeno ou negativo que é depois usado como tamanho de alocação ou índice de buffer. O código acredita ter espaço suficiente, mas na verdade alocou pouco ou até nada, permitindo escrita fora dos limites da memória.

Ejemplo

Uma função recebe dois inteiros de 32 bits (tamanho + overhead) que, quando somados, causam overflow e resultam em um valor pequeno. A alocação malloc(tamanho + overhead) aloca poucos bytes, mas o código copia dados grandes para esse buffer, sobrescrevendo memória adjacente.

Cómo mitigar

Valide os operandos antes de operações aritméticas que alimentam alocações de memória; use tipos inteiros maiores (64-bit) quando apropriado; aplique testes de saturação (verificar se a soma/multiplicação ultrapassaria o máximo permitido) antes de usar o resultado em malloc, memcpy ou indexação de arrays.

CVE-2021-21850HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 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-21834HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.7%CVE-2021-21857HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.7%CVE-2021-21854HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.7%CVE-2021-21855HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.7%CVE-2021-21860HIGHAn exploitable integer truncation vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librEPSS 1.6%CVE-2021-21861HIGHAn exploitable integer truncation vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librEPSS 1.6%CVE-2021-21859HIGHAn exploitable integer truncation vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librEPSS 1.6%CVE-2020-15103LOWInteger Overflow in FreeRDPEPSS 1.5%CVE-2021-21835HIGHAn exploitable integer overflow vulnerability exists within the MPEG-4 decoding functionality of the GPAC Project on Advanced Content librarEPSS 1.4%CVE-2021-21862HIGHMultiple exploitable integer truncation vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ConteEPSS 1.4%CVE-2021-21856HIGHMultiple exploitable integer overflow vulnerabilities exist within the MPEG-4 decoding functionality of the GPAC Project on Advanced ContentEPSS 1.4%CVE-2023-37536HIGHHCL BigFix Platform is vulnerable to an integer overflow in xerces-c++ 3.2.3EPSS 1.4%CVE-2020-11038MEDIUMInteger Overflow to Buffer Overflow in FreeRDPEPSS 1.3%CVE-2020-6099HIGHAn exploitable code execution vulnerability exists in the file format parsing functionality of Graphisoft BIMx Desktop Viewer 2019.2.2328. AEPSS 1.2%CVE-2021-21832HIGHA memory corruption vulnerability exists in the ISO Parsing functionality of Disc Soft Ltd Deamon Tools Pro 8.3.0.0767. A specially crafted EPSS 1.2%CVE-2024-33078CRITICALTencent Libpag v4.3 is vulnerable to Buffer Overflow. A user can send a crafted image to trigger a overflow leading to remote code executionEPSS 1.1%CVE-2024-28219MEDIUMIn _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.EPSS 1.0%CVE-2022-35289A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 allows attackEPSS 1.0%