CWE-606: Unchecked Input for Loop Condition

BaseDraft

The product does not properly check inputs that are used for loop conditions, potentially leading to a denial of service or other consequences because of excessive looping.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-606: Unchecked Input for Loop Condition?+

CWE-606: Unchecked Input for Loop Condition is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product does not properly check inputs that are used for loop conditions, potentially leading to a denial of service or other consequences because of excessive looping.

What are the security consequences of Unchecked Input for Loop Condition?+

If exploited, CWE-606 (Unchecked Input for Loop Condition) it can compromise Availability, leading to outcomes such as DoS: Resource Consumption (CPU).

How do you prevent or mitigate Unchecked Input for Loop Condition?+

Recommended mitigations for CWE-606 include: Do not use user-controlled data for loop conditions. Perform input validation.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-606 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More