Weaknesses of type CWE-369
222 resultsDivisã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-15417MEDIUMCP210x Denial of ServiceEPSS 0.2%CVE-2026-65160MEDIUMNVIDIA nvJPEG contains a vulnerability where an attacker could cause a divide-by-zero. A successful exploit of this vulnerability might leadEPSS 0.2%CVE-2025-70100MEDIUMA divide-by-zero vulnerability in the ext4_block_set_lb_size function in src/ext4_blockdev.c of the lwext4 1.0.0 library allows attackers toEPSS 0.2%CVE-2026-34546MEDIUMiccDEV: UB at TiffImg.hEPSS 0.2%CVE-2026-14801MEDIUMGPAC TeXML File load_text.c txtin_probe_duration divide by zeroEPSS 0.2%CVE-2021-37675MEDIUMDivision by 0 in most convolution operators in TensorFlowEPSS 0.2%CVE-2026-61378MEDIUMAutomationDirect Productivity Suite Divide By ZeroEPSS 0.2%CVE-2025-61554MEDIUMA divide-by-zero in VirtIO network device emulation in BitVisor from commit 108df6 (2020-05-20) to commit 480907 (2025-07-06) allows local aEPSS 0.2%CVE-2026-71832MEDIUMAria2 version 1.37.0 and below is affected by a Divide By Zero issue in src/bittorrent_helper.cc, which allows a remote malicious user to caEPSS 0.2%CVE-2026-17535MEDIUMVelociraptor Multiple Crashes in NTFS Parser when applied to invalid NTFS VolumesEPSS 0.2%CVE-2021-37642MEDIUMDivision by 0 in `ResourceScatterDiv` in TensorFlowEPSS 0.2%CVE-2021-37683MEDIUMDivision by zero in TensorFlow Lite division operationsEPSS 0.2%CVE-2021-37668MEDIUMDivision by zero in TensorFlow Lite `tf.raw_ops.UnravelIndex`EPSS 0.2%CVE-2021-37660MEDIUMDivision by 0 in inplace operations in TensorFlowEPSS 0.2%CVE-2021-37636MEDIUMFloating point exception in `SparseDenseCwiseDiv` in TensorFlowEPSS 0.2%CVE-2021-37640MEDIUMInteger division by 0 in sparse reshaping in TensorFlowEPSS 0.2%CVE-2021-37680MEDIUMDivision by zero in TFLite in TensorFlowEPSS 0.2%CVE-2021-37653MEDIUMDivision by 0 in `ResourceGather` in TensorFlowEPSS 0.2%CVE-2026-101887LOWBlueALSA bluealsad LC3plus Decoder Division-by-Zero DoSEPSS 0.2%CVE-2021-37691MEDIUMDivision by zero in LSH in TensorFlow LiteEPSS 0.2%