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

Goal: 1000 CNY · Raised: 1325 CNY

100%

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

936 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-2022-31184 Email activation route can be abused by spammers in Discourse — discourse 6.5 Medium2022-08-01
CVE-2022-22212 Junos OS Evolved: A high rate of specific hostbound traffic will cause unexpected hostbound traffic delays or drops — Junos OS Evolved 7.5 High2022-07-20
CVE-2022-32958 TEAMPLUS TECHNOLOGY INC. Teamplus Pro - Allocation of Resources Without Limits or Throttling — Teamplus Pro (Private cloud) 7.7 High2022-07-20
CVE-2022-32205 curl 资源管理错误漏洞 — https://github.com/curl/curl 5.3 -2022-07-07
CVE-2022-32206 curl 资源管理错误漏洞 — https://github.com/curl/curl 7.5 -2022-07-07
CVE-2022-2134 Allocation of Resources Without Limits or Throttling in inventree/inventree — inventree/inventree 7.5 -2022-06-20
CVE-2022-29404 Denial of service in mod_lua r:parsebody — Apache HTTP Server 7.5 -2022-06-08
CVE-2022-22971 Spring Framework 输入验证错误漏洞 — Spring Framework 6.5 -2022-05-12
CVE-2022-22970 Spring Framework 输入验证错误漏洞 — Spring Framework 6.5 -2022-05-12
CVE-2022-20757 Cisco Firepower Threat Defense Software Denial of Service Vulnerability — Cisco Firepower Threat Defense Software 8.6 High2022-05-03
CVE-2022-20751 Cisco Firepower Threat Defense Software Snort Out of Memory Denial of Service Vulnerability — Cisco Firepower Threat Defense Software 8.6 High2022-05-03
CVE-2022-22278 Sonicwall SonicOS 安全漏洞 — SonicOS 7.5 -2022-04-27
CVE-2022-20622 Cisco Embedded Wireless Controller with Catalyst Access Points IP Flood Denial of Service Vulnerability — Cisco Aironet Access Point Software 8.6 High2022-04-15
CVE-2022-1333 A specifically drafted Playbook could trigger large amount of webhook requests leading to Denial of Service — Mattermost Playbooks 3.5 Low2022-04-13
CVE-2022-22950 Vmware Spring Framework 安全漏洞 — Spring Framework 6.5 -2022-04-01
CVE-2022-21822 NVIDIA FLARE 安全漏洞 — NVIDIA FLARE 7.5 High2022-03-17
CVE-2021-32476 Moodle 资源管理错误漏洞 — moodle 7.5 -2022-03-11
CVE-2022-26336 A carefully crafted TNEF file can cause an out of memory exception — poi-scratchpad 5.5 -2022-03-04
CVE-2021-32036 Denial of Service and Data Integrity vulnerability in features command — MongoDB Server 5.4 Medium2022-02-04
CVE-2022-23913 Apache ActiveMQ Artemis DoS — Apache ActiveMQ Artemis 7.5 -2022-02-04
CVE-2021-43045 Possible DOS vulnerabilities in C# Avro SDK — Apache Avro 7.5 -2022-01-06
CVE-2021-34741 Cisco Email Security Appliance Denial of Service Vulnerability — Cisco Email Security Appliance (ESA) 7.5 High2021-11-04
CVE-2021-1121 NVIDIA vGPU software 安全漏洞 — NVIDIA Virtual GPU Software 5.5 Medium2021-10-29
CVE-2021-40114 Multiple Cisco Products Snort Memory Leak Denial of Service Vulnerability — Cisco Firepower Threat Defense Software 6.8 Medium2021-10-27
CVE-2021-31369 Junos OS: MX Series: Traffic drops will be observed if MS-MPC/MS-PIC resources are consumed by certain traffic causing a partial DoS — Junos OS 5.3 Medium2021-10-19
CVE-2021-34710 Cisco ATA 190 Series Analog Telephone Adapter Software Vulnerabilities — Cisco Analog Telephone Adaptor (ATA) Software 8.8 High2021-10-06
CVE-2021-34735 Cisco ATA 190 Series Analog Telephone Adapter Software Vulnerabilities — Cisco Analog Telephone Adaptor (ATA) Software 8.8 High2021-10-06
CVE-2021-32675 DoS vulnerability in Redis — redis 7.5 High2021-10-04
CVE-2021-33011 JTEKT TOYOPUC-Plus 安全漏洞 — JTEKT Corporation TOYOPUC products 4.3 -2021-09-10
CVE-2021-22919 Citrix ADC and NetScaler Gateway安全漏洞 — Citrix ADC, Citrix Gateway, Citrix SD-WAN WANOP 7.5 -2021-08-05

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