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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-789 (未经控制的内存分配) — Vulnerability Class 240

240 vulnerabilities classified as CWE-789 (未经控制的内存分配). AI Chinese analysis included.

CWE-789 represents a critical memory management weakness where software allocates resources based on unvalidated, excessively large size values provided by external inputs. This flaw typically arises when developers fail to enforce upper bounds on integer parameters before invoking allocation functions, allowing attackers to supply maliciously crafted values that trigger massive memory consumption. Exploitation often leads to denial-of-service conditions through system exhaustion or resource starvation, potentially destabilizing the entire host environment. To mitigate this risk, developers must implement rigorous input validation strategies that strictly check size parameters against predefined, safe thresholds before any allocation occurs. Additionally, utilizing language-specific bounds checking mechanisms and static analysis tools can help identify potential overflows early in the development lifecycle, ensuring that memory requests remain within acceptable operational limits and preventing arbitrary resource depletion.

MITRE CWE Description
The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.
Common Consequences (1)
Availability DoS: Resource Consumption (Memory)
Not controlling memory allocation can result in a request for too much system memory, possibly leading to a crash of the application due to out-of-memory conditions, or the consumption of a large amount of memory on the system.
Mitigations (2)
Implementation, Architecture and Design Perform adequate input validation against any value that influences the amount of memory that is allocated. Define an appropriate strategy for handling requests that exceed the limit, and consider supporting a configuration option so that the administrator can extend the amount of memory to be used if necessary.
Operation Run your program using system-provided resource limits for memory. This might still cause the program to crash or exit, but the impact to the rest of the system will be minimized.
Examples (2)
Consider the following code, which accepts an untrusted size value and allocates a buffer to contain a string of the given size.
unsigned int size = GetUntrustedInt(); /* ignore integer overflow (CWE-190) for this example */ unsigned int totBytes = size * sizeof(char); char *string = (char *)malloc(totBytes); InitializeString(string);
Bad · C
Consider the following code, which accepts an untrusted size value and uses the size as an initial capacity for a HashMap.
unsigned int size = GetUntrustedInt(); HashMap list = new HashMap(size);
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2023-20202 Cisco IOS XE Software 安全漏洞 — Cisco IOS XE Software 6.1 Medium 2023-09-27
CVE-2023-3223 Undertow: outofmemoryerror due to @multipartconfig handling — Red Hat Fuse 7.12.1 7.5 High 2023-09-27
CVE-2023-43632 Freely Allocate Buffer on The Stack With Data From Socket — EVE OS 9.0 Critical 2023-09-21
CVE-2023-20108 Cisco Unified Communications Manager 安全漏洞 — Cisco Unified Communications Manager IM and Presence Service 7.5 High 2023-06-28
CVE-2023-30837 Vyper storage allocator overflow — vyper 7.5 High 2023-05-08
CVE-2023-20089 Cisco Nexus 9000 Series Fabric Switches in ACI Mode Link Layer Discovery Protocol Memory Leak Denial of Service Vulnerability — Cisco NX-OS System Software in ACI Mode 7.4 High 2023-02-23
CVE-2022-4741 docconv XMLToText memory allocation — docconv 4.3 Medium 2022-12-25
CVE-2022-22226 Junos OS: EX4300-MP, EX4600, QFX5000 Series: In VxLAN scenarios specific packets processed cause a memory leak leading to a PFE crash — Junos OS 6.5 Medium 2022-10-18
CVE-2022-34917 Unauthenticated clients may cause OutOfMemoryError on Apache Kafka Brokers — Apache Kafka 7.5 - 2022-09-20
CVE-2022-36078 Slice Memory Allocation with Excessive Size Value in binary — binary 8.8 High 2022-09-02
CVE-2022-31804 CODESYS Gateway server prone to denial of service attack due to excessive memory allocation — CODESYS Gateway Server V2 7.5 High 2022-06-24
CVE-2022-30522 mod_sed denial of service — Apache HTTP Server 7.5 - 2022-06-08
CVE-2022-20717 Cisco SD-WAN vEdge Routers Denial of Service Vulnerability — Cisco SD-WAN vEdge router 5.5 - 2022-04-15
CVE-2022-22188 Junos OS: QFX5100/QFX5110/QFX5120/QFX5200/QFX5210/EX4600/EX4650 Series: When storm control profiling is enabled and a device is under an active storm, a Heap-based Buffer Overflow in the PFE will cause a device to hang. — Junos OS 7.5 High 2022-04-14
CVE-2017-20016 WEKA INTEREST Security Scanner Portscan memory allocation — INTEREST Security Scanner 4.3 Medium 2022-03-28
CVE-2021-34869 Corel Parallels Desktop 访问控制错误漏洞 — Desktop 8.8 - 2022-01-25
CVE-2021-34868 Corel Parallels Desktop 访问控制错误漏洞 — Desktop 8.8 - 2022-01-25
CVE-2021-34867 Corel Parallels Desktop 访问控制错误漏洞 — Desktop 8.2 - 2022-01-25
CVE-2021-34854 Corel Parallels Desktop 安全漏洞 — Desktop 8.8 - 2021-10-25
CVE-2021-1568 Cisco AnyConnect Secure Mobility Client for Windows Denial of Service Vulnerability — Cisco AnyConnect Secure Mobility Client 5.5 Medium 2021-06-16
CVE-2021-31811 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading a tiny file — Apache PDFBox 5.5 - 2021-06-12
CVE-2021-27906 A carefully crafted PDF file can trigger an OutOfMemory-Exception while loading the file — Apache PDFBox 5.5 - 2021-03-19
CVE-2021-1283 Cisco Data Center Network Manager Information Disclosure Vulnerability — Cisco Data Center Network Manager 5.5 Medium 2021-01-20
CVE-2020-3596 Cisco Expressway Series and TelePresence Video Communication Server Denial of Service Vulnerability — Cisco TelePresence Video Communication Server (VCS) Expressway 5.9 Medium 2020-10-08
CVE-2020-5303 Denial of service in Tendermint — Tendermint 3.1 Low 2020-04-10
CVE-2020-8552 Kubernetes API server denial of service — Kubernetes 5.3 Medium 2020-03-27
CVE-2020-8551 Kubernetes kubelet denial of service — Kubernetes 4.3 Medium 2020-03-27
CVE-2018-12541 Eclipse Vert.x 安全漏洞 — Eclipse Vert.x 6.5 - 2018-10-10
CVE-2017-7652 Eclipse Mosquitto 安全漏洞 — Eclipse Mosquitto 6.8 - 2018-04-25
CVE-2017-7651 Eclipse Mosquitto 安全漏洞 — Eclipse Mosquitto 7.5 - 2018-04-24

Vulnerabilities classified as CWE-789 (未经控制的内存分配) represent 240 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.