Weaknesses of type CWE-369
208 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-2021-37642MEDIUMDivision by 0 in `ResourceScatterDiv` in TensorFlowEPSS 0.2%CVE-2021-37636MEDIUMFloating point exception in `SparseDenseCwiseDiv` in TensorFlowEPSS 0.2%CVE-2021-37680MEDIUMDivision by zero in TFLite in TensorFlowEPSS 0.2%CVE-2021-37691MEDIUMDivision by zero in LSH in TensorFlow LiteEPSS 0.2%CVE-2021-37653MEDIUMDivision by 0 in `ResourceGather` in TensorFlowEPSS 0.2%CVE-2021-37640MEDIUMInteger division by 0 in sparse reshaping in TensorFlowEPSS 0.2%CVE-2026-36911MEDIUMA division-by-zero vulnerability in the CStreamSwitcherOutputPin::DecideBufferSize function of Aleksoid1978 MPC-BE before commit 4341cb3 allEPSS 0.1%CVE-2021-41207MEDIUMDivision by zero in `ParallelConcat`EPSS 0.1%CVE-2021-41209MEDIUMFPE in convolutions with zero size filtersEPSS 0.1%CVE-2021-37684MEDIUMDivision by zero in TensorFlow Lite pooling operationsEPSS 0.1%CVE-2021-41218MEDIUMInteger division by 0 in `tf.raw_ops.AllToAll`EPSS 0.1%CVE-2026-10679LOWDivide-by-zero in DesignWare SPI driver reachable from spi_transceive syscall (local DoS)EPSS 0.1%CVE-2025-23273LOWNVIDIA CUDA Toolkit for all platforms contains a vulnerability in nvJPEG where a local authenticated user may cause a divide by zero error bEPSS 0.1%CVE-2026-15417MEDIUMCP210x Denial of ServiceEPSS 0.1%CVE-2026-21495MEDIUMDivision by Zero in iccDEV TIFF Image ReaderEPSS 0.1%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.1%CVE-2026-17535MEDIUMVelociraptor Multiple Crashes in NTFS Parser when applied to invalid NTFS VolumesEPSS 0.1%CVE-2026-19025MEDIUMHDF5 divide-by-zero (SIGFPE) via mismatched chunk-layout dimensionality and dataspace rank on dataset openEPSS 0.1%CVE-2026-10201MEDIUMAssimp UV Channel FBXExporter.cpp WriteObjects divide by zeroEPSS 0.1%CVE-2026-16897MEDIUMVulnerabilities in IBM AIX and PowerVM VIOSEPSS 0.1%