CWE-390 未有动作错误条件的检测 类弱点 14 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-390 属于错误处理不当漏洞,指程序检测到特定错误条件却未采取任何应对措施。攻击者通常利用此缺陷,通过触发异常状态使程序进入不可控行为,如拒绝服务或逻辑绕过,从而破坏系统完整性或可用性。开发者应避免此类问题,需在检测到错误后实施明确的恢复机制、日志记录或安全终止流程,确保程序状态始终处于可控且安全的范围内。
foo=malloc(sizeof(char)); //the next line checks to see if malloc failed if (foo==NULL) { //We do nothing so we just ignore the error. }foo=malloc(sizeof(char)); //the next line checks to see if malloc failed if (foo==NULL) { printf("Malloc failed to allocate memory resources"); return -1; }char* readfile (char *filename) { try { // open input file ifstream infile; infile.open(filename); if (!infile.is_open()) { throw "Unable to open file " + filename; } // get length of file infile.seekg (0, ios::end); int length = infile.tellg(); infile.seekg (0, ios::beg); // allocate memory char *buffer = new char [length]; // read data from file infile.read (buffer,length); if (!infile.good()) { throw "Unable to read from file " + filename; } infile.close(); return buffer; } catch (...) { /* bug: insert code to handle this later */ } }char* readFile (char *filename) { try { // open input file ifstream infile; infile.open(filename); if (!infile.is_open()) { throw "Unable to open file " + filename; } // get length of file infile.seekg (0, ios::end); int length = infile.tellg(); infile.seekg (0, ios::beg); // allocate memory char *buffer = new char [length]; // read data from file infile.read (buffer,length); if (!infile.good()) { throw "Unable to read from file " + filename; } infile.close(); return buffer; } catch (char *str) { printf("Error: %s \n", str); infile.close(); throw str; } catch (...) { printf("Error occurred try| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2025-0029 | AMD EPYC 9005 Series 安全漏洞 — AMD EPYC™ 9005 Series Processors | 6.7AI | MediumAI | 2026-02-10 |
| CVE-2025-46367 | Dell Alienware Command Center 安全漏洞 — Alienware Command Center | 7.8 | High | 2025-11-13 |
| CVE-2025-27039 | Qualcomm Chipsets 安全漏洞 — Snapdragon | 6.6 | Medium | 2025-10-09 |
| CVE-2024-49841 | Qualcomm Chipsets 安全漏洞 — Snapdragon | 7.8 | High | 2025-05-06 |
| CVE-2025-26465 | OpenSSH 安全漏洞 | 6.8 | Medium | 2025-02-18 |
| CVE-2025-25204 | GitHub CLI 安全漏洞 — cli | 6.3 | Medium | 2025-02-14 |
| CVE-2024-12086 | Rsync 安全漏洞 | 6.1 | Medium | 2025-01-14 |
| CVE-2024-11942 | Drupal 安全漏洞 — Drupal Core | 9.1 | - | 2024-12-05 |
| CVE-2024-30255 | Envoy 安全漏洞 — envoy | 5.3 | Medium | 2024-04-04 |
| CVE-2024-27919 | Envoy 安全漏洞 — envoy | 7.5 | High | 2024-04-04 |
| CVE-2024-20316 | Cisco IOS XE Software 安全漏洞 — Cisco IOS XE Software | 5.8 | Medium | 2024-03-27 |
| CVE-2021-40391 | Gerbv 缓冲区错误漏洞 — Gerbv | 7.8 | - | 2021-11-19 |
| CVE-2019-5051 | Simple DirectMedia Layer 缓冲区错误漏洞 — Simple DirectMedia | 8.8 | - | 2019-07-03 |
| CVE-2017-7485 | PostgreSQL 安全漏洞 — PostgreSQL | 6.8 | - | 2017-05-12 |
CWE-390(未有动作错误条件的检测) 是常见的弱点类别,本平台收录该类弱点关联的 14 条 CVE 漏洞。