CWE-770 / WEAKNESS
Allocation of Resources Without Limits or Throttling
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
- Category
- CWE weaknesses
- Version / scope
- CWE 4.20; release 2026-04-30; publisher status Incomplete
- Affected / relevant technologies
- Not Technology-Specific / Not Language-Specific
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
No separate exploit prerequisites are asserted here; the publisher's weakness/pattern context must be matched to the implementation.
Potential impact
Availability DoS: Resource Consumption (CPU) DoS: Resource Consumption (Memory) DoS: Resource Consumption (Other) When allocating resources without limits, an attacker could prevent other systems, applications, or processes from accessing the same type of resource. It can be easy for an attacker to consume many resources by rapidly making many requests or causing larger resources to be used than is needed.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CWE 4.20; release 2026-04-30; publisher status Incomplete. Source checked: 2026-11-18.
Source object: CWE-770. Object modified: 2025-12-11.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- Manual Static Analysis Manual static analysis can be useful for finding this weakness, but it might not achieve desired code coverage within limited time constraints. If denial-of-service is not considered a significant risk, or if there is strong emphasis on consequences such as code execution, then manual analysis may not focus on this weakness at all.
- Fuzzing While fuzzing is typically geared toward finding low-level implementation bugs, it can inadvertently find uncontrolled resource allocation 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 limit resource allocation may be the cause. When the allocation is directly affected by numeric inputs, then fuzzing may produce indications of this weakness. Opportunistic
- Automated Dynamic Analysis Certain automated dynamic analysis techniques may be effective in producing side effects of uncontrolled resource allocation 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. Manual analysis is likely required to interpret the results.
- Automated Static Analysis Specialized configuration or tuning may be required to train automated tools to recognize this weakness. Automated static analysis typically has limited utility in recognizing unlimited allocation problems, except for the missing release of program-independent system resources such as files, sockets, and processes, or unchecked arguments to memory. For system resources, automated static analysis may be able to detect circumstances in which resources are not released after they have expired, or if too much of a resource is requested at once, as can occur with memory. 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.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Requirements Clearly specify the minimum and maximum expectations for capabilities, and dictate which behaviors are acceptable when resource allocation reaches limits.
- Architecture and Design Limit the amount of resources that are accessible to unprivileged users. Set per-user limits for resources. Allow the system administrator to define these limits. Be careful to avoid CWE-410.
- 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, and it will help the administrator to identify who is committing the abuse. 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.
- Implementation Input Validation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright. This will only be applicable to cases where user input can influence the size or frequency of resource allocations.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-125 → Related_Weakness → CWE-770 Open related reference
- CAPEC-130 → Related_Weakness → CWE-770 Open related reference
- CAPEC-147 → Related_Weakness → CWE-770 Open related reference
- CAPEC-197 → Related_Weakness → CWE-770 Open related reference
- CAPEC-229 → Related_Weakness → CWE-770 Open related reference
- CAPEC-230 → Related_Weakness → CWE-770 Open related reference
- CAPEC-231 → Related_Weakness → CWE-770 Open related reference
- CAPEC-469 → Related_Weakness → CWE-770 Open related reference
- CAPEC-482 → Related_Weakness → CWE-770 Open related reference
- CAPEC-486 → Related_Weakness → CWE-770 Open related reference
- CAPEC-487 → Related_Weakness → CWE-770 Open related reference
- CAPEC-488 → Related_Weakness → CWE-770 Open related reference
- CAPEC-489 → Related_Weakness → CWE-770 Open related reference
- CAPEC-490 → Related_Weakness → CWE-770 Open related reference
- CAPEC-491 → Related_Weakness → CWE-770 Open related reference
- CAPEC-493 → Related_Weakness → CWE-770 Open related reference
- CAPEC-494 → Related_Weakness → CWE-770 Open related reference
- CAPEC-495 → Related_Weakness → CWE-770 Open related reference
- CAPEC-496 → Related_Weakness → CWE-770 Open related reference
- CAPEC-528 → Related_Weakness → CWE-770 Open related reference
- CWE-1325 → ChildOf → CWE-770 Open related reference
- CWE-20 → CanPrecede → CWE-770 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-125 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-130 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-147 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-197 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-229 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-230 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-231 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-469 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-482 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-486 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-487 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-488 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-489 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-490 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-491 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-493 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-494 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-495 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-496 Open related reference
- CWE-770 → Related_Attack_Pattern → CAPEC-528 Open related reference
- CWE-770 → ChildOf → CWE-400 Open related reference
- CWE-770 → ChildOf → CWE-400 Open related reference
- CWE-770 → ChildOf → CWE-665 Open related reference
- CWE-774 → ChildOf → CWE-770 Open related reference
- CWE-789 → ChildOf → CWE-770 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CWE-770 — source accessed 2026-11-18
- cwe — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
