Falhas do tipo CWE-191

491 resultados

Underflow de inteiro (envolvimento ou wraparound)

Ocorre quando uma operação aritmética subtrai um valor de um inteiro, resultando em um número menor do que o mínimo representável pelo tipo de dado. O processador ou linguagem 'envolve' o resultado para o máximo valor do tipo (wraparound), causando lógica inesperada. Isso frequentemente leva a bypass de validações, alocação de memória gigante ou acesso a posições indevidas.

Exemplo

Um programa válida o tamanho de um buffer subtraindo dois valores inteiros sem sinal (unsigned int). Se o primeiro valor for menor que o segundo, em vez de resultar em um número negativo, o resultado envolve para um inteiro extremamente alto (ex: 0 - 1 = 4.294.967.295 em 32-bit), passando por todas as verificações e causando overflow ou read/write fora dos limites.

Como mitigar

Sempre valide que o resultado de operações aritméticas está dentro do intervalo esperado antes de usá-lo. Use checagem de underflow (verificar se minuendo >= subtraendo) ou prefira tipos assinados com verificação de exceção. Em linguagens modernas, use bibliotecas de aritmética segura que lançam erro em wraparound.

CVE-2025-62495HIGHType confusion in string addition in QuickJSEPSS 0.5%CVE-2026-63515HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-55011HIGHMicrosoft Defender Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-55039HIGHMicrosoft Excel Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-64909HIGHMicrosoft Office Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-50308HIGHWindows NTFS Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-50388HIGHWindows NTFS Remote Code Execution VulnerabilityEPSS 0.5%CVE-2026-71202HIGHraster - Integer Underflow in crop() Offset Handling Causes Capacity-Overflow PanicEPSS 0.5%CVE-2026-18916MEDIUMRemote TCP DoS by throttling the TCP receive windowEPSS 0.5%CVE-2026-48503HIGHlibIEC61850: Remote information disclosure in MMS file service via out-of-range initialPosition in fileOpen followed by fileReadEPSS 0.5%CVE-2026-7736MEDIUMosrg GoBGP mrt.go parseRibEntry integer underflowEPSS 0.5%CVE-2026-45699HIGHNetatalk has Integer Underflow → Stack Buffer Overflow in copydir()EPSS 0.4%CVE-2026-45698HIGHNetatalk has Integer Underflow → Stack Buffer Overflow in deletedir()EPSS 0.4%CVE-2026-3084HIGHGStreamer H.266 Codec Parser Integer Underflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2026-44251MEDIUMWazuh : size_t underflow in msgs.c ReadSecMSG causes wazuh-remoted DoS and potential heap overflow via crafted agent messageEPSS 0.4%CVE-2025-1991HIGHIBM Informix Dynamic Server denial of serviceEPSS 0.4%CVE-2026-96925MEDIUMWindows NTFS Information Disclosure VulnerabilityEPSS 0.4%CVE-2026-2369MEDIUMLibsoup: libsoup: buffer overread due to integer underflow when handling zero-length resourcesEPSS 0.4%CVE-2026-83742MEDIUMwstrncat() unsigned integer underflow leads to an off-by-one null write in wolfSSH on non-Windows platformsEPSS 0.4%CVE-2024-6258MEDIUMBT: Missing length checks of net_buf in rfcomm_handle_dataEPSS 0.4%