[Forgot Password]
Login  Register Subscribe

30430

 
 

423868

 
 

247621

 
 

909

 
 

194512

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

Uncontrolled Recursion

ID: 674Date: (C)2012-05-14   (M)2022-10-10
Type: weaknessStatus: DRAFT
Abstraction Type: Base





Description

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

Applicable Platforms
Language Class: All

Time Of Introduction

  • Architecture and Design
  • Implementation

Related Attack Patterns

Common Consequences

ScopeTechnical ImpactNotes
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 much 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.
 

Detection Methods
None

Potential Mitigations

PhaseStrategyDescriptionEffectivenessNotes
Implementation
 
 Limit the number of recursive calls to a reasonable number.
 
  

Relationships

Related CWETypeViewChain
CWE-674 ChildOf CWE-892 Category CWE-888  

Demonstrative Examples
None

Observed Examples

  1. CVE-2007-1285 : Deeply nested arrays trigger stack exhaustion.
  2. CVE-2007-3409 : Self-referencing pointers create infinite loop and resultant stack exhaustion.

For more examples, refer to CVE relations in the bottom box.

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings

TaxynomyIdNameFit
OWASP Top Ten 2004 A9
 
Denial of Service
 
CWE_More_Specific
 

References:
None

CVE    114
CVE-2021-22454
CVE-2021-22144
CVE-2021-28040
CVE-2021-27432
...

© SecPod Technologies