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-22543 SAP NetWeaver Application Server 资源管理错误漏洞 — SAP NetWeaver Application Server for ABAP (Kernel) and ABAP Platform (Kernel) 7.5 -2022-02-09
CVE-2022-23580 Abort caused by allocating a vector that is too large in Tensorflow — tensorflow 6.5 Medium2022-02-04
CVE-2022-23591 Stack overflow in Tensorflow — tensorflow 7.5 High2022-02-04
CVE-2022-22724 Schneider Electric Modicon M340 资源管理错误漏洞 — Modicon M340 CPUs: BMXP34 (All Versions) 7.5 -2022-02-04
CVE-2021-43859 Denial of Service by injecting highly recursive collections or maps in XStream — xstream 7.5 High2022-02-01
CVE-2021-40406 Reolink Rlc-410W 资源管理错误漏洞 — n/a 7.5 -2022-01-28
CVE-2022-23030 F5 BIG-IP 资源管理错误漏洞 — BIG-IP 5.3 -2022-01-25
CVE-2022-23023 F5 BIG-IP 资源管理错误漏洞 — BIG-IP & BIG-IQ 6.5 -2022-01-25
CVE-2022-23024 F5 BIG-IP AFM 资源管理错误漏洞 — BIG-IP AFM 7.5 -2022-01-25
CVE-2022-23015 F5 BIG-IP 资源管理错误漏洞 — BIG-IP 7.5 -2022-01-25
CVE-2022-21708 Denial of Service in graphql-go — graphql-go 6.5 Medium2022-01-21
CVE-2021-23236 Fresenius Kabi Agilia Connect Infusion System uncontrolled resource consumption — Agilia Link+ 7.5 High2022-01-21
CVE-2022-22161 Junos OS: MX104 might become unresponsive if the out-of-band management port receives a flood of traffic — Junos OS 7.5 High2022-01-19
CVE-2022-22155 Junos OS: ACX5448: FPC memory leak due to IPv6 neighbor flaps — Junos OS 6.5 Medium2022-01-19
CVE-2022-21700 Memory leak in micronaut-core — micronaut-core 5.3 Medium2022-01-18
CVE-2022-21689 Denial of Service in Onionshare — onionshare 7.5 High2022-01-18
CVE-2021-37865 Server-side Denial of Service while processing a specifically crafted GIF file — Mattermost 4.3 Medium2022-01-18
CVE-2022-21680 Cubic catastrophic backtracking (ReDoS) in marked — marked 7.5 High2022-01-14
CVE-2022-21681 Exponential catastrophic backtracking (ReDoS) in marked — marked 7.5 High2022-01-14
CVE-2022-21670 Uncontrolled Resource Consumption in markdown-it — markdown-it 5.3 Medium2022-01-10
CVE-2020-9059 Silicon Labs Z-Wave Chipsets 资源管理错误漏洞 — BE468 6.5 -2022-01-07
CVE-2022-21653 Hash collision in typelevel jawn — jawn 5.9 Medium2022-01-05
CVE-2021-24893 Stars Rating < 3.5.1 - Comments Denial of Service — Stars Rating 8.2 -2022-01-03
CVE-2021-3622 hivex 资源管理错误漏洞 — hivex 6.5 -2021-12-23
CVE-2021-43854 Inefficient Regular Expression Complexity in nltk — nltk 7.5 High2021-12-23
CVE-2021-43843 Insufficient patch for Regular Expression Denial of Service (ReDoS) to jsx-slack v4.5.1 — jsx-slack 5.3 Medium2021-12-20
CVE-2021-43838 Regular Expression Denial of Service (ReDoS) in jsx-slack — jsx-slack 5.3 Medium2021-12-17
CVE-2021-22956 Citrix Systems Citrix Application Delivery Controller 资源管理错误漏洞 — Citrix ADC, Citrix Gateway, Citrix SDWAN 7.5 -2021-12-07
CVE-2021-22955 Citrix Systems Application Delivery Management 资源管理错误漏洞 — Citrix ADC, Citrix Gateway 7.5 -2021-12-07
CVE-2021-44527 UniFi Switch 资源管理错误漏洞 — UniFi Switches 6.5 -2021-12-07

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