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-2021-32832 ReDOS in Rocket.Chat — Rocket.Chat 4.3 Medium2021-08-30
CVE-2021-39171 Unlimited transforms allowed for signed nodes — passport-saml 5.3 Medium2021-08-27
CVE-2021-33580 regex injection leading to DoS — Apache Roller 7.5 -2021-08-18
CVE-2021-25659 Siemens Automation License Manager 资源管理错误漏洞 — Automation License Manager 5 7.5 -2021-08-10
CVE-2021-3679 Linux kernel 资源管理错误漏洞 — kernel 4.7 -2021-08-05
CVE-2021-21565 Dell Technologies Dell PowerScale OneFS 资源管理错误漏洞 — PowerScale OneFS 5.3 Medium2021-08-02
CVE-2021-25701 PCoIP Software Client 资源管理错误漏洞 — - PCoIP Software Client 5.5 -2021-07-21
CVE-2021-32763 Regular Expression Denial of Service in OpenProject forum messages — openproject 4.3 Medium2021-07-20
CVE-2021-0292 Junos OS Evolved: Memory leak in arpd or ndp processes can lead to Denial of Service (DoS) — Junos OS Evolved 6.5 Medium2021-07-15
CVE-2021-32740 Regular Expression Denial of Service in Addressable templates — addressable 7.5 High2021-07-06
CVE-2021-22119 VMware Spring Security 安全漏洞 — Spring Security 7.5 -2021-06-29
CVE-2021-32722 Uncontrolled Resource Consumption in GlobalNewFiles — GlobalNewFiles 6.5 Medium2021-06-28
CVE-2021-32723 Regular Expression Denial of Service (ReDoS) in Prism — prism 7.4 High2021-06-28
CVE-2021-32823 Potential Denial-of-Service in bindata — bindata 3.7 Low2021-06-23
CVE-2021-32699 Asymmetric Resource Consumption (Amplification) in Docker containers created by Wings — wings 6.5 Medium2021-06-22
CVE-2020-8299 Citrix Systems NetScaler Gateway 资源管理错误漏洞 — Citrix ADC, Citrix Gateway, Citrix SD-WAN WANOP Edition 7.5 -2021-06-16
CVE-2021-30468 Apache CXF Denial of service vulnerability in parsing JSON via JsonMapObjectReaderWriter — Apache CXF 7.5 -2021-06-16
CVE-2021-22906 Nextcloud 资源管理错误漏洞 — Nextcloud End-to-End Encryption 6.5 -2021-06-11
CVE-2021-22902 Ruby 资源管理错误漏洞 — https://github.com/rails/rails 7.5 -2021-06-11
CVE-2021-22904 Ruby 安全漏洞 — https://github.com/rails/rails 7.5 -2021-06-11
CVE-2021-23852 Denial of Service (DoS) due to invalid web parameter — CPP Firmware 4.9 Medium2021-06-09
CVE-2021-31340 Siemens SIMATIC 多款产品资源管理错误漏洞 — SIMATIC RF166C 8.8 -2021-06-08
CVE-2021-26945 Industrial Light and Magic OpenEXR 输入验证错误漏洞 — OpenEXR 5.5 -2021-06-08
CVE-2021-22116 RabbitMQ输入验证错误漏洞 — RabbitMQ 7.5 -2021-06-08
CVE-2021-23215 Industrial Light and Magic OpenEXR 资源管理错误漏洞 — OpenEXR 5.5 -2021-06-08
CVE-2021-26260 Industrial Light and Magic OpenEXR 资源管理错误漏洞 — OpenEXR 5.5 -2021-06-08
CVE-2020-1750 Red Hat OpenShift Container Platform 资源管理错误漏洞 — machine-config-operator-container 6.5 -2021-06-07
CVE-2021-1564 Cisco Video Surveillance 7000 Series IP Cameras Cisco Discovery and Link Layer Discovery Protocol Memory Leak Vulnerabilities — Cisco Video Surveillance 7000 Series IP Cameras 6.5 Medium2021-06-04
CVE-2021-1563 Cisco Video Surveillance 7000 Series IP Cameras Cisco Discovery and Link Layer Discovery Protocol Memory Leak Vulnerabilities — Cisco Video Surveillance 7000 Series IP Cameras 6.5 Medium2021-06-04
CVE-2020-35510 David M. Lloyd jboss-remoting 资源管理错误漏洞 — jboss-remoting 5.9 -2021-06-02

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