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

目标: 1000 元 · 已筹: 1336

100%

CWE-237 结构体元素处理不恰当 类漏洞列表 3

CWE-237 结构体元素处理不恰当 类弱点 3 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-237属于输入验证缺陷,指软件未能正确处理与复杂数据结构相关的输入。攻击者通常通过构造畸形或嵌套过深的结构(如XML炸弹、深层JSON或递归对象),导致系统资源耗尽、解析崩溃或逻辑错误,从而引发拒绝服务或远程代码执行。开发者应实施严格的输入长度限制、深度限制及类型检查,采用白名单验证机制,并使用安全的解析库来防御此类针对结构复杂性的攻击。

MITRE CWE 官方描述
CWE:CWE-237 结构元素处理不当 英文:产品未处理或错误处理与复杂结构相关的输入。
常见影响 (1)
IntegrityUnexpected State
代码示例 (1)
In the following C/C++ example the method processMessageFromSocket() will get a message from a socket, placed into a buffer, and will parse the contents of the buffer into a structure that contains the message length and the message body. A for loop is used to copy the message body into a local character string which will be passed to another method for processing.
int processMessageFromSocket(int socket) { int success; char buffer[BUFFER_SIZE]; char message[MESSAGE_SIZE]; // get message from socket and store into buffer //Ignoring possibliity that buffer > BUFFER_SIZE if (getMessage(socket, buffer, BUFFER_SIZE) > 0) { // place contents of the buffer into message structure ExMessage *msg = recastBuffer(buffer); // copy message body into string for processing int index; for (index = 0; index < msg->msgLength; index++) { message[index] = msg->msgBody[index]; } message[index] = '\0'; // process message success = processMessage(message); } return success; }
Bad · C
CVE ID标题CVSS风险等级Published
CVE-2025-24336 SXF Common Library 安全漏洞 — SXF Common Library 6.5 -2025-01-31
CVE-2023-6110 OpenStack 安全漏洞 — Red Hat OpenStack Platform 17.1 for RHEL 8 5.5 Medium2024-11-17
CVE-2023-34429 Weintek Weincloud 安全漏洞 — Weincloud 7.5 High2023-07-19

CWE-237(结构体元素处理不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 3 条 CVE 漏洞。