1. CVE archive
  2. Vulnerability types
  3. CWE-674
CWE-674 · #74 most frequent type in the archive

Uncontrolled Recursion

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Part of: CWE-834 · Excessive Iteration

656CVEs of this type in the archive
8critical (CVSS ≥ 9)
320high severity (7–8.9)
Nov 27, 2026latest published

What it is

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Resources including CPU, memory, and stack memory could be rapidly consumed or exhausted, eventually leading to an exit or crash.
Confidentiality Read Application Data
In some cases, an application's interpreter might kill a process or thread that appears to be consuming too many resources, such as with PHP's memory_limit setting. When the interpreter kills the process/thread, it might report an error containing detailed information such as the application's installation path.

How to prevent it

Implementation Ensure that an end condition will be reached under all logic conditions. The end condition may include checking against the depth of recursion and exiting with an error if the recursion goes too deep. The complexity of the end condition contributes to the effectiveness of this action.
Implementation Increase the stack size.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-674 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20072
20161
201716
201818
201951
202028
202136
202246
202322
202431
202555
2026350

All CWE-674 CVEs

656 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.