CWEweakness

CWE-834 Excessive Iteration

Official page ↗
Abstraction
Class
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

The product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed.

Common consequences

• Availability: DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Amplification, DoS: Crash, Exit, or Restart — Excessive looping will cause unexpected consumption of resources, such as CPU cycles or memory. The product's operation may slow down, or cause a long time to respond. If limited resources such as memory are consumed for each iteration, the loop may eventually cause a crash or program exit due to exhaustion of resources, such as an out-of-memory error. 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.

Detection methods

• Dynamic Analysis with Manual Results Interpretation: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Fuzz Tester • Framework-based Fuzzer • Forced Path Execution • Manual Static Analysis - Source Code: According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: • Focused Manual Spotcheck - Focused manual analysis of source • Manual Source Code Review (not inspections) • Automated Static Analysis - Source Code: According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: • Context-configured Source Code Weakness Analyzer • Architecture or Design Review: According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: • Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)

Observed examples

• CVE-2011-1027: Chain: off-by-one error (CWE-193) leads to infinite loop (CWE-835) using invalid hex-encoded characters. • CVE-2006-6499: Chain: web browser crashes due to infinite loop - "bad looping logic [that relies on] floating point math [CWE-1339] to exit the loop [CWE-835]"

Related

Observed example · CVE (2)

  • CVE-2011-1027 Off-by-one error in the convert_query_hexchar function in html.c in cgit.cgi in cgit before 0.8.3.5 allows remote attackers to cause a… vulnerability
  • CVE-2006-6499 The js_dtoa function in Mozilla Firefox 2.x before 2.0.0.1, 1.5.x before 1.5.0.9, Thunderbird before 1.5.0.9, and SeaMonkey before 1.0.7… vulnerability

Child of · CWE (1)

  • CWE-691 Insufficient Control Flow Management weakness

Referenced by CVE · weakness (127)

  • CVE-2026-115911 vLLM is an inference and serving engine for large language models. vulnerability
  • CVE-2026-115580 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-90798 A missing circuit-breaker in the replicator in Apache CouchDB 3.5.2 and below on all platforms allows the owner of a replication source or… vulnerability
  • CVE-2026-110596 quirc through 1.2 contains an excessive-iteration vulnerability in find_alignment_pattern() in lib/identify.c that allows attackers to hang… vulnerability
  • CVE-2026-109299 Open WebUI from 0.9.0 before 0.11.4 contains a denial of service vulnerability that allows authenticated users with automations permission… vulnerability
  • CVE-2026-106576 ImageMagick is free and open-source software used for editing and manipulating digital images. vulnerability
  • CVE-2026-91137 Improper validation of specified quantity in input, Allocation of resources without limits or throttling, Excessive Iteration vulnerability… vulnerability
  • CVE-2026-53493 containerd is an open-source container runtime. vulnerability
  • CVE-2026-87721 Uncontrolled Resource Consumption (CWE-400 / CWE-407) in the ANTLR 3 search query parser (QueryParser / Query.g) in Gerrit Code Review… vulnerability
  • CVE-2026-77399 icalendar is an RFC 5545 compatible parser and generator of iCalendar files for Python. vulnerability
  • CVE-2026-81880 radare2 is a UNIX-like reverse engineering framework and command-line toolset. vulnerability
  • CVE-2026-81872 OpenTelemetry-Go is the Go implementation of OpenTelemetry. vulnerability
  • CVE-2026-16497 NVIDIA Triton Inference Server for Linux contains a vulnerability where an attacker could cause excessive iteration. vulnerability
  • CVE-2026-84310 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-84311 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-77357 Mesop is a Python-based UI framework that allows users to build web applications. vulnerability
  • CVE-2026-71852 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-59644 In Bouncy Castle for Java before 1.85, MLS hash-ratchet honours arbitrary 32-bit generation counter from sender. vulnerability
  • CVE-2026-64641 Next.js is a React framework for building full-stack web applications. vulnerability
  • CVE-2026-50171 Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. vulnerability
  • CVE-2026-45680 OpenTelemetry eBPF Instrumentation provides eBPF instrumentation based on the OpenTelemetry standard. vulnerability
  • CVE-2026-48156 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-41168 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-41313 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2026-40347 Python-Multipart is a streaming multipart parser for Python. vulnerability
  • CVE-2026-34043 Serialize JavaScript to a superset of JSON that includes regular expressions and functions. vulnerability
  • CVE-2026-27025 pypdf is a free and open-source pure-python PDF library. vulnerability
  • CVE-2025-67726 Tornado is a Python web framework and asynchronous networking library. vulnerability
  • CVE-2025-55181 Sending an HTTP request/response body with greater than 2^31 bytes triggers an infinite loop in proxygen::coro::HTTPQuicCoroSession which… vulnerability
  • CVE-2025-62707 pypdf is a free and open-source pure-python PDF library. vulnerability
Show all 127 ›

Referenced by CWE · can precede (2)

  • CWE-1339 Insufficient Precision or Accuracy of a Real Number weakness
  • CWE-606 Unchecked Input for Loop Condition weakness

Referenced by CWE · child of (3)

  • CWE-1322 Use of Blocking Code in Single-threaded, Non-blocking Context weakness
  • CWE-674 Uncontrolled Recursion weakness
  • CWE-835 Loop with Unreachable Exit Condition weakness

Referenced by CWE · has member (1)

  • CWE-1003 Weaknesses for Simplified Mapping of Published Vulnerabilities view