CWE-369 · Słabość
Divide By Zero
- Abstrakcja
- Bazowa
- Status
- Szkic
- Ryzyko wykorzystania
- średnie
- Dodano
- 11 kwietnia 2008
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product divides a value by zero.
This weakness typically occurs when an unexpected value is provided to the product, or if an error occurs that is not properly detected. It frequently occurs in calculations involving physical dimensions such as size, length, width, and height.
Skutki
Availability
DoS: Crash, Exit, or Restart
A Divide by Zero results in a crash.
Przykłady podatności
- 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.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- Handling Errors Exceptionally Well in C++ — Alex Allain
- Exceptions and Exception Handling (C# Programming Guide) — Microsoft
Wpis z katalogu CWE 4.20.