CWEweakness
CWE-400 Uncontrolled Resource Consumption
High
Official page ↗
- Alternate terms
- Resource Exhaustion
- Abstraction
- Class
- Structure
- Simple
- Status
- Draft
- Likelihood of exploit
- High
- Languages
- Not Language-Specific, Python
- CWE version
- 5.0
Description
The product does not properly control the allocation and maintenance of a limited resource.
Common consequences
• 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 environment, i.e., the product may slow down, crash due to unhandled errors, or lock out legitimate users. For example, a memory exhaustion attack against an application could slow down the application as well as its host operating system.
• 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.
Potential mitigations
• [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, perhaps by caching result sets, can help minimize the resources expended. To further limit the potential for a DoS attack, consider tracking the rate of requests received from users and blocking requests that exceed a defined rate threshold.
• [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 prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.
The second solution is simply difficult to effectively institute -- and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.
• [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.
Detection methods
• Automated Static Analysis: Automated static analysis typically has limited utility in recognizing resource exhaustion problems, except for program-independent system resources such as files, sockets, and processes. For system resources, automated static analysis may be able to detect circumstances in which resources are not released after they have expired. Automated analysis of configuration files may be able to detect settings that do not specify a maximum value.
Automated static analysis tools will not be appropriate for detecting exhaustion of custom resources, such as an intended security policy in which a bulletin board user is only allowed to make a limited number of posts per day.
• Automated Dynamic Analysis: Certain automated dynamic analysis techniques may be effective in spotting resource exhaustion problems, especially with resources such as processes, memory, and connections. The technique may involve generating a large number of requests to the product within a short time frame.
• Fuzzing: While fuzzing is typically geared toward finding low-level implementation bugs, it can inadvertently find resource exhaustion problems. This can occur when the fuzzer generates a large number of test cases but does not restart the targeted product in between test cases. If an individual test case produces a crash, but it does not do so reliably, then an inability to handle resource exhaustion may be the cause.
Observed examples
• CVE-2019-19911: Chain: Python library does not limit the resources used to process images that specify a very large number of bands (CWE-1284), leading to excessive memory consumption (CWE-789) or an integer overflow (CWE-190).
• CVE-2020-7218: Go-based workload orchestrator does not limit resource usage with unauthenticated connections, allowing a DoS by flooding the service
• CVE-2020-3566: Resource exhaustion in distributed OS because of "insufficient" IGMP queue management, as exploited in the wild per CISA KEV.
• CVE-2009-2874: Product allows attackers to cause a crash via a large number of connections.
• CVE-2009-1928: Malformed request triggers uncontrolled recursion, leading to stack exhaustion.
• CVE-2009-2858: Chain: memory leak (CWE-404) leads to resource exhaustion.
• CVE-2009-2726: Driver does not use a maximum width when invoking sscanf style functions, causing stack consumption.
• CVE-2009-2540: Large integer value for a length property in an object causes a large amount of memory allocation.
• CVE-2009-2299: Web application firewall consumes excessive memory when an HTTP request contains a large Content-Length value but no POST data.
• CVE-2009-2054: Product allows exhaustion of file descriptors when processing a large number of TCP packets.
• CVE-2008-5180: Communication product allows memory consumption with a large number of SIP requests, which cause many sessions to be created.
• CVE-2008-2121: TCP implementation allows attackers to consume CPU and prevent new connections using a TCP SYN flood attack.
• CVE-2008-2122: Port scan triggers CPU consumption with processes that attempt to read data from closed sockets.
• CVE-2008-1700: Product allows attackers to cause a denial of service via a large number of directives, each of which opens a separate window.
• CVE-2007-4103: Product allows resource exhaustion via a large number of calls that do not complete a 3-way handshake.
• CVE-2006-1173: Mail server does not properly handle deeply nested multipart MIME messages, leading to stack exhaustion.
• CVE-2007-0897: Chain: anti-virus product encounters a malformed file but returns from a function without closing a file descriptor (CWE-775) leading to file descriptor consumption (CWE-400) and failed scans.
Related
Attack pattern · CAPEC (3)
Observed example · CVE (17)
- CVE-2020-3566 A vulnerability in the Distance Vector Multicast Routing Protocol (DVMRP) feature of Cisco IOS XR Software could allow an unauthenticated,… vulnerability
- CVE-2020-7218 HashiCorp Nomad and Nonad Enterprise up to 0.10.2 HTTP/RPC services allowed unbounded resource usage, and were susceptible to… vulnerability
- CVE-2019-19911 There is a DoS vulnerability in Pillow before 6.2.2 caused by FpxImagePlugin.py calling the range function on an unvalidated 32-bit integer… vulnerability
- CVE-2009-1928 Stack consumption vulnerability in the LDAP service in Active Directory on Microsoft Windows 2000 SP4, Server 2003 SP2, and Server 2008… vulnerability
- CVE-2009-2874 The TimesTenD process in Cisco Unified Presence 1.x, 6.x before 6.0(6), and 7.x before 7.0(4) allows remote attackers to cause a denial of… vulnerability
- CVE-2009-2054 Cisco Unified Communications Manager (aka CUCM, formerly CallManager) 4.x, 5.x before 5.1(3g), 6.x before 6.1(4), 7.0 before 7.0(2a)su1,… vulnerability
- CVE-2009-2858 Memory leak in the Security component in IBM DB2 8.1 before FP18 on Unix platforms allows attackers to cause a denial of service (memory… vulnerability
- CVE-2009-2726 The SIP channel driver in Asterisk Open Source 1.2.x before 1.2.34, 1.4.x before 1.4.26.1, 1.6.0.x before 1.6.0.12, and 1.6.1.x before… vulnerability
- CVE-2009-2540 Opera, possibly 9.64 and earlier, allows remote attackers to cause a denial of service (memory consumption) via a large integer value for… vulnerability
- CVE-2009-2299 The Artofdefence Hyperguard Web Application Firewall (WAF) module before 2.5.5-11635, 3.0 before 3.0.3-11636, and 3.1 before 3.1.1-11637, a… vulnerability
- CVE-2008-5180 Microsoft Communicator, and Communicator in Microsoft Office 2010 beta, allows remote attackers to cause a denial of service (memory… vulnerability
- CVE-2008-2121 The TCP implementation in Sun Solaris 8, 9, and 10 allows remote attackers to cause a denial of service (CPU consumption and new connection… vulnerability
- CVE-2008-2122 IBM Rational Build Forge 7.0.2 allows remote attackers to cause a denial of service (CPU consumption) via a port scan, which spawns… vulnerability
- CVE-2008-1700 The Web TransferCtrl Class 8,2,1,4 (iManFile.cab), as used in WorkSite Web 8.2 before SP1 P2, allows remote attackers to cause a denial of… vulnerability
- CVE-2007-4103 The IAX2 channel driver (chan_iax2) in Asterisk Open 1.2.x before 1.2.23, 1.4.x before 1.4.9, and Asterisk Appliance Developer Kit before… vulnerability
- CVE-2007-0897 Clam AntiVirus ClamAV before 0.90 does not close open file descriptors under certain conditions, which allows remote attackers to cause a… vulnerability
- CVE-2006-1173 Sendmail before 8.13.7 allows remote attackers to cause a denial of service via deeply nested, malformed multipart MIME messages that… vulnerability
Child of · CWE (1)
- CWE-664 Improper Control of a Resource Through its Lifetime weakness
Referenced by CAPEC · weakness (3)
Referenced by CVE · weakness (4,124)
- CVE-2026-118589 A weakness has been identified in nschloe meshio up to 5.3.5. vulnerability
- CVE-2026-118590 A security vulnerability has been detected in nipy nibabel up to 5.4.2. vulnerability
- CVE-2026-90870 A missing release of backend receiver sessions in the Ad Hoc Transfer component of Progress Software WS_FTP Server versions prior to… vulnerability
- CVE-2026-93007 A flaw was found in dnsmasq. vulnerability
- CVE-2026-111073 The broker-side PushTelemetry API (KIP-714) validates only the compressed size of a client's metrics payload against telemetry.max.bytes… vulnerability
- CVE-2026-111108 Apache Kafka's code-generated protocol readers pre-size an array's collection from the element count declared by the sender. vulnerability
- CVE-2026-111551 Several Kafka deserialization paths read a size or count field from input data and use it directly to allocate an array, collection, or… vulnerability
- CVE-2026-114349 When a broker decodes a compressed record batch, the per-record decoder reads a declared body size from the decompressed stream and… vulnerability
- CVE-2026-118260 Echo is a Go web framework. vulnerability
- CVE-2026-118261 Echo is a Go web framework. vulnerability
- CVE-2026-118271 A security vulnerability has been detected in a2ui-project a2ui up to 0.10.6. vulnerability
- CVE-2026-118273 A flaw has been found in a2ui-project a2ui up to 0.10.6. vulnerability
- CVE-2026-118274 A vulnerability has been found in a2ui-project a2ui up to 0.10.6. vulnerability
- CVE-2026-118275 A vulnerability was found in a2ui-project a2ui up to 0.10.6. vulnerability
- CVE-2026-118276 A vulnerability was determined in a2ui-project a2ui up to 0.10.6. vulnerability
- CVE-2026-118664 decode-uri-component provides a more robust alternative to decodeURIComponent. vulnerability
- CVE-2026-88858 A user with the Viewer role in Grafana can crash the server by submitting a crafted server-side math expression (uncontrolled recursion). vulnerability
- CVE-2026-108331 Tanium addressed an infinite loop vulnerability in Threat Response Client Extension. vulnerability
- CVE-2026-116656 Tanium addressed an uncontrolled resource consumption vulnerability in Enforce. vulnerability
- CVE-2026-116774 russh is a Rust SSH client and server library that includes an SSH agent protocol implementation. vulnerability
- CVE-2026-116878 Semantic MediaWiki from 2.5.0 before 7.3.1 contains an uncontrolled resource consumption vulnerability that allows anonymous attackers to… vulnerability
- CVE-2026-117503 A vulnerability was determined in a2aproject a2a-go up to 2.4.0. vulnerability
- CVE-2026-117505 A security flaw has been discovered in a2aproject a2a-java up to 1.2.0.Final. vulnerability
- CVE-2026-117506 A weakness has been identified in a2aproject a2a-java up to 1.2.0.Final. vulnerability
- CVE-2026-77167 Abusing the federated share endpoint, an attacker can write arbitrary rows into the oc_share_external database table. vulnerability
- CVE-2026-115907 zip is a zip library for Rust that supports reading and writing simple ZIP files. vulnerability
- CVE-2026-115909 zip is a zip library for Rust that supports reading and writing simple ZIP files. vulnerability
- CVE-2026-115911 vLLM is an inference and serving engine for large language models. vulnerability
- CVE-2026-115918 vLLM is an inference and serving engine for large language models. vulnerability
- CVE-2026-115927 Tornado is a Python web framework and asynchronous networking library. vulnerability
Referenced by CWE · can precede (1)
- CWE-410 Insufficient Resource Pool weakness
Referenced by CWE · child of (7)
- CWE-1235 Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations weakness
- CWE-1246 Improper Write Handling in Limited-write Non-Volatile Memories weakness
- CWE-405 Asymmetric Resource Consumption (Amplification) weakness
- CWE-770 Allocation of Resources Without Limits or Throttling weakness
- CWE-771 Missing Reference to Active Allocated Resource weakness
- CWE-779 Logging of Excessive Data weakness
- CWE-920 Improper Restriction of Power Consumption weakness
Referenced by CWE · has member (6)
- CWE-1003 Weaknesses for Simplified Mapping of Published Vulnerabilities view
- CWE-1200 Weaknesses in the 2019 CWE Top 25 Most Dangerous Software Errors view
- CWE-1350 Weaknesses in the 2020 CWE Top 25 Most Dangerous Software Weaknesses view
- CWE-1387 Weaknesses in the 2022 CWE Top 25 Most Dangerous Software Weaknesses view
- CWE-1430 Weaknesses in the 2024 CWE Top 25 Most Dangerous Software Weaknesses view
- CWE-884 CWE Cross-section view
Referenced by OWASP · mapped cwe (2)
- LLM10:2025 Unbounded Consumption LLM Top 10 2025
- API4:2023 Unrestricted Resource Consumption API Security Top 10 2023