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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-400 (未加控制的资源消耗(资源穷尽)) — Vulnerability Class 1398

1398 vulnerabilities classified as CWE-400 (未加控制的资源消耗(资源穷尽)). AI Chinese analysis included.

CWE-400 represents a critical resource management weakness where software fails to properly control the allocation and maintenance of finite system resources, such as memory, CPU cycles, or file descriptors. Attackers typically exploit this vulnerability by triggering actions that consume excessive resources, leading to denial-of-service conditions that degrade performance or crash the application entirely. This often occurs through crafted inputs that force infinite loops, excessive data processing, or unbounded memory allocation. To mitigate this risk, developers must implement strict resource limits, including timeouts, maximum iteration counts, and memory caps. Additionally, employing robust input validation and monitoring tools helps detect abnormal consumption patterns early. By enforcing these controls, engineers ensure that applications remain resilient against resource exhaustion attacks, maintaining availability and stability even under malicious stress or unexpected load spikes.

MITRE CWE Description
The product does not properly control the allocation and maintenance of a limited resource.
Common Consequences (2)
AvailabilityDoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Resource Consumption (Other)
If an attacker can trigger the allocation of the limited resources, but the number or size of the resources is not controlled, then the most common result is denial of service. This would prevent valid users from accessing the product, and it could potentially have an impact on the surrounding envir…
Access Control, OtherBypass Protection Mechanism, Other
In some cases it may be possible to force the product to "fail open" in the event of resource exhaustion. The state of the product -- and possibly the security functionality - may then be compromised.
Mitigations (4)
Architecture and DesignDesign throttling mechanisms into the system architecture. The best protection is to limit the amount of resources that an unauthorized user can cause to be expended. A strong authentication and access control model will help prevent such attacks from occurring in the first place. The login application should be protected against DoS attacks as much as possible. Limiting the database access, perha…
Architecture and DesignMitigation of resource exhaustion attacks requires that the target system either: recognizes the attack and denies that user further access for a given amount of time, or uniformly throttles all requests in order to make it more difficult to consume resources more quickly than they can again be freed. The first of these solutions is an issue in itself though, since it may allow attackers to preven…
Architecture and DesignEnsure that protocols have specific limits of scale placed on them.
ImplementationEnsure that all failures in resource allocation place the system into a safe posture.
Examples (2)
The following example demonstrates the weakness.
class Worker implements Executor { ... public void execute(Runnable r) { try { ... } catch (InterruptedException ie) { // postpone response Thread.currentThread().interrupt(); } } public Worker(Channel ch, int nworkers) { ... } protected void activate() { Runnable loop = new Runnable() { public void run() { try { for (;;) { Runnable r = ...; r.run(); } } catch (InterruptedException ie) { ... } } }; new Thread(loop).start(); } }
Bad · Java
This code allocates a socket and forks each time it receives a new connection.
sock=socket(AF_INET, SOCK_STREAM, 0); while (1) { newsock=accept(sock, ...); printf("A connection has been accepted\n"); pid = fork(); }
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2022-1468 F5 BIG-IP 资源管理错误漏洞 — BIG-IP 4.3 Medium2022-05-05
CVE-2022-27182 F5 BIG-IP 资源管理错误漏洞 — BIG-IP 5.3 Medium2022-05-05
CVE-2022-27181 F5 BIG-IP APM 资源管理错误漏洞 — BIG-IP APM 5.3 Medium2022-05-05
CVE-2022-20760 Cisco Adaptive Security Appliance Software and Firepower Threat Defense Software DNS Inspection Denial of Service Vulnerability — Cisco Adaptive Security Appliance (ASA) Software 8.6 High2022-05-03
CVE-2022-22275 SonicWall SonicOS 资源管理错误漏洞 — SonicOS 7.5 -2022-04-27
CVE-2021-43933 ICSA-22-109-03 FANUC ROBOGUIDE Simulation Platform — ROBOGUIDE 6.1 Medium2022-04-20
CVE-2022-24863 Denial of service in http-swagger — http-swagger 7.5 High2022-04-18
CVE-2022-20692 Cisco IOS XE Software NETCONF Over SSH Denial of Service Vulnerability — Cisco IOS XE Software 7.7 High2022-04-15
CVE-2021-41119 DoS vulnerabiliity in wire-server json parser — wire-server 5.3 Medium2022-04-13
CVE-2022-1337 OOM DoS in Mattermost image proxy — Mattermost 4.3 Medium2022-04-13
CVE-2022-21155 Fernhill SCADA Uncontrolled Resource Consumption — SCADA Server 7.5 High2022-04-12
CVE-2022-27194 多款Siemens SIMATIC 产品 资源管理错误漏洞 — SIMATIC PCS neo (Administration Console) 7.5 -2022-04-12
CVE-2022-25622 多款Siemens SIMATIC产品资源管理错误漏洞 — SIMATIC CFU DIQ 5.3 Medium2022-04-12
CVE-2022-24839 Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork) — nekohtml 7.5 High2022-04-11
CVE-2022-24836 Inefficient Regular Expression Complexity in Nokogiri — nokogiri 7.5 High2022-04-11
CVE-2022-1210 LibTIFF tiff2ps resource consumption — LibTIFF 4.3 Medium2022-04-03
CVE-2021-22100 cloud foundry 资源管理错误漏洞 — Cloud Controller (CAPI) by cloud foundry 5.3 -2022-03-25
CVE-2022-24729 Regular expression Denial of Service in dialog plugin — ckeditor4 6.5 Medium2022-03-16
CVE-2022-22145 Yokogawa Exaopc 资源管理错误漏洞 — CENTUM CS 3000 6.5 -2022-03-11
CVE-2022-24726 Unauthenticated control plane denial of service attack in Istio — istio 7.5 High2022-03-10
CVE-2022-24741 High memory usage in Nextcloud server — security-advisories 3.5 Low2022-03-09
CVE-2022-24713 Regular expression denial of service in Rust's regex crate — regex 7.5 High2022-03-08
CVE-2021-3733 Python 资源管理错误漏洞 — python 6.5 -2022-03-07
CVE-2022-25326 Denial of Service in fscrypt — fscrypt 5.5 Medium2022-02-25
CVE-2021-4021 radare2 资源管理错误漏洞 — radare2 6.2 -2022-02-24
CVE-2022-0695 Denial of Service in radareorg/radare2 — radareorg/radare2 6.2 -2022-02-24
CVE-2022-20624 Cisco NX-OS Software Cisco Fabric Services Over IP Denial of Service Vulnerability — Cisco NX-OS Software 8.6 High2022-02-23
CVE-2022-0476 Denial of Service in radareorg/radare2 — radareorg/radare2 6.2 -2022-02-23
CVE-2021-4115 polkit 安全漏洞 — polkitd 5.5 -2022-02-21
CVE-2022-21698 Uncontrolled Resource Consumption in promhttp — client_golang 7.5 High2022-02-15

Vulnerabilities classified as CWE-400 (未加控制的资源消耗(资源穷尽)) represent 1398 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.