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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-770 (不加限制或调节的资源分配) — Vulnerability Class 827

827 vulnerabilities classified as CWE-770 (不加限制或调节的资源分配). AI Chinese analysis included.

CWE-770 represents a critical resource management weakness where software allocates reusable resources, such as memory, file descriptors, or database connections, without enforcing limits or throttling mechanisms. This vulnerability typically arises when applications accept untrusted input or handle high-volume requests, allowing malicious actors to trigger excessive resource consumption. By rapidly requesting numerous resources, attackers can exhaust system capacity, leading to denial-of-service conditions that degrade performance or crash the entire service. To mitigate this risk, developers must implement strict quotas, rate limiting, and connection pooling strategies. Enforcing maximum thresholds for resource allocation ensures that no single user or process can monopolize system assets, thereby maintaining stability and availability even under heavy load or targeted abuse attempts.

MITRE CWE Description
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.
Common Consequences (1)
AvailabilityDoS: 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.
Mitigations (5)
RequirementsClearly specify the minimum and maximum expectations for capabilities, and dictate which behaviors are acceptable when resource allocation reaches limits.
Architecture and DesignLimit 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 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, and it will help the administrator to identify who is committing the abuse. The login application should be protected …
ImplementationAssume 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…
Architecture and DesignFor any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Examples (2)
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
In the following example a server socket connection is used to accept a request to store data on the local file system using a specified filename. The method openSocketConnection establishes a server socket to accept requests from a client. When a client establishes a connection to this service the getNextMessage method is first used to retrieve from the socket the name of the file to store the da…
int writeDataFromSocketToFile(char *host, int port) { char filename[FILENAME_SIZE]; char buffer[BUFFER_SIZE]; int socket = openSocketConnection(host, port); if (socket < 0) { printf("Unable to open socket connection"); return(FAIL); } if (getNextMessage(socket, filename, FILENAME_SIZE) > 0) { if (openFileToWrite(filename) > 0) { while (getNextMessage(socket, buffer, BUFFER_SIZE) > 0){ if (!(writeToFile(buffer) > 0)) break; } } closeFile(); } closeSocket(socket); }
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2024-50311 Graphql: denial of service (dos) vulnerability via graphql batching — Red Hat OpenShift Container Platform 4.18 6.5 Medium2024-10-22
CVE-2024-45797 LibHTP's unbounded header handling leads to denial service — libhtp 7.5 High2024-10-16
CVE-2024-41128 Action Dispatch has possible ReDoS vulnerability in query parameter filtering — rails 7.5 -2024-10-16
CVE-2024-47874 Starlette Denial of service (DoS) via multipart/form-data — starlette 7.5 -2024-10-15
CVE-2024-47509 Junos OS Evolved: Specific low privileged CLI commands and SNMP GET requests can trigger a resource leak #3 — Junos OS Evolved 6.5 Medium2024-10-11
CVE-2024-47508 Junos OS Evolved: Specific low privileged CLI commands and SNMP GET requests can trigger a resource leak #2 — Junos OS Evolved 6.5 Medium2024-10-11
CVE-2024-47505 Junos OS Evolved: Specific low privileged CLI commands and SNMP GET requests can trigger a resource leak #1 — Junos OS Evolved 6.5 Medium2024-10-11
CVE-2024-47502 Junos OS Evolved: TCP session state is not always cleared on the Routing Engine leading to DoS — Junos OS Evolved 7.5 High2024-10-11
CVE-2024-43567 Windows Hyper-V Denial of Service Vulnerability — Windows Server 2019 7.5 High2024-10-08
CVE-2024-47614 async-graphql vulnerable to Directive Overload — async-graphql 7.5 High2024-10-03
CVE-2021-22532 Possible NLDAP Denial of Service attack Vulnerability — eDirectory 7.6 High2024-09-12
CVE-2024-45412 Yeti affected by a Potential Denial of Service due to the One Milion Unicode characters attack — yeti 5.3 Medium2024-09-10
CVE-2024-23185 Open-Xchange Dovecot 安全漏洞 — OX Dovecot Pro 7.5 High2024-09-10
CVE-2024-23184 Open-Xchange Dovecot 安全漏洞 — OX Dovecot Pro 5.0 Medium2024-09-10
CVE-2024-7734 Phoenix Contact: Multiple mGuard devices are vulnerable to a drain of open file descriptors. — FL MGUARD 2102 5.3 Medium2024-09-10
CVE-2024-8391 Eclipse Vert.x gRPC server does not limit the maximum message size — Eclipse Vert.x--AI2024-09-04
CVE-2024-43783 Apollo Router Coprocessors may cause Denial-of-Service when handling request bodies — router 7.5 High2024-08-27
CVE-2024-41175 Beckhoff: Local Denial-of-Service vulnerability in TwinCAT/BSD and the IPC-Diagnostics package — IPC Diagnostics package 5.5 Medium2024-08-27
CVE-2024-43410 Russh has an OOM Denial of Service due to allocation of untrusted amount — russh 7.5 High2024-08-21
CVE-2024-6098 PTC Kepware ThingWorx Kepware Server Allocation of Resources Without Limits or Throttling — Kepware ThingWorx Kepware Server 5.3 Medium2024-08-16
CVE-2024-6004 Lenovo printers 安全漏洞 — Printers 6.5 Medium2024-08-16
CVE-2024-5210 Lenovo printers 安全漏洞 — Printers 6.5 Medium2024-08-16
CVE-2024-5209 Lenovo printers 安全漏洞 — Printers 6.5 Medium2024-08-16
CVE-2024-4782 Lenovo printers 安全漏洞 — Printers 6.5 Medium2024-08-16
CVE-2024-4781 Lenovo printers 安全漏洞 — Printers 6.5 Medium2024-08-16
CVE-2024-7113 Allocation of Resources Without Limits or Throttling in AVEVA SuiteLink Server — SuiteLink Server 4.3AIMediumAI2024-08-13
CVE-2024-36462 Allocation of resources without limits or throttling (uncontrolled resource consumption) — Zabbix 7.5 High2024-08-09
CVE-2024-39944 Dahua NVR 安全漏洞 — IPC-HX8XXX and NVR4XXX 7.5 High2024-07-31
CVE-2024-6504 Rapid7 InsightVM Protection Mechanism Failure — InsightVM 4.3 Medium2024-07-18
CVE-2024-38535 Suricata http2: oom from duplicate headers — suricata 7.5 High2024-07-11

Vulnerabilities classified as CWE-770 (不加限制或调节的资源分配) represent 827 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.