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-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%CVE-2026-93589MEDIUMImageMagick before 7.1.2-31 Division by Zero in FLIF encoderEPSS 0.3%CVE-2022-3061Found Linux Kernel flaw in the i740 driver. The Userspace program could pass any values to the driver through ioctl() interface. The driver EPSS 0.3%CVE-2023-2662LOWDivide-by-zero in Xpdf 4.04 due to bad color space objectEPSS 0.3%CVE-2026-24826CRITICALOut-of-bounds write in turso3dEPSS 0.3%CVE-2022-49294MEDIUMdrm/amd/display: Check if modulo is 0 before dividing.EPSS 0.3%CVE-2024-50233MEDIUMstaging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()EPSS 0.3%CVE-2022-41287LOWA vulnerability has been identified in JT2Go (All versions < V14.1.0.6), Teamcenter Visualization V13.2 (All versions < V13.2.0.12), TeamcenEPSS 0.3%CVE-2021-47641MEDIUMvideo: fbdev: cirrusfb: check pixclock to avoid divide by zeroEPSS 0.3%CVE-2024-57922MEDIUMdrm/amd/display: Add check for granularity in dml ceil/floor helpersEPSS 0.3%CVE-2024-50287MEDIUMmedia: v4l2-tpg: prevent the risk of a division by zeroEPSS 0.3%CVE-2025-9649MEDIUMappneta tcpreplay send_packets.c calc_sleep_time divide by zeroEPSS 0.3%CVE-2024-56369MEDIUMdrm/modes: Avoid divide by zero harder in drm_mode_vrefresh()EPSS 0.2%CVE-2024-50232MEDIUMiio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()EPSS 0.2%CVE-2026-38345MEDIUMA Division-by-Zero vulnerability in the ff_sws_init_single_context function (/libswscale/utils.c) of FFmpeg N-122528-gdd2976b9e1 allows attaEPSS 0.2%CVE-2021-4216A Floating point exception (division-by-zero) flaw was found in Mupdf for zero width pages in muraster.c. It is fixed in Mupdf-1.20.0-rc1 upEPSS 0.2%CVE-2025-71005MEDIUMA floating point exception (FPE) in the oneflow.view component of OneFlow v0.9.0 allows attackers to cause a Denial of Service (DoS) via a cEPSS 0.2%CVE-2024-26945HIGHcrypto: iaa - Fix nr_cpus < nr_iaa caseEPSS 0.2%CVE-2024-56567MEDIUMad7780: fix division by zero in ad7780_write_raw()EPSS 0.2%CVE-2024-50205MEDIUMALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()EPSS 0.2%