Fallos del tipo CWE-191

491 resultados

Subfluxo de inteiro (estouro negativo)

Ocorre quando uma operação aritmética subtrai um valor maior de um inteiro não assinado, causando wraparound: o resultado "volta" para um número muito grande em vez de ficar negativo. Um inteiro de 8 bits sem sinal (0-255), ao subtrair 1 de 0, vira 255. Isso quebra lógica de validação e pode ser explorado para contornar limites de segurança, alocar memória inadequada ou acessar áreas indevidas.

Ejemplo

Um sistema de download que valida se o tamanho solicitado cabe em buffer: se recebe tamanho=0 e subtrai um header de 10 bytes, a conta (0 - 10) em inteiro não assinado resulta em 4.294.967.286 bytes em uma arquitetura de 32 bits, enganando a validação e causando overflow no buffer.

Cómo mitigar

Sempre validar entrada antes de operações aritméticas; usar tipos assinados quando desejar representar negativos; implementar verificações de limites (p.ex., se A < B antes de calcular A - B); usar ferramentas estáticas ou sanitizers (AddressSanitizer, UBSan) para detectar wraparound em tempo de desenvolvimento.

CVE-2019-12678HIGHCisco Adaptive Security Appliance Software and Firepower Threat Defense Software SIP Inspection Denial of Service VulnerabilityEPSS 1.8%CVE-2026-63362HIGHo6 Automation open62541 Integer UnderflowEPSS 1.8%CVE-2024-23313CRITICALAn integer underflow vulnerability exists in the sopen_FAMOS_read functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0EPSS 1.8%CVE-2020-6098HIGHAn exploitable denial of service vulnerability exists in the freeDiameter functionality of freeDiameter 1.3.2. A specially crafted Diameter EPSS 1.8%CVE-2023-40181MEDIUMInteger-Underflow leading to Out-Of-Bound Read in FreeRDPEPSS 1.7%CVE-2022-2335HIGHSofting Secure Integration Server Integer UnderflowEPSS 1.6%CVE-2023-24887HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 1.6%CVE-2023-39350MEDIUMIncorrect offset calculation leading to denial of service in FreeRDPEPSS 1.6%CVE-2023-28247HIGHWindows Network File System Information Disclosure VulnerabilityEPSS 1.6%CVE-2022-3165MEDIUMAn integer underflow issue was found in the QEMU VNC server while processing ClientCutText messages in the extended format. A malicious clieEPSS 1.6%CVE-2023-21556HIGHWindows Layer 2 Tunneling Protocol (L2TP) Remote Code Execution VulnerabilityEPSS 1.5%CVE-2023-21708CRITICALRemote Procedure Call Runtime Remote Code Execution VulnerabilityEPSS 1.5%CVE-2021-24894—Reviews Plus < 1.2.14 - Subscriber+ Reviews DoSEPSS 1.5%CVE-2026-58058MEDIUMNmap - Integer Underflow in IPv6 Extension Header ParsingEPSS 1.5%CVE-2023-21681HIGHMicrosoft WDAC OLE DB provider for SQL Server Remote Code Execution VulnerabilityEPSS 1.4%CVE-2024-24474HIGHQEMU before 8.2.0 has an integer underflow, and resultant buffer overflow, via a TI command when an expected non-DMA transfer length is lessEPSS 1.4%CVE-2022-21685MEDIUMInteger underflow in FrontierEPSS 1.3%CVE-2026-83855HIGHWindows WLAN Service Denial of Service VulnerabilityEPSS 1.3%CVE-2023-21684HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 1.3%CVE-2023-24864HIGHMicrosoft PostScript and PCL6 Class Printer Driver Elevation of Privilege VulnerabilityEPSS 1.3%