CWE-94 对生成代码的控制不恰当(代码注入) 类弱点 1757 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-94 指代码注入漏洞,属于输入验证缺陷。攻击者通过向程序提供恶意构造的外部输入,利用未正确过滤的特殊字符或代码片段,篡改预期代码逻辑或注入可执行指令,从而劫持系统控制权。开发者应避免直接拼接用户输入,采用白名单验证机制,并使用参数化查询或沙箱环境隔离执行上下文,确保输入数据的合法性与安全性,从根本上阻断恶意代码的注入路径。
$MessageFile = "messages.out"; if ($_GET["action"] == "NewMessage") { $name = $_GET["name"]; $message = $_GET["message"]; $handle = fopen($MessageFile, "a+"); fwrite($handle, "<b>$name</b> says '$message'<hr>\n"); fclose($handle); echo "Message Saved!<p>\n"; } else if ($_GET["action"] == "ViewMessages") { include($MessageFile); }
name=h4x0r message=%3C?php%20system(%22/bin/ls%20-l%22);?%3E
use CGI qw(:standard); sub config_file_add_key { my ($fname, $key, $arg) = @_; # code to add a field/key to a file goes here } sub config_file_set_key { my ($fname, $key, $arg) = @_; # code to set key to a particular file goes here } sub config_file_delete_key { my ($fname, $key, $arg) = @_; # code to delete key from a particular file goes here } sub handleConfigAction { my ($fname, $action) = @_; my $key = param('key'); my $val = param('val'); # this is super-efficient code, especially if you have to invoke # any one of dozens of different functions! my $code = "config_file_$action_key(\$fnam
add_key(",","); system("/bin/ls");
| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2023-1367 | Easy!Appointments 代码注入漏洞 — alextselegidis/easyappointments | 3.8 | - | 2023-03-13 |
| CVE-2023-1283 | qwik 代码注入漏洞 — builderio/qwik | 10.0 | Critical | 2023-03-08 |
| CVE-2023-26107 | SketchSVG 代码注入漏洞 — sketchsvg | 6.9 | Medium | 2023-03-06 |
| CVE-2023-22381 | GitHub Enterprise Server 代码注入漏洞 — Enterprise Server | 4.1 | Medium | 2023-03-02 |
| CVE-2023-1097 | Baicells EG7035-M11 命令注入漏洞 — EG7035-M11 | 9.3 | Critical | 2023-03-01 |
| CVE-2023-1005 | Markdown Editor 代码注入漏洞 — Markdown-Electron | 5.3 | Medium | 2023-02-24 |
| CVE-2023-1004 | MarkText 代码注入漏洞 — MarkText | 5.3 | Medium | 2023-02-24 |
| CVE-2023-1003 | Typora 代码注入漏洞 — Typora | 5.3 | Medium | 2023-02-24 |
| CVE-2023-25657 | Nautobot 安全漏洞 — nautobot | 7.5 | High | 2023-02-21 |
| CVE-2021-26277 | Vivo Frame service 安全漏洞 — Frame service | 5.6 | Medium | 2023-02-17 |
| CVE-2023-0877 | Froxlor 代码注入漏洞 — froxlor/froxlor | 4.6 | - | 2023-02-17 |
| CVE-2023-21553 | Microsoft Azure DevOps Server 安全漏洞 — Azure DevOps Server 2020.1.2 | 7.5 | High | 2023-02-14 |
| CVE-2023-23551 | Control By Web X-600M 代码注入漏洞 — X-600M devices | 9.1 | Critical | 2023-02-13 |
| CVE-2023-0788 | phpMyFAQ 代码注入漏洞 — thorsten/phpmyfaq | 8.1 | High | 2023-02-12 |
| CVE-2023-0792 | phpMyFAQ 代码注入漏洞 — thorsten/phpmyfaq | 6.5 | Medium | 2023-02-12 |
| CVE-2023-0671 | Froxlor 代码注入漏洞 — froxlor/froxlor | 4.6 | - | 2023-02-04 |
| CVE-2023-23477 | IBM WebSphere Application Server 代码注入漏洞 — WebSphere Application Server | 8.1 | High | 2023-02-03 |
| CVE-2023-24576 | Dell EMC NetWorker 代码注入漏洞 — NetWorker, NVE | 7.5 | High | 2023-02-03 |
| CVE-2022-25967 | Eta 安全漏洞 — eta | 8.1 | High | 2023-01-30 |
| CVE-2023-23619 | Modelina 代码注入漏洞 — modelina | 10.0 | Critical | 2023-01-26 |
| CVE-2022-25894 | UFLO 代码注入漏洞 — com.bstek.uflo:uflo-core | 9.8 | Critical | 2023-01-25 |
| CVE-2022-25860 | simple-git 安全漏洞 — simple-git | 8.1 | High | 2023-01-24 |
| CVE-2022-34456 | Dell EMC Metro node 代码注入漏洞 — Metro node | 8.8 | High | 2023-01-18 |
| CVE-2023-22731 | Shopware 代码注入漏洞 — platform | 10.0 | Critical | 2023-01-17 |
| CVE-2023-0297 | pyload 代码注入漏洞 — pyload/pyload | 8.3 | - | 2023-01-14 |
| CVE-2023-0022 | SAP BusinessObjects Analysis(Edition For Olap) 代码注入漏洞 — BusinessObjects Business Intelligence platform (Analysis edition for OLAP) | 9.9 | Critical | 2023-01-10 |
| CVE-2023-0048 | daloRADIUS 代码注入漏洞 — lirantal/daloradius | 8.8 | - | 2023-01-04 |
| CVE-2015-10009 | nterchange 代码注入漏洞 — nterchange | 5.5 | Medium | 2023-01-02 |
| CVE-2022-23474 | Editor.js 跨站脚本漏洞 — editor.js | 6.1 | Medium | 2022-12-15 |
| CVE-2022-23503 | TYPO3 代码注入漏洞 — typo3 | 7.5 | High | 2022-12-14 |
CWE-94(对生成代码的控制不恰当(代码注入)) 是常见的弱点类别,本平台收录该类弱点关联的 1757 条 CVE 漏洞。