目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-789 未经控制的内存分配 类漏洞列表 170

CWE-789 未经控制的内存分配 类弱点 170 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-789 属于内存分配漏洞,指程序基于不可信的大数值分配内存,却未验证其是否在预期范围内。攻击者通常利用此缺陷提交超大尺寸值,导致系统分配过量内存,进而引发拒绝服务或内存耗尽。开发者应避免此类风险,在分配内存前严格校验输入参数,确保其处于合理且安全的阈值范围内,从而防止资源被恶意滥用。

MITRE CWE 官方描述
CWE:CWE-789 使用过大值进行内存分配(Memory Allocation with Excessive Size Value) 英文:该产品基于不受信任的大尺寸值分配内存,但未确保该尺寸在预期限制范围内,从而导致可以分配任意数量的内存。
常见影响 (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.
缓解措施 (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.
代码示例 (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 标题 CVSS 风险等级 Published
CVE-2026-44253 Wazuh 资源管理错误漏洞 — wazuh 4.9 Medium 2026-08-19
CVE-2026-75935 Amazon Ion Java 资源管理错误漏洞 — Amazon Ion Java 7.5 High 2026-08-18
CVE-2026-69219 RabbitMQ rabbitmq-java-client 资源管理错误漏洞 — rabbitmq-java-client 8.7 High 2026-08-18
CVE-2026-72639 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium 2026-08-13
CVE-2026-72645 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium 2026-08-13
CVE-2026-72656 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium 2026-08-13
CVE-2026-72678 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium 2026-08-13
CVE-2026-72687 Elastic Elasticsearch 资源管理错误漏洞 — Elasticsearch 6.5 Medium 2026-08-13
CVE-2026-71218 ESnet iperf 资源管理错误漏洞 — Red Hat Enterprise Linux 10 5.3 Medium 2026-08-11
CVE-2026-66485 GNU cpio 资源管理错误漏洞 — cpio 4.6 Medium 2026-08-10
CVE-2026-44630 Apache IoTDB 资源管理错误漏洞 — Apache IoTDB - - 2026-08-10
CVE-2026-66733 Eukaryot Sonic 3 A.I.R 资源管理错误漏洞 — sonic3air 7.5 High 2026-08-06
CVE-2026-70377 theotherphil imagecli 资源管理错误漏洞 — imagecli 7.5 High 2026-08-05
CVE-2026-61485 Apache Lucy 资源管理错误漏洞 — Apache Lucy - - 2026-08-05
CVE-2026-67589 Apache Qpid ProtonJ2 资源管理错误漏洞 — Apache Qpid ProtonJ2 - - 2026-08-05
CVE-2026-67551 Apache Qpid Proton Dotnet 资源管理错误漏洞 — Apache Qpid Proton Dotnet - - 2026-08-05
CVE-2026-66273 Apache Qpid Proton-J 资源管理错误漏洞 — Apache Qpid Proton-J - - 2026-08-05
CVE-2026-69702 aizuda SnailJob 资源管理错误漏洞 — SnailJob (snail-job) 6.5 Medium 2026-08-04
CVE-2026-58067 Veeam Service Provider Console 资源管理错误漏洞 — Service Provider Console 8.7 High 2026-08-04
CVE-2026-15337 Django 资源管理错误漏洞 — Django 5.3 Medium 2026-08-04
CVE-2026-12852 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 8.7 High 2026-08-03
CVE-2026-14682 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 8.7 High 2026-08-03
CVE-2026-58060 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 8.7 High 2026-08-03
CVE-2026-59646 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 8.7 High 2026-08-03
CVE-2026-59649 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 8.7 High 2026-08-03
CVE-2026-12185 Legion of the Bouncy Castle Inc BC-JAVA 资源管理错误漏洞 — BC-JAVA 7.1 High 2026-08-03
CVE-2026-55768 GoAccess WebSocket Server 远程拒绝服务漏洞 — goaccess 8.7 High 2026-07-30
CVE-2026-65315 Ollama 资源管理错误漏洞 — Ollama 7.5 High 2026-07-21
CVE-2026-59844 libssh 资源管理错误漏洞 — Red Hat Enterprise Linux 10 6.5 Medium 2026-07-21
CVE-2025-71395 SurrealDB 资源管理错误漏洞 — surrealdb 7.1 High 2026-07-18

CWE-789(未经控制的内存分配) 是常见的弱点类别,本平台收录该类弱点关联的 170 条 CVE 漏洞。