CWE-834
Excessive Iteration
AI Translation Available
The product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed.
Status
incomplete
Abstraction
class
Affected Platforms
Extended Description
AI Translation
If the iteration can be influenced by an attacker, this weakness could allow attackers to consume excessive resources such as CPU or memory. In many cases, a loop does not need to be infinite in order to cause enough resource consumption to adversely affect the product or its host system; it depends on the amount of resources consumed per iteration.
Technical Details
AI Translation
Common Consequences
availability
Impacts
dos: resource consumption (cpu)
dos: resource consumption (memory)
dos: amplification
dos: crash, exit, or restart
Detection Methods
dynamic analysis with manual results interpretation
manual static analysis - source code
automated static analysis - source code
architecture or design review