COMMON WEAKNESS ENUMERATIONDraft
CWE-191
Integer Underflow (Wrap or Wraparound)
Abstraction
Base
Structure
Simple
Likelihood of Exploit
Medium
Understand the problem
What is the problem?
Extended description
Terminology
Alternate terms and usages
Integer underflow
Root cause
How and when does the problem arise?
Lifecycle phase
Implementation
Risk
What does successful exploitation lead to?
DoS: Crash, Exit, or RestartDoS: Resource Consumption (CPU)DoS: Resource Consumption (Memory)DoS: Instability
Modify Memory
Execute Unauthorized Code or CommandsBypass Protection Mechanism
Defence
How is it prevented and fixed?
- Follow secure coding guidelines for input handling and boundary checking.
- Enforce strict security reviews and automated static analysis (SAST) checks.
Verification