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

目标: 1000 元 · 已筹: 1336

100%

CWE-835 不可达退出条件的循环(无限循环) 类漏洞列表 289

CWE-835 不可达退出条件的循环(无限循环) 类弱点 289 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-835属于逻辑缺陷类漏洞,指程序包含无法到达退出条件的循环,导致无限执行。攻击者通常利用此缺陷发起拒绝服务攻击,通过触发无限循环耗尽服务器CPU资源或内存,使合法用户无法访问服务。开发者应避免此类问题,需确保循环变量在每次迭代中正确更新,并设置合理的边界检查或超时机制,保证循环最终能正常终止。

MITRE CWE 官方描述
CWE:CWE-835 具有不可达退出条件的循环('Infinite Loop') 英文:该产品包含一个迭代或循环,其退出条件无法被到达,即无限循环。
常见影响 (1)
Availability DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Amplification
An infinite loop will cause unexpected consumption of resources, such as CPU cycles or memory. The software's operation may slow down, or cause a long time to respond.
代码示例 (2)
In the following code the method processMessagesFromServer attempts to establish a connection to a server and read and process messages from the server. The method uses a do/while loop to continue trying to establish the connection to the server when an attempt fails.
int processMessagesFromServer(char *hostaddr, int port) { ... int servsock; int connected; struct sockaddr_in servaddr; // create socket to connect to server servsock = socket( AF_INET, SOCK_STREAM, 0); memset( &servaddr, 0, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_port = htons(port); servaddr.sin_addr.s_addr = inet_addr(hostaddr); do { // establish connection to server connected = connect(servsock, (struct sockaddr *)&servaddr, sizeof(servaddr)); // if connected then read and process messages from server if (connected > -1) { // read and process messages ... } // keep tr
Bad · C
int processMessagesFromServer(char *hostaddr, int port) { ... // initialize number of attempts counter int count = 0; do { // establish connection to server connected = connect(servsock, (struct sockaddr *)&servaddr, sizeof(servaddr)); // increment counter count++; // if connected then read and process messages from server if (connected > -1) { // read and process messages ... } // keep trying to establish connection to the server // up to a maximum number of attempts } while (connected < 0 && count < MAX_ATTEMPTS); // close socket and return success or failure ... }
Good · C
For this example, the method isReorderNeeded is part of a bookstore application that determines if a particular book needs to be reordered based on the current inventory count and the rate at which the book is being sold.
public boolean isReorderNeeded(String bookISBN, int rateSold) { boolean isReorder = false; int minimumCount = 10; int days = 0; // get inventory count for book int inventoryCount = inventory.getIventoryCount(bookISBN); // find number of days until inventory count reaches minimum while (inventoryCount > minimumCount) { inventoryCount = inventoryCount - rateSold; days++; } // if number of days within reorder timeframe // set reorder return boolean to true if (days > 0 && days < 5) { isReorder = true; } return isReorder; }
Bad · Java
public boolean isReorderNeeded(String bookISBN, int rateSold) { ... // validate rateSold variable if (rateSold < 1) { return isReorder; } ... }
Good · Java
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-45271 picotls minicrypto ASN.1 解码器无限递归漏洞 — picotls 5.5 Medium 2026-08-21
CVE-2026-61556 Yang Jun LiquidJS 资源管理错误漏洞 — liquidjs 8.7 High 2026-08-19
CVE-2026-12629 Zephyr 资源管理错误漏洞 — zephyr 4.6 Medium 2026-08-17
CVE-2026-68762 JetBrains Ktor 资源管理错误漏洞 — Ktor 5.9 Medium 2026-08-17
CVE-2026-13002 Simon Kelley DNSmasq 资源管理错误漏洞 — Red Hat Enterprise Linux 10 4.4 Medium 2026-08-14
CVE-2026-17004 IBM i 资源管理错误漏洞 — i 7.5 High 2026-08-13
CVE-2026-17229 IBM i 资源管理错误漏洞 — i 7.5 High 2026-08-13
CVE-2026-12236 蓝牙GATT客户端读取零长度数据时无限循环导致拒绝服务 — zephyr 6.5 Medium 2026-08-13
CVE-2026-19484 Fastify busboy 处理逻辑错误漏洞 — @fastify/busboy 7.5 High 2026-08-13
CVE-2026-18726 Open-iSCSI 资源管理错误漏洞 — Red Hat Enterprise Linux 10 6.5 Medium 2026-08-12
CVE-2026-11932 IBM Security Verify Access 资源管理错误漏洞 — Security Verify Access 5.3 Medium 2026-08-12
CVE-2026-16931 IBM i 资源管理错误漏洞 — i 7.5 High 2026-08-12
CVE-2026-72712 Nmap 资源管理错误漏洞 — Nmap 6.5 Medium 2026-08-11
CVE-2026-8798 Legion of the Bouncy Castle Bouncy Castle for Java 资源管理错误漏洞 — BC-FJA 8.7 High 2026-08-08
CVE-2026-71436 mermaid-js mermaid 资源管理错误漏洞 — mermaid 5.3 Medium 2026-08-06
CVE-2026-71227 chronox.de libkcapi 资源管理错误漏洞 — libkcapi 5.1 Medium 2026-08-05
CVE-2026-10686 zephyrproject zephyr 资源管理错误漏洞 — zephyr 5.8 Medium 2026-07-31
CVE-2026-68499 re2 String.prototype.match 无限循环内存增长漏洞 — node-re2 6.2 Medium 2026-07-30
CVE-2026-59901 Netty 资源管理错误漏洞 — netty 8.7 High 2026-07-29
CVE-2026-67214 Andrey Sitnik Nano ID 资源管理错误漏洞 — nanoid 5.9 Medium 2026-07-29
CVE-2026-67213 Andrey Sitnik Nano ID 资源管理错误漏洞 — nanoid 5.9 Medium 2026-07-29
CVE-2026-10683 DesignWare I2C 目标驱动可被挂起导致拒绝服务漏洞 — zephyr 2.4 Low 2026-07-27
CVE-2026-66730 facil.io 0.6.0-0.7.6 无限循环拒绝服务漏洞 — facil.io 7.5 High 2026-07-27
CVE-2026-43871 Apache Thrift 资源管理错误漏洞 — Apache Thrift 8.7 High 2026-07-27
CVE-2026-64611 OpenPrinting libcupsfilters 资源管理错误漏洞 — Red Hat Enterprise Linux 10 7.5 High 2026-07-23
CVE-2026-64834 FFmpeg 资源管理错误漏洞 — FFmpeg 7.5 High 2026-07-22
CVE-2026-16551 Thinkst Applied Research OpenCanary 输入验证错误漏洞 — OpenCanary - - 2026-07-22
CVE-2026-45820 101arrowz fflate 资源管理错误漏洞 — fflate - - 2026-07-22
CVE-2026-59849 libssh 资源管理错误漏洞 — Red Hat Enterprise Linux 10 3.1 Low 2026-07-21
CVE-2026-59843 libssh 资源管理错误漏洞 — Red Hat Enterprise Linux 10 6.5 Medium 2026-07-21

CWE-835(不可达退出条件的循环(无限循环)) 是常见的弱点类别,本平台收录该类弱点关联的 289 条 CVE 漏洞。