目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-674 未经控制的递归 类漏洞列表 212

CWE-674 未经控制的递归 类弱点 212 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-674 属于资源管理不当类漏洞,指程序未对递归深度进行有效限制,导致内存或栈空间被过度消耗。攻击者通常通过构造深层嵌套的输入或恶意请求,触发无限或过深的递归调用,从而耗尽系统资源,引发拒绝服务攻击。开发者应在代码中设置明确的递归终止条件或最大深度阈值,并引入迭代逻辑替代深层递归,以确保资源使用的可控性。

MITRE CWE 官方描述
CWE:CWE-674 Uncontrolled Recursion(失控递归) 英文:产品未对发生的递归量进行适当控制,导致消耗过多资源,例如已分配的内存(allocated memory)或程序栈(program stack)。
常见影响 (2)
AvailabilityDoS: 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.
ConfidentialityRead 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…
缓解措施 (2)
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.
Effectiveness: Moderate
ImplementationIncrease the stack size.
Effectiveness: Limited
代码示例 (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标题CVSS风险等级Published
CVE-2026-18140 smithy-rs JSON未知键跳过路径远程拒绝服务漏洞 — aws-smithy-json 7.5 High2026-07-30
CVE-2026-67194 Sam Varshavchik Courier IMAP 资源管理错误漏洞 — Courier IMAP 6.5 Medium2026-07-29
CVE-2026-67215 davegamble cjson 资源管理错误漏洞 — cJSON 7.5 High2026-07-29
CVE-2026-58178 Apache Traffic Server 资源管理错误漏洞 — Apache Traffic Server 7.5 High2026-07-29
CVE-2026-16192 IBM WebSphere Application Server Liberty 资源管理错误漏洞 — WebSphere Application Server - Liberty 7.1 High2026-07-28
CVE-2026-66920 Pivotick 资源管理错误漏洞 — Pivotick 8.2 High2026-07-28
CVE-2026-58227 Erlang OTP 资源管理错误漏洞 — OTP 8.7 High2026-07-27
CVE-2026-17501 ggml llama.cpp 资源管理错误漏洞 — llama.cpp 5.3 Medium2026-07-27
CVE-2026-63144 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium2026-07-21
CVE-2026-64194 NLNETLABS Net::DNS 资源管理错误漏洞 — Net::DNS--2026-07-20
CVE-2026-63760 SurrealDB 资源管理错误漏洞 — surrealdb 7.5 High2026-07-20
CVE-2026-63759 SurrealDB 资源管理错误漏洞 — surrealdb 6.5 Medium2026-07-20
CVE-2026-63737 SurrealDB 资源管理错误漏洞 — surrealdb 6.5 Medium2026-07-20
CVE-2025-71393 SurrealDB 资源管理错误漏洞 — surrealdb 6.0 Medium2026-07-18
CVE-2024-58370 SurrealDB 资源管理错误漏洞 — surrealdb 6.5 Medium2026-07-18
CVE-2026-47180 python-zeroconf 资源管理错误漏洞 — python-zeroconf 6.5 Medium2026-07-17
CVE-2026-38755 BusyBox 安全漏洞 — BusyBox 2.9 Low2026-07-15
CVE-2026-38752 BusyBox 安全漏洞 — BusyBox 2.9 Low2026-07-15
CVE-2026-45133 Symfony 资源管理错误漏洞 — symfony--2026-07-14
CVE-2026-40007 Apache IoTDB 资源管理错误漏洞 — Apache IoTDB--2026-07-10
CVE-2026-59927 Hsiaoming Yang mistune 资源管理错误漏洞 — mistune 5.3 Medium2026-07-08
CVE-2026-14803 SRI Mojolicious 资源管理错误漏洞 — Mojo::JSON--2026-07-06
CVE-2026-56148 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium2026-07-01
CVE-2026-49451 microsoft OpenAPI.NET 资源管理错误漏洞 — OpenAPI.NET 7.5 High2026-06-30
CVE-2026-57081 Sanko Robinson Net::BitTorrent 资源管理错误漏洞 — Net::BitTorrent--2026-06-30
CVE-2026-54888 leandrocp mdex 资源管理错误漏洞 — mdex--2026-06-29
CVE-2026-13757 P11-glue P11-kit 资源管理错误漏洞 — Red Hat Hardened Images 6.2 Medium2026-06-29
CVE-2026-47770 jqlang jq 资源管理错误漏洞 — jq--2026-06-25
CVE-2026-54297 lostisland Faraday 资源管理错误漏洞 — faraday 7.5 High2026-06-24
CVE-2025-71382 ArtifexSoftware mupdf 资源管理错误漏洞 — mupdf 6.5 Medium2026-06-23

CWE-674(未经控制的递归) 是常见的弱点类别,本平台收录该类弱点关联的 212 条 CVE 漏洞。