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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

2081 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)
Availability DoS: 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, Other Bypass 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 Design Design 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 Design Mitigation 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 Design Ensure that protocols have specific limits of scale placed on them.
Implementation Ensure 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 ID Title CVSS Severity Published
CVE-2021-1460 Cisco IOx Application Framework Denial of Service Vulnerability — Cisco IOS 5.3 Medium 2021-03-24
CVE-2019-19343 Red Hat Undertow 资源管理错误漏洞 — Undertow 7.5 - 2021-03-23
CVE-2021-21348 XStream is vulnerable to an attack using Regular Expression for a Denial of Service (ReDos) — xstream 5.3 Medium 2021-03-22
CVE-2021-21341 XStream can cause a Denial of Service — xstream 7.5 High 2021-03-22
CVE-2021-21267 Regular Expression Denial-of-Service in npm schema-inspector — schema-inspector 7.5 High 2021-03-19
CVE-2020-27827 lldpd 资源管理错误漏洞 — lldp/openvswitch 7.5 - 2021-03-18
CVE-2021-21375 Crash in receiving updated SDP answer after initial SDP negotiation failed — pjproject 6.5 Medium 2021-03-10
CVE-2021-20265 Linux kernel 资源管理错误漏洞 — kernel 5.5 - 2021-03-10
CVE-2021-21369 Potential DoS in Besu HTTP JSON-RPC API — besu 6.5 Medium 2021-03-09
CVE-2021-22883 nodejs 资源管理错误漏洞 — Node 7.5 - 2021-03-03
CVE-2021-21274 Denial of service attack via .well-known lookups — synapse 4.3 Medium 2021-02-26
CVE-2020-24686 AC500 V2 webserver denial of service vulnerability — AC500 V2 products with onboard Ethernet 7.5 High 2021-02-26
CVE-2021-21328 Denial of Service — vapor 5.3 Medium 2021-02-26
CVE-2020-27782 Red Hat Undertow 资源管理错误漏洞 — Undertow 7.5 - 2021-02-23
CVE-2021-22882 UniFi Protect 资源管理错误漏洞 — UniFi Protect 6.5 - 2021-02-23
CVE-2021-1378 Cisco StarOS Denial of Service Vulnerability — Cisco ASR 5000 Series Software 5.3 Medium 2021-02-17
CVE-2021-22553 Heap Memory exhaustion in Gerrit — Gerrit 6.5 Medium 2021-02-17
CVE-2021-21317 Denial of Service in uap-core — uap-core 5.3 Medium 2021-02-16
CVE-2021-22880 Postgresql PostgreSQL 资源管理错误漏洞 — https://github.com/rails/rails 7.5 - 2021-02-11
CVE-2020-35498 Openvswitch 资源管理错误漏洞 — openvswitch 7.5 - 2021-02-11
CVE-2021-21296 Denial-of-service in Fleet — fleet 2.7 Low 2021-02-10
CVE-2021-21306 Denial of Service in Marked — marked 5.3 Medium 2021-02-08
CVE-2021-21240 Regular Expression Denial of Service in httplib2 — httplib2 7.5 High 2021-02-08
CVE-2021-1266 Cisco Managed Services Accelerator Denial of Service Vulnerability — Cisco Managed Services Accelerator 4.3 Medium 2021-02-04
CVE-2021-21294 Unbounded connection acceptance in http4s-blaze-server — http4s 7.5 High 2021-02-02
CVE-2021-21293 Unbounded connection acceptance leads to file handle exhaustion — blaze 7.5 High 2021-02-02
CVE-2021-21285 Docker daemon crash during image pull of malicious image — moby 6.5 Medium 2021-02-02
CVE-2021-21254 Regular expression Denial of Service in Markdown plugin — ckeditor5 6.5 Medium 2021-01-29
CVE-2021-25909 ZIV AUTOMATION 4CCT Denial of Service vulnerability — 4CCT-EA6-334126BF 8.6 High 2021-01-29
CVE-2021-20185 Moodle 资源管理错误漏洞 — moodle 5.3 - 2021-01-28

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