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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

1397 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-2024-8451 PLANET Technology switch devices - SSH server DoS attack — GS-4210-24PL4C hardware 2.0 7.5 High2024-09-30
CVE-2024-37125 Dell SmartFabric OS10 资源管理错误漏洞 — SmartFabric OS10 Software 7.5 High2024-09-26
CVE-2024-47003 DoS via non-string message using permalink embed — Mattermost 3.1 Low2024-09-26
CVE-2024-7254 Stack overflow in Protocol Buffers Java Lite — Protocol Buffers 9.1AICriticalAI2024-09-19
CVE-2024-8892 Uncontrolled Resource Consumption vulnerability on CIRCUTOR TCP2RS+ — CIRCUTOR TCP2RS+ 5.3 Medium2024-09-18
CVE-2024-8939 Vllm: denials of service in vllm json web api 6.2 Medium2024-09-17
CVE-2024-38236 DHCP Server Service Denial of Service Vulnerability — Windows Server 2019 7.5 High2024-09-10
CVE-2024-43647 Siemens SIMATIC 安全漏洞 — SIMATIC S7-200 SMART CPU CR40 7.5 High2024-09-10
CVE-2024-8418 Containers/aardvark-dns: tcp query handling flaw in aardvark-dns leading to denial of service 7.5 High2024-09-04
CVE-2024-21658 Insufficient control of region value length in discourse-calendar — discourse-calendar 4.3 Medium2024-08-30
CVE-2024-43806 `rustix::fs::Dir` iterator with the `linux_raw` backend can cause memory explosion — rustix 6.5 Medium2024-08-26
CVE-2024-43105 Excessive Resource Consumption via `/export` — Mattermost 4.3 Medium2024-08-23
CVE-2024-8041 Uncontrolled Resource Consumption in GitLab — GitLab 6.5 Medium2024-08-22
CVE-2024-39810 Server crash via Elasticsearch certificate file — Mattermost 4.9 Medium2024-08-22
CVE-2024-7592 Quadratic complexity parsing cookies with backslashes — CPython 5.3 -2024-08-19
CVE-2024-43380 fugit parse and parse_nat stall on lengthy input — fugit 5.3 Medium2024-08-19
CVE-2024-41727 BIG-IP TMM vulnerability — BIG-IP 7.5 High2024-08-14
CVE-2024-7567 Rockwell Automation Micro850/870 Vulnerable to denial-of-service Vulnerability via CIP/Modbus Port — PLC - Micro850/870 (2080 -L50E/2080 -L70E) 7.5AIHighAI2024-08-13
CVE-2024-38168 .NET and Visual Studio Denial of Service Vulnerability — .NET 8.0 7.5 High2024-08-13
CVE-2024-42481 Complete crash of host system due to calculateDirectorySize in skyportd — skyportd 7.5 High2024-08-12
CVE-2024-0115 NVIDIA CV-CUDA 安全漏洞 — NVIDIA CV-CUDA 6.1 Medium2024-08-09
CVE-2024-5423 Uncontrolled Resource Consumption in GitLab — GitLab 6.5 Medium2024-08-08
CVE-2024-7610 Uncontrolled Resource Consumption in GitLab — GitLab 4.3 Medium2024-08-08
CVE-2024-4210 Uncontrolled Resource Consumption in GitLab — GitLab 6.5 Medium2024-08-08
CVE-2024-3056 Podman: kernel: containers in shared ipc namespace are vulnerable to denial of service attack 7.7 High2024-08-02
CVE-2024-41946 REXML DoS vulnerability — rexml 5.3 Medium2024-08-01
CVE-2024-41123 REXML DoS vulnerability — rexml 5.3 Medium2024-08-01
CVE-2022-4003 Motorola Q14 安全漏洞 — Q14 Mesh Router Firmware 2.7 Low2024-07-31
CVE-2024-37281 Kibana Denial of Service issue — Kibana 6.5 Medium2024-07-30
CVE-2024-37299 Discourse vulnerable to DoS via Tag Group — discourse 4.9 Medium2024-07-30

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