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

目标: 1000 元 · 已筹: 1359 元

100%

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

CWE-789 未经控制的内存分配 类弱点 241 条 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-2025-8696 ISC Stork 安全漏洞 — Stork 7.5 High 2025-09-10
CVE-2025-23331 NVIDIA Triton Inference Server 安全漏洞 — Triton Inference Server 7.5 High 2025-08-06
CVE-2025-54801 Fiber 安全漏洞 — fiber 7.5AI High AI 2025-08-05
CVE-2025-2533 IBM Db2 for Linux 安全漏洞 — Db2 5.3 Medium 2025-07-29
CVE-2025-4605 Autodesk Maya 安全漏洞 — USD for Maya 6.6 Medium 2025-06-11
CVE-2025-2518 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 5.3 Medium 2025-05-29
CVE-2025-3632 IBM 4769 Developers Toolkit 安全漏洞 — 4769 Developers Toolkit 7.5 High 2025-05-12
CVE-2025-20140 Cisco IOS XE 安全漏洞 — Cisco IOS XE Software 7.4 High 2025-05-07
CVE-2025-27533 Apache ActiveMQ 安全漏洞 — Apache ActiveMQ 7.5AI High AI 2025-05-07
CVE-2025-32386 Helm 安全漏洞 — helm 6.5 Medium 2025-04-09
CVE-2025-30211 Erlang/OTP 安全漏洞 — otp 7.5 High 2025-03-28
CVE-2025-26618 Erlang/OTP 安全漏洞 — otp 5.9 - 2025-02-20
CVE-2025-20165 Cisco BroadWorks 代码问题漏洞 — Cisco BroadWorks 7.5 High 2025-01-22
CVE-2024-52791 matrix-media-repo 安全漏洞 — matrix-media-repo 5.3 Medium 2025-01-16
CVE-2024-41762 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 5.3 Medium 2024-12-07
CVE-2024-37071 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 5.3 Medium 2024-12-07
CVE-2024-41761 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 5.3 Medium 2024-11-23
CVE-2022-20845 Cisco Network Convergence System 4000 Series 安全漏洞 — Cisco IOS XR Software 6.0 Medium 2024-11-15
CVE-2024-20260 Cisco Firepower Threat Defense和Cisco Adaptive Security Virtual Appliance 安全漏洞 — Cisco Secure Firewall Adaptive Security Appliance (ASA) Software 8.6 High 2024-10-23
CVE-2024-40680 IBM MQ Operator 安全漏洞 — MQ 5.5 Medium 2024-09-07
CVE-2024-37529 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 6.5 Medium 2024-08-14
CVE-2024-35152 IBM Db2 安全漏洞 — Db2 for Linux, UNIX and Windows 6.5 Medium 2024-08-14
CVE-2024-41132 ImageSharp 安全漏洞 — ImageSharp 5.3 Medium 2024-07-22
CVE-2024-35116 IBM MQ 安全漏洞 — MQ 5.9 Medium 2024-06-28
CVE-2024-37168 gRPC 安全漏洞 — grpc-node 5.3 Medium 2024-06-10
CVE-2024-32035 ImageSharp 安全漏洞 — ImageSharp 5.3 Medium 2024-04-15
CVE-2024-2494 Red Hat libvirt 安全漏洞 6.2 Medium 2024-03-21
CVE-2023-3171 Red Hat EAP 7 安全漏洞 — EAP 7.4.13 7.5 High 2023-12-27
CVE-2023-39203 Zoom Client 资源管理错误漏洞 — Zoom Rooms Client for Windows and Zoom VDI Client 4.3 Medium 2023-11-14
CVE-2023-5371 Wireshark 安全漏洞 — Wireshark 5.3 Medium 2023-10-04

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