Fallos del tipo CWE-189

56 resultados

Erro em operações numéricas

Fraqueza em que o software realiza cálculos com números inteiros ou ponto flutuante de forma incorreta, causando overflow, underflow, truncamento ou resultados inesperados. O erro ocorre quando o código não valida limites, conversões de tipo ou operações matemáticas, permitindo comportamentos maliciosos como acesso à memória indevido, bypass de verificações ou execução de código.

Ejemplo

Um programa que calcula um tamanho de buffer usando multiplicação (linha_x * coluna_y) sem verificar overflow: se os valores são grandes demais, o resultado inesperado aloca menos memória que o necessário, causando estouro de buffer quando dados são escritos. Ou um conversão de inteiro com sinal para sem sinal que gera um número negativo interpretado como muito grande.

Cómo mitigar

Validar entrada numérica contra limites esperados antes de operações. Usar bibliotecas ou funções que detectem overflow (ex: __builtin_mul_overflow em C, ou operações com checked types). Em linguagens modernas (Rust, Python), preferir tipos que levantam exceção em overflow. Documentar e testar casos extremos (zero, máximo, mínimo).

CVE-2020-6111HIGHAn exploitable denial-of-service vulnerability exists in the IPv4 functionality of Allen-Bradley MicroLogix 1100 Programmable Logic ControllEPSS 5.6%CVE-2022-3970MEDIUMLibTIFF tif_getimage.c TIFFReadRGBATileExt integer overflowEPSS 1.3%CVE-2026-86297CRITICALD-Link DIR-605 L2TP Control Message tunnel.c tunnel_set_params off-by-oneEPSS 1.1%CVE-2022-4202MEDIUMGPAC lsr_dec.c lsr_translate_coords integer overflowEPSS 0.9%CVE-2025-2174MEDIUMlibzvbi conv.c vbi_strndup_iconv_ucs2 integer overflowEPSS 0.8%CVE-2026-86289MEDIUMOllama GGUF Decoder gguf.go readGGUFV1String integer overflowEPSS 0.7%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-2581MEDIUMxmedcon DICOM File malloc integer underflowEPSS 0.6%CVE-2026-90715MEDIUMmarcobambini Gravity udp json-parser gravity_json.c integer overflowEPSS 0.6%CVE-2025-2175MEDIUMlibzvbi _vbi_strndup_iconv integer overflowEPSS 0.6%CVE-2026-90596MEDIUMembedded-graphics image_raw.rs new/bytes_per_row integer overflowEPSS 0.6%CVE-2026-121382HIGHNetcore NBR100V2 auto_ac msg_aes_dec integer overflowEPSS 0.6%CVE-2026-93311MEDIUMFreedesktop Poppler SampledFunction Function.cc integer overflowEPSS 0.6%CVE-2026-8275MEDIUMbettercap zerogod IPP Service zerogod_ipp_primitives.go ippReadChunkedBody integer coercionEPSS 0.5%CVE-2026-90593MEDIUMembedded-graphics image_raw.rs draw_sub_image integer overflowEPSS 0.5%CVE-2025-3408MEDIUMNothings stb stb_dupreplace integer overflowEPSS 0.5%CVE-2026-4985MEDIUMdloebl CGIF GIF Image cgif.c cgif_addframe integer overflowEPSS 0.5%CVE-2026-94030LOWSerenityOS LibGfx BMPLoader.cpp decode_bmp_pixel_data integer overflowEPSS 0.5%CVE-2026-7598MEDIUMlibssh2 userauth.c userauth_password integer overflowEPSS 0.5%