Weaknesses of type CWE-191

328 results

Underflow de inteiro (envolvimento cíclico)

Ocorre quando uma operação aritmética subtrai um valor de um inteiro e o resultado fica abaixo do limite mínimo do tipo, causando um envolvimento cíclico para o valor máximo. Por exemplo, subtrair 1 de um inteiro sem sinal de valor 0 resulta no maior valor possível. Isso pode contornar validações de segurança ou causar comportamentos inesperados.

Example

Um programa valida se um tamanho é >= 0 antes de alocar memória. Se o tamanho vier de uma subtração (total - offset) onde offset é maior que total, um inteiro sem sinal faz o resultado "pular" para um número gigante, burlando a validação e causando alocação excessiva.

How to mitigate

Sempre validar o resultado de operações aritméticas antes de usá-lo (verificar se a subtração não gerou underflow), usar tipos inteiros com sinal quando apropriado para detectar condições inválidas, ou usar bibliotecas de aritmética segura que disparam exceções em overflow/underflow.

CVE-2014-0497HIGHInteger underflow in Adobe Flash Player before 11.7.700.261 and 11.8.x through 12.0.x before 12.0.0.44 on Windows and Mac OS X, and before 1EPSS 99.9%KEVCVE-2023-31102HIGHPpmd7.c in 7-Zip before 23.00 allows an integer underflow and invalid read operation via a crafted 7Z archive.EPSS 71.0%CVE-2024-38063CRITICALWindows TCP/IP Remote Code Execution VulnerabilityEPSS 70.6%CVE-2023-42118HIGHExim libspf2 Integer Underflow Remote Code Execution VulnerabilityEPSS 51.8%CVE-2024-11477HIGH7-Zip Zstandard Decompression Integer Underflow Remote Code Execution VulnerabilityEPSS 22.0%CVE-2021-31956HIGHWindows NTFS Elevation of Privilege VulnerabilityEPSS 20.3%KEVCVE-2023-38162HIGHDHCP Server Service Denial of Service VulnerabilityEPSS 10.3%CVE-2025-21376HIGHWindows Lightweight Directory Access Protocol (LDAP) Remote Code Execution VulnerabilityEPSS 9.4%CVE-2026-42980HIGHNT OS Kernel Elevation of Privilege VulnerabilityEPSS 6.9%CVE-2021-37706HIGHPotential integer underflow upon receiving STUN message in PJSIPEPSS 4.6%CVE-2023-26421HIGHZDI-CAN-19832: Adobe Acrobat Reader DC Doc Object Integer Underflow Remote Code Execution VulnerabilityEPSS 4.6%CVE-2022-24046CRITICALThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Sonos One Speaker prior to 3.4.1EPSS 4.1%CVE-2020-11909CRITICALThe Treck TCP/IP stack before 6.0.1.66 has an IPv4 Integer Underflow.EPSS 3.6%CVE-2018-14817Fuji Electric V-Server 4.0.3.0 and prior, An integer underflow vulnerability has been identified, which may allow remote code execution.EPSS 3.6%CVE-2021-21897HIGHA code execution vulnerability exists in the DL_Dxf::handleLWPolylineData functionality of Ribbonsoft dxflib 3.17.0. A specially-crafted .dxEPSS 2.9%CVE-2023-28293HIGHWindows Kernel Elevation of Privilege VulnerabilityEPSS 2.9%CVE-2019-5459An Integer underflow in VLC Media Player versions < 3.0.7 leads to an out-of-band read.EPSS 2.8%CVE-2024-30011MEDIUMWindows Hyper-V Denial of Service VulnerabilityEPSS 2.6%CVE-2019-5144HIGHAn exploitable heap underflow vulnerability exists in the derive_taps_and_gains function in kdu_v7ar.dll of Kakadu Software SDK 7.10.2. A spEPSS 2.4%CVE-2024-28933HIGHMicrosoft ODBC Driver for SQL Server Remote Code Execution VulnerabilityEPSS 2.4%