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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-88 参数注入或修改 类漏洞列表 286

CWE-88 参数注入或修改 类弱点 286 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-88 属于参数注入漏洞,指程序在构建外部命令字符串时,未正确界定参数边界。攻击者通过注入特殊字符(如空格或引号),将恶意参数伪装成合法选项,从而执行非预期的系统命令。开发者应避免直接拼接用户输入,转而使用接受独立参数数组的 API 调用命令,或严格过滤输入中的特殊字符,以确保命令解析的准确性与安全性。

MITRE CWE 官方描述
CWE:CWE-88 命令中的参数分隔符处理不当('Argument Injection') 英文:产品为在另一个控制域中的独立组件执行的命令构建字符串,但未正确分隔该命令字符串内的预期参数、选项或开关。 在使用字符串插值创建命令时,开发人员可能假设仅会处理其指定的参数/选项。当程序员以某种方式对命令进行编码以防止恶意提供单独的命令时(例如,针对 shell 元字符的情况),这种假设可能会更加强烈。在构建命令时,开发人员可能会使用空格或其他分隔符,这些分隔符在命令执行时用于分隔参数。然而,如果攻击者能够提供包含参数分隔符的不可信输入,则生成的命令将包含比开发人员预期更多的参数。攻击者随后可能能够改变命令的行为。根据多余参数所支持的功能,这可能会产生与安全相关的后果。
常见影响 (1)
Confidentiality, Integrity, Availability, Other Execute Unauthorized Code or Commands, Alter Execution Logic, Read Application Data, Modify Application Data
An attacker could include arguments that allow unintended commands or code to be executed, allow sensitive data to be read or modified or could cause other unintended behavior.
缓解措施 (5)
Implementation Where possible, avoid building a single string that contains the command and its arguments. Some languages or frameworks have functions that support specifying independent arguments, e.g. as an array, which is used to automatically perform the appropriate quoting or escaping while building the command. For example, in PHP, escapeshellarg() can be used to escape a single argument to system(), or …
Effectiveness: High
Architecture and Design Understand all the potential areas where untrusted inputs can enter your product: parameters or arguments, cookies, anything read from the network, environment variables, request headers as well as content, URL components, e-mail, files, databases, and any external systems that provide data to the application. Perform input validation at well-defined interfaces.
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Implementation Directly convert your input type into the expected data type, such as using a conversion function that translates a string into a number. After converting to the expected data type, ensure that the input's values fall within the expected range of allowable values and that multi-field consistencies are maintained.
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180, CWE-181). Make sure that your application does not inadvertently decode the same input twice (CWE-174). Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked. Use libraries such as the OWASP ESAPI Canonicalizat…
代码示例 (2)
Consider the following program. It intends to perform an "ls -l" on an input filename. The validate_name() subroutine performs validation on the input to make sure that only alphanumeric and "-" characters are allowed, which avoids path traversal (CWE-22) and OS command injection (CWE-78) weaknesses. Only filenames like "abc" or "d-e-f" are intended to be allowed.
my $arg = GetArgument("filename"); do_listing($arg); sub do_listing { my($fname) = @_; if (! validate_name($fname)) { print "Error: name is not well-formed!\n"; return; } # build command my $cmd = "/bin/ls -l $fname"; system($cmd); } sub validate_name { my($name) = @_; if ($name =~ /^[\w\-]+$/) { return(1); } else { return(0); } }
Bad · Perl
if ($name =~ /^\w[\w\-]+$/) ...
Good · Perl
CVE-2016-10033 / [REF-1249] provides a useful real-world example of this weakness within PHPMailer.
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-76212 Thorsten Rinne phpMyFAQ 命令注入漏洞 — phpMyFAQ 5.3 Medium 2026-08-19
CVE-2026-52817 Linuxfabrik Python Libraries 命令注入漏洞 — monitoring-plugins 7.0 High 2026-08-18
CVE-2026-75912 Hunter Bown CodeWhale 命令注入漏洞 — CodeWhale 7.4 High 2026-08-18
CVE-2026-73624 gitpython-developers GitPython 命令注入漏洞 — GitPython 8.1 High 2026-08-13
CVE-2026-73621 gitpython-developers GitPython 命令注入漏洞 — GitPython 5.4 Medium 2026-08-13
CVE-2026-16770 Philip Garrett PDF::WebKit 命令注入漏洞 — PDF::WebKit - - 2026-08-12
CVE-2026-73240 Apache Allura 命令注入漏洞 — Apache Allura - - 2026-08-12
CVE-2026-72538 Prefect 命令注入漏洞 — Prefect 8.8 High 2026-08-11
CVE-2026-71212 Indra Voyager xidown ext 命令注入漏洞 — xidown 4.4 Medium 2026-08-05
CVE-2026-18157 Red Hat yggdrasil-worker-package-manager 命令注入漏洞 — yggdrasil-worker-package-manager 7.8 High 2026-07-31
CVE-2026-16796 Amazon Bedrock AgentCore SDK 命令注入漏洞 — bedrock-agentcore 1.18.1 7.3 High 2026-07-23
CVE-2026-44210 Kata Containers 命令注入漏洞 — kata-containers 5.8 Medium 2026-07-23
CVE-2026-44189 Red Hat Ansible Lightspeed 命令注入漏洞 — Red Hat Ansible Automation Platform 2 7.8 High 2026-07-22
CVE-2026-16493 ansible 命令注入漏洞 — Red Hat Satellite 6.17 for RHEL 9 7.8 High 2026-07-21
CVE-2026-15793 Moby BuildKit 命令注入漏洞 — BuildKit - - 2026-07-21
CVE-2026-64624 FreeRDP 命令注入漏洞 — FreeRDP 7.8 High 2026-07-20
CVE-2026-44968 dbt-labs dbt-mcp 命令注入漏洞 — dbt-mcp 6.3 Medium 2026-07-16
CVE-2026-49987 Kazuki Yamada Repomix 命令注入漏洞 — repomix - - 2026-07-15
CVE-2026-50147 Metabase 命令注入漏洞 — metabase 7.6 High 2026-07-15
CVE-2026-45068 Symfony 命令注入漏洞 — symfony - - 2026-07-14
CVE-2026-61459 Flux159 mcp-server-kubernetes 命令注入漏洞 — mcp-server-kubernetes 9.8 Critical 2026-07-10
CVE-2026-57572 UncleCode Crawl4AI 命令注入漏洞 — crawl4ai 10.0 Critical 2026-07-06
CVE-2026-40047 Apache Camel 命令注入漏洞 — Apache Camel - - 2026-07-06
CVE-2026-14459 TÜBİTAK BİLGEM pardus-software 命令注入漏洞 — pardus-software 8.8 High 2026-07-03
CVE-2026-12856 Red Hat Language support for Java ™ for Visual Studio Code 命令注入漏洞 — Red Hat OpenShift Dev Spaces 3.29 8.8 High 2026-06-29
CVE-2026-50014 pnpm 命令注入漏洞 — pnpm 6.4 Medium 2026-06-25
CVE-2026-48793 Jellyfin 命令注入漏洞 — jellyfin 8.8 High 2026-06-24
CVE-2026-11968 TortoiseGit 命令注入漏洞 — TortoiseGit 5.5 Medium 2026-06-24
CVE-2026-44790 n8n 命令注入漏洞 — n8n - - 2026-06-23
CVE-2026-12530 AWS Bedrock AgentCore SDK 命令注入漏洞 — bedrock-agentcore 7.3 High 2026-06-17

CWE-88(参数注入或修改) 是常见的弱点类别,本平台收录该类弱点关联的 286 条 CVE 漏洞。