Falhas do tipo CWE-189

31 resultados

Erro Aritmético / Transbordamento Numérico

Falha na manipulação de operações matemáticas que causam comportamentos inesperados: transbordamento de inteiro (overflow), subtransbordamento (underflow), divisão por zero ou cálculos que excedem os limites do tipo de dado. Isso permite contornar validações, corromper dados ou disparar exceções que travam a aplicação.

Exemplo

Um sistema de pagamento recebe um inteiro de 16 bits para armazenar quantidade de produtos. Ao tentar registrar 70.000 unidades, o valor transborda e vira um número negativo ou muito pequeno, causando cobrança errada ou acesso a áreas de memória indevidas.

Como mitigar

Validar limites numéricos antes de operações críticas; usar tipos de dado com range suficiente (ex: `long` ou `BigDecimal` em Java); testar edge cases (valores máximos, mínimos, zero) em testes unitários; considerar bibliotecas de aritmética segura em linguagens low-level como C/C++.

CVE-2020-6111HIGHAn exploitable denial-of-service vulnerability exists in the IPv4 functionality of Allen-Bradley MicroLogix 1100 Programmable Logic ControllEPSS 4.6%CVE-2022-3970MEDIUMLibTIFF tif_getimage.c TIFFReadRGBATileExt integer overflowEPSS 1.2%CVE-2025-2174MEDIUMlibzvbi conv.c vbi_strndup_iconv_ucs2 integer overflowEPSS 0.8%CVE-2022-4202MEDIUMGPAC lsr_dec.c lsr_translate_coords integer overflowEPSS 0.8%CVE-2025-2176MEDIUMlibzvbi io-sim.c vbi_capture_sim_load_caption integer overflowEPSS 0.7%CVE-2025-2177MEDIUMlibzvbi search.c vbi_search_new integer overflowEPSS 0.6%CVE-2025-2175MEDIUMlibzvbi _vbi_strndup_iconv integer overflowEPSS 0.6%CVE-2025-2581MEDIUMxmedcon DICOM File malloc integer underflowEPSS 0.6%CVE-2026-8275MEDIUMbettercap zerogod IPP Service zerogod_ipp_primitives.go ippReadChunkedBody integer coercionEPSS 0.5%CVE-2026-4985MEDIUMdloebl CGIF GIF Image cgif.c cgif_addframe integer overflowEPSS 0.5%CVE-2025-3408MEDIUMNothings stb stb_dupreplace integer overflowEPSS 0.5%CVE-2026-7598MEDIUMlibssh2 userauth.c userauth_password integer overflowEPSS 0.5%CVE-2026-7736MEDIUMosrg GoBGP mrt.go parseRibEntry integer underflowEPSS 0.5%CVE-2026-5123MEDIUMosrg GoBGP bgp.go DecodeFromBytes off-by-oneEPSS 0.4%CVE-2026-8276MEDIUMbettercap MySQL Server mysql_server.go integer coercionEPSS 0.4%CVE-2025-9688LOWMupen64Plus is_viewer.c write_is_viewer integer overflowEPSS 0.3%CVE-2025-5001MEDIUMGNU PSPP pspp-convert.c calloc integer overflowEPSS 0.2%CVE-2025-15534MEDIUMraysan5 raylib rtext.c LoadFontData integer overflowEPSS 0.2%CVE-2026-3284MEDIUMlibvips extract.c vips_extract_area_build integer overflowEPSS 0.2%CVE-2026-5476LOWNASA cFS cfe_tbl_passthru_codec.c CFE_TBL_ValidateCodecLoadSize integer overflowEPSS 0.2%