Fallos del tipo CWE-189

45 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-2026-94030LOWSerenityOS LibGfx BMPLoader.cpp decode_bmp_pixel_data integer overflowEPSS 0.5%CVE-2025-3408MEDIUMNothings stb stb_dupreplace integer overflowEPSS 0.5%CVE-2026-93313MEDIUMFreedesktop Poppler JBIG2Stream.cc readCodeTableSeg integer overflowEPSS 0.4%CVE-2026-93314MEDIUMFreedesktop Poppler FoFiTrueType.cc mapCodeToGID integer overflowEPSS 0.4%CVE-2026-94090MEDIUMJusticeRage Manalyze PE Parser pe.cpp _parse_debug integer underflowEPSS 0.4%CVE-2023-21801HIGHMicrosoft PostScript and PCL6 Class Printer Driver Remote Code Execution VulnerabilityEPSS 0.4%CVE-2026-82480MEDIUMNASA cFS cFE Software Bus cfe_sb_util.c CFE_SB_GetUserDataLength integer underflowEPSS 0.4%CVE-2026-5476LOWNASA cFS cfe_tbl_passthru_codec.c CFE_TBL_ValidateCodecLoadSize integer overflowEPSS 0.3%CVE-2025-5001MEDIUMGNU PSPP pspp-convert.c calloc integer overflowEPSS 0.3%CVE-2025-9688LOWMupen64Plus is_viewer.c write_is_viewer integer overflowEPSS 0.3%CVE-2025-15534MEDIUMraysan5 raylib rtext.c LoadFontData integer overflowEPSS 0.2%CVE-2026-14757MEDIUMradareorg radare2 cmd_anal.inc core_anal_bytes integer overflowEPSS 0.2%CVE-2026-14787MEDIUMradareorg radare2 pb Print cmd_print.inc cmd_print integer overflowEPSS 0.2%CVE-2026-2703MEDIUMxlnt-community xlnt Encrypted XLSX File base64.cpp decode_base64 off-by-oneEPSS 0.2%CVE-2026-14786MEDIUMradareorg radare2 str.c r_str_word_get0set integer overflowEPSS 0.2%CVE-2026-14761MEDIUMradareorg radare2 str.c r_str_append integer overflowEPSS 0.2%CVE-2026-14758MEDIUMradareorg radare2 hexpairs cmd_anal.inc.c cmd_anal_opcode integer overflowEPSS 0.2%CVE-2026-3284MEDIUMlibvips extract.c vips_extract_area_build integer overflowEPSS 0.2%CVE-2026-82908CRITICALMSI Dragon Center MMIO Write Path NTIOLib_X64.sys MmioWritePath integer overflowEPSS 0.2%CVE-2026-10722MEDIUMcilium ebpf LoadCollectionSpec/LoadCollectionSpecFromReader btf.go loadRawSpec integer overflowEPSS 0.2%