CWE-674: Uncontrolled Recursion
low-riskThe product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Abstraction: Class
Common Consequences
Availability
→
DoS: Resource Consumption (CPU)
Confidentiality
→
Read Application Data
Detection Methods
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Real-World Examples (10)
| CVE | CVSS | EPSS | KEV |
|---|---|---|---|
| CVE-2021-42697 | 7.5 | 75.5% | — |
| CVE-2021-45105 | 5.9 | 70.4% | — |
| CVE-2021-45105 | 5.9 | 70.4% | — |
| CVE-2019-13288 | 5.5 | 27.5% | — |
| CVE-2020-12100 | 7.5 | 19.6% | — |
| CVE-2017-8542 | 5.5 | 19.2% | — |
| CVE-2017-8539 | 5.5 | 19.2% | — |
| CVE-2007-3409 | 7.5 | 18.0% | — |
| CVE-2007-3409 | 7.5 | 18.0% | — |
| CVE-2024-4340 | 7.5 | 16.0% | — |
4
/ 100
low-risk
Active Threat
3/50 · Minimal
Exploit Availability
1/50 · Minimal