Weaknesses of type CWE-369

208 results

Divisão por zero

Fraqueza em que o código tenta dividir um número por zero sem validação prévia, causando crash, exceção ou comportamento indefinido. O risco varia: em alguns casos gera apenas erro aritmético; em outros, permite negação de serviço ou exploração mais grave dependendo do contexto de execução.

Example

Uma API recebe um parâmetro do usuário, aplica-o diretamente como divisor sem checar se é zero: `resultado = 100 / parametro_do_usuario`. Se o atacante enviar 0, a aplicação quebra ou trava, indisponibilizando o serviço.

How to mitigate

Validar sempre o divisor antes de usá-lo: checar se é diferente de zero e rejeitar ou tratar o caso com valor padrão. Em linguagens modernas, usar exceptions tipadas e logging para sinalizar tentativas suspeitas.

CVE-2026-37232HIGHAn issue was discovered in OpenAirInterface5G 2.4.0 (nr-softmodem) in the E2SM-KPM RAN Function's PRB utilization metric calculation. The fuEPSS 0.4%CVE-2026-63117MEDIUMFreeRDP: Denial of service through ADPCM frame size calculationEPSS 0.4%CVE-2026-25799MEDIUMImageMagick has Division-by-Zero in YUV sampling factor validation, which leads to crashEPSS 0.4%CVE-2026-33593HIGHDenial of service via crafted DNSCrypt queryEPSS 0.4%CVE-2025-54873LOWRISC Zero Underconstrained Vulnerability: DivisionEPSS 0.4%CVE-2026-62431HIGHViridian STIMER division by zeroEPSS 0.4%CVE-2026-67302MEDIUMFreeRDP rdpecam StartStreamsRequest divide-by-zero denial of serviceEPSS 0.4%CVE-2026-42209MEDIUMFlashMQ: Division by zero crash when using non-default deferred retained message settingEPSS 0.4%CVE-2025-65409HIGHA divide-by-zero in the encryption/decryption routines of GNU Recutils v1.9 allows attackers to cause a Denial of Service (DoS) via inputtinEPSS 0.3%CVE-2023-3044LOWDivide-by-zero in Xpdf 4.04 due to very large page sizeEPSS 0.3%CVE-2025-62594MEDIUMImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)EPSS 0.3%CVE-2026-92881MEDIUMvgmstream AWB parser awb.c init_vgmstream_awb_memory divide by zeroEPSS 0.3%CVE-2020-27790A floating point exception issue was discovered in UPX in PackLinuxElf64::invert_pt_dynamic() function of p_lx_elf.cpp file. An attacker witEPSS 0.3%CVE-2025-48754LOWIn the memory_pages crate 0.1.0 for Rust, division by zero can occur.EPSS 0.3%CVE-2018-9354MEDIUMIn VideoFrameScheduler.cpp of VideoFrameScheduler::PLL::fit, there is a possible remote denial of service due to divide by 0. This could leaEPSS 0.3%CVE-2023-4678MEDIUMDivide By Zero in gpac/gpacEPSS 0.3%CVE-2026-6683MEDIUMFatFs Divide-by-Zero in exFAT SyncEPSS 0.3%CVE-2021-3941In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white.x - chroma.white.y) * YEPSS 0.3%CVE-2026-31884MEDIUMFreeRDP has a division-by-zero in ADPCM decoders when `nBlockAlign` is 0EPSS 0.3%CVE-2025-71006MEDIUMA floating point exception (FPE) in the oneflow.reshape component of OneFlow v0.9.0 allows attackers to cause a Denial of Service (DoS) via EPSS 0.3%