CWE•Class•Draft•20 recent CVEs
CWE-674Uncontrolled Recursion
Description
The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Common consequences
- 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 DataIn some cases, an application's interpreter might kill a process or thread that appears to be consuming too much resources, such as with PHP's memory_limit setting. When the interpreter kills the process/thread, it might report an error con
Potential mitigations
- ImplementationEnsure 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.
- ImplementationIncrease the stack size.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-499417.52026-06-04CVE-2026-477065.32026-06-04CVE-2026-473206.12026-06-04CVE-2026-473066.12026-06-04CVE-2026-89362026-06-02CVE-2026-409895.72026-06-01CVE-2026-447406.52026-06-01CVE-2026-423286.22026-05-27CVE-2026-69366.52026-05-27CVE-2026-448442026-05-26CVE-2026-74535.52026-05-26CVE-2026-93584.32026-05-24CVE-2026-473175.52026-05-19CVE-2026-473095.52026-05-19CVE-2026-68115.92026-05-14CVE-2026-419357.12026-05-14CVE-2026-64797.52026-05-14CVE-2026-452055.32026-05-14CVE-2026-457405.32026-05-13CVE-2026-442897.52026-05-13