logo
Home/CWEs/CWE-835/

CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')

  • Abstraction:Base
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2011-03-30
  • Latest Modification Date:2024-11-19

Weakness Name

Loop with Unreachable Exit Condition ('Infinite Loop')

Description

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Common Consequences

Scope: Availability

Impact: DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Amplification

Notes: An infinite loop will cause unexpected consumption of resources, such as CPU cycles or memory. The software's operation may slow down, or cause a long time to respond.

Related Weaknesses

CWE-834Excessive Iteration