Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-674 (未经控制的递归) — Vulnerability Class 326

326 vulnerabilities classified as CWE-674 (未经控制的递归). AI Chinese analysis included.

CWE-674 represents a resource management weakness where software fails to properly limit recursive function calls, leading to excessive consumption of system resources like memory or the program stack. This flaw is typically exploited by attackers who craft specific inputs that trigger deep or infinite recursion, causing the application to crash or become unresponsive. Such exploitation results in a denial-of-service condition, effectively disrupting service availability for legitimate users without requiring authentication or complex privilege escalation. To mitigate this risk, developers must implement robust safeguards, such as setting explicit maximum recursion depth limits or converting recursive algorithms into iterative ones using explicit data structures. Additionally, rigorous code reviews and static analysis tools can help identify potential infinite loops, ensuring that all recursive paths have clear termination conditions and adequate resource controls.

MITRE CWE 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 (2)
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 insta…
Mitigations (2)
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.
Effectiveness: Moderate
Implementation Increase the stack size.
Effectiveness: Limited
Examples (1)
In this example a mistake exists in the code where the exit condition contained in flg is never called. This results in the function calling itself over and over again until the stack is exhausted.
void do_something_recursive (int flg) { ... // Do some real work here, but the value of flg is unmodified if (flg) { do_something_recursive (flg); }    // flg is never modified so it is always TRUE - this call will continue until the stack explodes } int flag = 1; // Set to TRUE do_something_recursive (flag);
Bad · C
void do_something_recursive (int flg) { ... // Do some real work here // Modify value of flg on done condition if (flg) { do_something_recursive (flg); }    // returns when flg changes to 0 } int flag = 1; // Set to TRUE do_something_recursive (flag);
Good · C
CVE ID Title CVSS Severity Published
CVE-2026-100354 kin-openapi: Uncontrolled Recursion on Circular allOf/anyOf/oneOf Schemas Causes Fatal Process Crash — kin-openapi 7.5 High 2026-10-15
CVE-2026-109449 Symfony: Unbounded Nesting in the Expression Parser Lets Untrusted Expressions Crash the Process — symfony 8.7 High 2026-10-15
CVE-2026-109413 Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process — symfony 8.7 High 2026-10-15
CVE-2026-110263 OW2 ASM 3.0 before 9.11 Uncontrolled Recursion in SignatureReader — ASM 5.5 Medium 2026-10-14
CVE-2026-110259 OW2 ASM 3.0 before 9.11 Uncontrolled Recursion via ClassWriter.replaceAsmInstructions() — ASM 5.5 Medium 2026-10-14
CVE-2026-58280 .NET Denial of Service Vulnerability — .NET 10.0 7.5 High 2026-10-13
CVE-2026-90912 Maximo AI Service Denial of Service — Maximo AI Service 7.5 High 2026-10-12
CVE-2026-92876 IBM Maximo Application Suite - IoT Component Denial of Service — Maximo Application Suite - IoT Component 7.5 High 2026-10-12
CVE-2026-109267 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 Stack Overflow in MSL Decoder — ImageMagick 5.3 Medium 2026-10-12
CVE-2026-109264 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 Stack Overflow in MVG Decoder — ImageMagick 3.7 Low 2026-10-12
CVE-2026-107833 OWASP Coraza WAF: Unbounded recursion in JSON response body processor causes CPU exhaustion — coraza 5.9 Medium 2026-10-09
CVE-2026-107826 OWASP Coraza WAF: JSON body processor: argument-limit truncation reopens an unbounded-depth gjson.Valid stack overflow (process crash) — coraza 7.5 High 2026-10-09
CVE-2026-104635 Uncontrolled recursion in elixir-protobuf/protobuf JSON decoding of self-referential messages — protobuf 8.2 High 2026-10-09
CVE-2026-19498 Security vulnerabilities have been found in IBM Verify Identity Access and IBM Security Verify Access — Security Verify Access 5.9 Medium 2026-10-08
CVE-2026-107376 webonyx graphql-php: Unbounded recursion in parser causes stack overflow on crafted nested input — graphql-php 8.2 High 2026-10-08
CVE-2026-107300 msgpack5: Many buffered values can exhaust the streaming decoder stack — msgpack5 7.5 High 2026-10-08
CVE-2026-107298 msgpack5: Deeply nested input can exhaust the decoder stack — msgpack5 5.3 Medium 2026-10-08
CVE-2026-107678 FFmpeg through 9.0.2 Stack Exhaustion via Recursive Free of pssh Boxes — FFmpeg 4.7 Medium 2026-10-08
CVE-2026-44037 Uncontrolled recursion in DCMTK JSON reader allows denial of service — DCMTK 5.5 Medium 2026-10-08
CVE-2026-44036 Uncontrolled recursion in DCMTK xml2dcm allows denial of service — DCMTK 5.5 Medium 2026-10-08
CVE-2026-44035 Uncontrolled recursion in DCMTK DICOMDIR parsing allows denial of service — DCMTK 5.5 Medium 2026-10-08
CVE-2026-44033 Uncontrolled recursion in the DCMTK bundled XML parser allows denial of service — DCMTK 5.5 Medium 2026-10-08
CVE-2026-44031 Uncontrolled recursion in the DCMTK DICOM dataset parser allows unauthenticated remote denial of service — DCMTK 7.5 High 2026-10-08
CVE-2026-107216 Excelize ANCHORARRAY: mutually-referencing array formulas recurse unboundedly via re-entrant CalcCellValue, causing a fatal stack overflow — excelize 7.5 High 2026-10-07
CVE-2026-106572 ImageMagick: Stack Overflown CALS decoder due to missing depth check. — ImageMagick 5.3 Medium 2026-10-07
CVE-2026-106449 yawkat LZ4 Java: LZ4BlockInputStream with stopOnEmptyBlock=false recurses once per empty block, causing StackOverflowError — lz4-java 3.7 Low 2026-10-06
CVE-2026-106447 StableLib: Stack exhaustion denial of service via deeply nested CBOR arrays, maps, or tags — stablelib 8.7 High 2026-10-06
CVE-2026-103008 Uncontrolled Recursion in Elasticsearch Leading to Denial of Service — Elasticsearch 6.5 Medium 2026-10-06
CVE-2026-103006 Uncontrolled Recursion in Elasticsearch Leading to Denial of Service — Elasticsearch 6.5 Medium 2026-10-06
CVE-2026-102409 Uncontrolled Recursion in Elasticsearch Leading to Denial of Service — Elasticsearch 6.5 Medium 2026-10-06

Vulnerabilities classified as CWE-674 (未经控制的递归) represent 326 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.