目标达成 感谢每一位支持者 — 我们达成了 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-2022-31804 CODESYS Gateway Server安全漏洞 — CODESYS Gateway Server V2 7.5 High 2022-06-24
CVE-2022-30522 Apache HTTP Server 资源管理错误漏洞 — Apache HTTP Server 7.5 - 2022-06-08
CVE-2022-20717 Cisco Sd-Wan Vedge安全漏洞 — Cisco SD-WAN vEdge router 5.5 - 2022-04-15
CVE-2022-22188 Juniper Networks Junos OS 安全漏洞 — Junos OS 7.5 High 2022-04-14
CVE-2017-20016 WEKA INTEREST Security Scanner 安全漏洞 — 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 安全漏洞 — Cisco AnyConnect Secure Mobility Client 5.5 Medium 2021-06-16
CVE-2021-31811 Apache PDFBox 安全漏洞 — Apache PDFBox 5.5 - 2021-06-12
CVE-2021-27906 Apache PDFBox 安全漏洞 — Apache PDFBox 5.5 - 2021-03-19
CVE-2021-1283 Cisco Data Center Network Manager 信息泄露漏洞 — Cisco Data Center Network Manager 5.5 Medium 2021-01-20
CVE-2020-3596 编号重复 — Cisco TelePresence Video Communication Server (VCS) Expressway 5.9 Medium 2020-10-08
CVE-2020-5303 Tendermint 缓冲区错误漏洞 — Tendermint 3.1 Low 2020-04-10
CVE-2020-8552 Google Kubernetes API server 资源管理错误漏洞 — Kubernetes 5.3 Medium 2020-03-27
CVE-2020-8551 Google Kubernetes 资源管理错误漏洞 — 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

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