CWE-94 对生成代码的控制不恰当(代码注入) 类弱点 2110 条 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-4194 | WordPress plugin Album and Image Gallery plus Lightbox 安全漏洞 — Album and Image Gallery Plus Lightbox | 6.5 | Medium | 2024-06-06 |
| CVE-2024-25600 | WordPress Plugin Bricks Builder Theme 安全漏洞 — Bricks Builder | 10.0 | Critical | 2024-06-04 |
| CVE-2024-37061 | MLflow 安全漏洞 — MLflow | 8.8 | High | 2024-06-04 |
| CVE-2024-36120 | JavaScript deobfuscator 安全漏洞 — javascript-deobfuscator | 8.2 | High | 2024-05-31 |
| CVE-2024-5565 | Vanna 安全漏洞 | 8.1 | High | 2024-05-31 |
| CVE-2024-3924 | Text Generation Inference 安全漏洞 — huggingface/text-generation-inference | 8.8AI | High AI | 2024-05-30 |
| CVE-2024-35226 | Smarty 安全漏洞 — smarty | 7.3 | High | 2024-05-28 |
| CVE-2024-5407 | RhinOS 代码注入漏洞 — RhinOS | 10.0 | Critical | 2024-05-27 |
| CVE-2024-4037 | WordPress plugin WP Photo Album Plus 安全漏洞 — WP Photo Album Plus | 6.5 | Medium | 2024-05-24 |
| CVE-2024-0867 | WordPress plugin Email Log 安全漏洞 — Email Log | 8.1 | High | 2024-05-24 |
| CVE-2024-4662 | WordPress plugin Oxygen Builde 安全漏洞 — Oxygen Builder | 8.8 | High | 2024-05-23 |
| CVE-2024-4261 | WordPress plugin Responsive Contact Form Builder & Lead Generation 安全漏洞 — Lead Form Builder & Contact Form | 5.4 | Medium | 2024-05-22 |
| CVE-2024-4264 | LiteLLM 代码注入漏洞 — berriai/litellm | 9.8 | - | 2024-05-18 |
| CVE-2024-33644 | WordPress plugin Customify Site Library 代码注入漏洞 — Customify Site Library | 9.9 | Critical | 2024-05-17 |
| CVE-2023-23645 | WordPress plugin MainWP Code Snippets Extension 代码注入漏洞 — MainWP Code Snippets Extension | 9.9 | Critical | 2024-05-17 |
| CVE-2024-4181 | LlamaIndex 代码注入漏洞 — run-llama/llama_index | 9.8AI | Critical AI | 2024-05-16 |
| CVE-2024-4202 | Progress Software Telerik Report Server 安全漏洞 — Telerik Reporting | 7.7 | High | 2024-05-15 |
| CVE-2024-3892 | Telerik UI for WinForms 安全漏洞 — Telerik UI for WinForms | 7.2 | High | 2024-05-15 |
| CVE-2024-3319 | SailPoint Identity Security Cloud 安全漏洞 — Identity Security Cloud | 9.1 | Critical | 2024-05-15 |
| CVE-2024-4144 | WordPress plugin Simple Basic Contact Form 安全漏洞 — Simple Basic Contact Form | 6.5 | Medium | 2024-05-14 |
| CVE-2024-4039 | WordPress plugin The Orders Tracking for WooCommerce 安全漏洞 — Orders Tracking for WooCommerce | 6.5 | Medium | 2024-05-10 |
| CVE-2024-4038 | WordPress plugin The Back In Stock Notifier for WooCommerce 安全漏洞 — Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro | 6.5 | Medium | 2024-05-09 |
| CVE-2024-4605 | WordPress Plugin Breakdance 安全漏洞 — Breakdance | 8.8 | High | 2024-05-09 |
| CVE-2024-4135 | WordPress plugin WP Latest Posts 安全漏洞 — WP Latest Posts | 5.4 | Medium | 2024-05-08 |
| CVE-2023-35701 | Apache Hive 代码注入漏洞 — Apache Hive | 8.8AI | High AI | 2024-05-03 |
| CVE-2023-39469 | PaperCut NG 安全漏洞 — NG | 8.8 | - | 2024-05-03 |
| CVE-2024-3734 | WordPress plugin FOX 安全漏洞 — FOX – Currency Switcher Professional for WooCommerce | 6.5 | Medium | 2024-05-02 |
| CVE-2024-3957 | WordPress plugin Booster for WooCommerce 安全漏洞 — Booster for WooCommerce – PDF Invoices, Abandoned Cart, Variation Swatches & 100+ Tools | 6.5 | Medium | 2024-05-02 |
| CVE-2024-3955 | CraftBeerPi 安全漏洞 — CraftBeerPi 4 | 9.8 | - | 2024-05-02 |
| CVE-2024-31266 | WordPress plugin Advanced Order Export For WooCommerce 代码注入漏洞 — Advanced Order Export For WooCommerce | 9.1 | Critical | 2024-04-25 |
CWE-94(对生成代码的控制不恰当(代码注入)) 是常见的弱点类别,本平台收录该类弱点关联的 2110 条 CVE 漏洞。