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

目标: 1000 元 · 已筹: 1359 元

100%

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

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

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

MITRE CWE 官方描述
CWE:CWE-674 Uncontrolled Recursion(失控递归) 英文:产品未对发生的递归量进行适当控制,导致消耗过多资源,例如已分配的内存(allocated memory)或程序栈(program stack)。
常见影响 (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…
缓解措施 (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
代码示例 (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-6862 Red Hat Enterprise Linux 10 安全漏洞 — Red Hat Hardened Images 5.5 Medium 2026-04-22
CVE-2026-40879 nest 安全漏洞 — nest 7.5 High 2026-04-21
CVE-2026-40324 Hot Chocolate 安全漏洞 — graphql-platform 9.1 Critical 2026-04-17
CVE-2026-33947 jq 安全漏洞 — jq 6.2 Medium 2026-04-13
CVE-2026-33908 ImageMagick 安全漏洞 — ImageMagick 7.5 High 2026-04-13
CVE-2026-33902 ImageMagick 安全漏洞 — ImageMagick 5.5 Medium 2026-04-13
CVE-2026-39376 FastFeedParser 安全漏洞 — fastfeedparser 7.5 High 2026-04-07
CVE-2026-34211 SandboxJS 安全漏洞 — SandboxJS 7.5AI High AI 2026-04-06
CVE-2026-3778 Foxit PDF Reader和Foxit PDF Editor 安全漏洞 — Foxit PDF Editor 6.2 Medium 2026-04-01
CVE-2026-34536 iccDEV 安全漏洞 — iccDEV 6.2 Medium 2026-03-31
CVE-2026-33532 YAML 安全漏洞 — yaml 4.3 Medium 2026-03-26
CVE-2026-4833 discount 安全漏洞 — discount 3.3 Low 2026-03-26
CVE-2026-33508 Parse Server 安全漏洞 — parse-server 7.5 - 2026-03-24
CVE-2026-33498 Parse Server 安全漏洞 — parse-server 7.5 - 2026-03-24
CVE-2026-33320 Dasel 安全漏洞 — dasel 6.2 Medium 2026-03-24
CVE-2026-26209 cbor2 安全漏洞 — cbor2 7.5 - 2026-03-23
CVE-2026-32933 AutoMapper 安全漏洞 — AutoMapper 7.5 High 2026-03-20
CVE-2026-32944 Parse Server 安全漏洞 — parse-server 7.5 - 2026-03-18
CVE-2026-30922 pyasn1 安全漏洞 — pyasn1 7.5 High 2026-03-18
CVE-2026-31899 CairoSVG 安全漏洞 — CairoSVG 7.5 High 2026-03-13
CVE-2026-32141 flatted 安全漏洞 — flatted 7.5 High 2026-03-12
CVE-2026-1069 GitLab Enterprise Edition(EE)和GitLab Community Edition(CE) 安全漏洞 — GitLab 7.5 High 2026-03-11
CVE-2026-29076 cpp-httplib 安全漏洞 — cpp-httplib 5.9 Medium 2026-03-07
CVE-2026-25048 XGrammar 安全漏洞 — xgrammar 7.5 - 2026-03-05
CVE-2026-3520 Multer 安全漏洞 — multer 7.5 - 2026-03-04
CVE-2026-3388 SQUIRREL 安全漏洞 — Squirrel 3.3 Low 2026-03-01
CVE-2026-3385 wren 安全漏洞 — wren 3.3 Low 2026-03-01
CVE-2026-3384 ChaiScript 安全漏洞 — ChaiScript 3.3 Low 2026-03-01
CVE-2026-25971 ImageMagick 安全漏洞 — ImageMagick 6.2 Medium 2026-02-24
CVE-2026-2887 Lobster 安全漏洞 — lobster 3.3 Low 2026-02-21

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