CWEweakness

CWE-369 Divide By Zero

Medium Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Likelihood of exploit
Medium
Languages
Not Language-Specific
CWE version
5.0

Description

The product divides a value by zero.

Common consequences

• Availability: DoS: Crash, Exit, or Restart — A Divide by Zero results in a crash.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) • Fuzzing: Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.

Observed examples

• CVE-2007-3268: Invalid size value leads to divide by zero. • CVE-2007-2723: "Empty" content triggers divide by zero. • CVE-2007-2237: Height value of 0 triggers divide by zero.

Related

Observed example · CVE (3)

  • CVE-2007-3268 The TFTP implementation in IBM Tivoli Provisioning Manager for OS Deployment 5.1 before Fix Pack 3 allows remote attackers to cause a… vulnerability
  • CVE-2007-2237 Microsoft Windows Graphics Device Interface (GDI+, GdiPlus.dll) allows context-dependent attackers to cause a denial of service (crash) via… vulnerability
  • CVE-2007-2723 Media Player Classic 6.4.9.0 allows user-assisted remote attackers to cause a denial of service (web browser crash) via an "empty" .MPA… vulnerability

Child of · CWE (1)

  • CWE-682 Incorrect Calculation weakness

Referenced by CVE · weakness (487)

  • CVE-2026-59959 SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. vulnerability
  • CVE-2026-112013 libtta through 2.3 contains a divide-by-zero vulnerability in tta_decoder_init_get_info() that allows attackers to crash applications by… vulnerability
  • CVE-2026-112054 Schroedinger libschroedinger through 1.0.11 contains a divide by zero vulnerability that allows attackers to crash applications by… vulnerability
  • CVE-2025-55653 GPAC MP4Box v2.4 was discovered to contain a floating point exception in the gf_parse_lfrac function (utils/error.c). vulnerability
  • CVE-2026-110605 libschrift through 0.10.2 contains a divide by zero vulnerability that allows attackers to crash applications by supplying a font with… vulnerability
  • CVE-2026-107159 MiniUPnPd through 2.3.11 built with --strict contains a divide-by-zero vulnerability in ProcessSSDPData() that allows unauthenticated local… vulnerability
  • CVE-2026-105250 A security vulnerability has been detected in vgmstream up to r2117. vulnerability
  • CVE-2026-101887 BlueALSA (bluez-alsa/bluealsad) contains a division-by-zero vulnerability in the LC3plus sink decoder (a2dp-lc3plus.c,… vulnerability
  • CVE-2026-47534 NVIDIA GPU Display Driver for Windows and Linux contains a vulnerability in the kernel mode layer where an attacker could cause a divide by… vulnerability
  • CVE-2026-93589 ImageMagick before 7.1.2-31 and 6.9.13-56 contains a division-by-zero flaw in the FLIF encoder. vulnerability
  • CVE-2026-92881 A security vulnerability has been detected in vgmstream. vulnerability
  • CVE-2026-91955 FreeRDP before 3.31.0 fails to validate client-supplied DesktopWidth and DesktopHeight values during GCC negotiation, allowing remote… vulnerability
  • CVE-2026-15417 In the silabser.sys Windows 8 driver for CP210x devices, a local unprivileged user can use incorrect driver settings to cause a kernel… vulnerability
  • CVE-2026-79513 A divide-by-zero vulnerability in the gf_dash_get_timeline_duration function (src/media_tools/dash_client.c) of GPAC v26.07.0 allows… vulnerability
  • CVE-2026-6244 libpcap BPF interpreter for the 'div #k' and 'mod #k' ALU instructions does not check whether the immediate value is zero. vulnerability
  • CVE-2026-85458 Divide-by-zero in Xpdf 4.06 (and earlier), when a glyph in a Type 3 font has a zero height. vulnerability
  • CVE-2026-38345 A Division-by-Zero vulnerability in the ff_sws_init_single_context function (/libswscale/utils.c) of FFmpeg N-122528-gdd2976b9e1 allows… vulnerability
  • CVE-2026-75466 libjpeg-turbo 3.2.0 contains an integer division-by-zero vulnerability in the PNG loader. vulnerability
  • CVE-2026-71832 Aria2 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… vulnerability
  • CVE-2026-16897 IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a local attacker to cause a denial of service due to an out-of-bounds write. vulnerability
  • CVE-2026-63117 FreeRDP is a free implementation of the Remote Desktop Protocol. vulnerability
  • CVE-2026-64951 A rogue Velociraptor client can upload a malformed sparse file such that if the GUI attempts to expand the file, a panic occurs which may… vulnerability
  • CVE-2026-17535 Velociraptor's NTFS parsing library mishandles several out of bound and memory exhaustion bugs which may be triggered by maliciously… vulnerability
  • CVE-2026-68106 In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix division by zero with invalid uvd dimensions When width… vulnerability
  • CVE-2026-19025 H5O__layout_decode in H5Olayout.c in HDF5 through 2.3.0 does not validate that a chunked dataset's stored chunk-layout dimensionality… vulnerability
  • CVE-2026-67302 FreeRDP before 3.29.0 (affected versions <= 3.28.0) contains a divide-by-zero vulnerability in the rdpecam camera redirection client. vulnerability
  • CVE-2026-53503 Thumbor is an open-source photo thumbnail service by globo.com. vulnerability
  • CVE-2026-62431 The logic to handle periodic Viridian STIMERs performs a division with an unchecked user-controlled divisor value, that can be set to zero… vulnerability
  • CVE-2026-64275 In the Linux kernel, the following vulnerability has been resolved: Input: elan_i2c - prevent division by zero and arithmetic underflow The… vulnerability
  • CVE-2026-64236 In the Linux kernel, the following vulnerability has been resolved: i2c: davinci: fix division by zero on missing clock-frequency When the… vulnerability
Show all 487 ›

Referenced by CWE · has member (2)

  • CWE-1460 Weaknesses Addressed by the Top 20 Secure PLC Coding Practices view
  • CWE-884 CWE Cross-section view

Referenced by OWASP · mapped cwe (1)

  • A10:2025 Mishandling of Exceptional Conditions Top 10 2025