CWE-94 对生成代码的控制不恰当(代码注入) 类弱点 1751 条 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-2024-6982 | LoLLMs 代码注入漏洞 — parisneo/lollms | 9.8 | - | 2025-03-20 |
| CVE-2024-10572 | H2O 资源管理错误漏洞 — h2oai/h2o-3 | 9.1 | - | 2025-03-20 |
| CVE-2025-0185 | dify 安全漏洞 — langgenius/dify | 9.8 | - | 2025-03-20 |
| CVE-2024-21760 | Fortinet FortiSOAR 代码注入漏洞 — FortiSOAR | 7.7 | High | 2025-03-18 |
| CVE-2025-26924 | WordPress plugin Ohio Extra 代码注入漏洞 — Ohio Extra | 6.5 | Medium | 2025-03-15 |
| CVE-2024-54448 | LogicalDOC 代码注入漏洞 — LogicalDOC Community | 6.8 | - | 2025-03-14 |
| CVE-2025-1119 | WordPress plugin Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin 代码注入漏洞 — Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin | 7.3 | High | 2025-03-13 |
| CVE-2025-27407 | GraphQL 安全漏洞 — graphql-ruby | 9.1 | Critical | 2025-03-12 |
| CVE-2025-1550 | Keras 代码注入漏洞 — Keras | 7.8 | - | 2025-03-11 |
| CVE-2025-2169 | WordPress plugin WPCS 代码注入漏洞 — WPCS – WordPress Currency Switcher Professional | 7.3 | High | 2025-03-11 |
| CVE-2025-26936 | WordPress plugin Fresh Framework 代码注入漏洞 — Fresh Framework | 10.0 | Critical | 2025-03-10 |
| CVE-2025-1497 | PlotAI 命令注入漏洞 — PlotAI | 9.8 | - | 2025-03-10 |
| CVE-2024-13895 | WordPress plugin The Code Snippets CPT 代码注入漏洞 — Code Snippets CPT | 4.3 | Medium | 2025-03-08 |
| CVE-2024-13890 | WordPress plugin Allow PHP Execute 代码注入漏洞 — Allow PHP Execute | 7.2 | High | 2025-03-08 |
| CVE-2024-13815 | WordPress plugin Listingo 代码注入漏洞 — Listingo | 6.5 | Medium | 2025-03-05 |
| CVE-2025-26970 | WordPress plugin Ark Theme Core 代码注入漏洞 — Ark Theme Core | 10.0 | Critical | 2025-03-03 |
| CVE-2024-53386 | stage.js 代码注入漏洞 — Stage.js | 4.9 | Medium | 2025-03-03 |
| CVE-2024-53382 | Prism 代码注入漏洞 — Prism | 4.9 | Medium | 2025-03-03 |
| CVE-2024-13806 | WordPress plugin The Authors List 代码注入漏洞 — Authors List | 6.5 | Medium | 2025-03-01 |
| CVE-2025-27554 | ToDesktop 代码注入漏洞 — ToDesktop | 9.9 | Critical | 2025-03-01 |
| CVE-2024-52925 | OPSWAT MetaDefender KIOSK 代码注入漏洞 — MetaDefender Kiosk | 6.8 | Medium | 2025-02-26 |
| CVE-2025-1509 | WordPress plugin Show Me The Cookies 代码注入漏洞 — Show Me The Cookies | 7.3 | High | 2025-02-22 |
| CVE-2025-1510 | WordPress plugin Custom Post Type Date Archives 代码注入漏洞 — Custom Post Type Date Archives | 7.3 | High | 2025-02-22 |
| CVE-2024-13900 | WordPress plugin Head, Footer and Post Injections 代码注入漏洞 — Head, Footer and Post Injections | 4.1 | Medium | 2025-02-21 |
| CVE-2025-0161 | IBM Security Verify Access 代码注入漏洞 — Security Verify Access | 7.8 | High | 2025-02-20 |
| CVE-2024-13792 | WordPress plugin WooCommerce Food - Restaurant Menu & Food ordering 代码注入漏洞 — WooCommerce Food - Restaurant Menu & Food ordering | 7.3 | High | 2025-02-20 |
| CVE-2025-1465 | lmxcms 注入漏洞 — lmxcms | 4.1 | Medium | 2025-02-19 |
| CVE-2024-13689 | WordPress plugin Uncode Core 代码注入漏洞 — Uncode Core | 6.3 | Medium | 2025-02-18 |
| CVE-2024-13797 | WordPress plugin PressMart 代码注入漏洞 — PressMart - Modern Elementor WooCommerce WordPress Theme | 7.3 | High | 2025-02-18 |
| CVE-2025-1302 | JSONPath Plus 安全漏洞 — jsonpath-plus | 9.8 | Critical | 2025-02-15 |
CWE-94(对生成代码的控制不恰当(代码注入)) 是常见的弱点类别,本平台收录该类弱点关联的 1751 条 CVE 漏洞。