The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Ensure an end condition will be reached under all logic conditions. The end condition may include testing 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.
Increase the stack size.
Our security experts can help you identify and remediate CWE-674 vulnerabilities in your codebase.
Get Security Assessment