Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-77 (在命令中使用的特殊元素转义处理不恰当(命令注入)) — Vulnerability Class 1472

1472 vulnerabilities classified as CWE-77 (在命令中使用的特殊元素转义处理不恰当(命令注入)). AI Chinese analysis included.

CWE-77 represents a critical input validation weakness where software constructs commands using untrusted data without properly sanitizing special characters. Attackers typically exploit this by injecting malicious payloads, such as semicolons or pipe operators, into user-supplied fields to alter the intended command structure. This allows them to execute arbitrary system commands, potentially leading to full system compromise, data exfiltration, or denial of service. To prevent such vulnerabilities, developers must strictly validate and sanitize all external inputs, ensuring that only expected data formats are processed. Utilizing parameterized APIs or safe command execution libraries instead of direct string concatenation significantly reduces risk. Additionally, implementing the principle of least privilege for application processes limits the potential impact of successful injection attempts, thereby enhancing overall system security against command injection attacks.

MITRE CWE Description
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks.
Common Consequences (1)
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If a malicious user injects a character (such as a semi-colon) that delimits the end of one command and the beginning of another, it may be possible to then insert an entirely new and unrelated command that was not intended to be executed. This gives an attacker a privilege or capability that they w…
Mitigations (5)
Architecture and Design If at all possible, use library calls rather than external processes to recreate the desired functionality.
Implementation If possible, ensure that all external commands called from the program are statically created.
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…
Operation Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
System Configuration Assign permissions that prevent the user from accessing/opening privileged files.
Examples (2)
Consider a "CWE Differentiator" application that uses an an LLM generative AI based "chatbot" to explain the difference between two weaknesses. As input, it accepts two CWE IDs, constructs a prompt string, sends the prompt to the chatbot, and prints the results. The prompt string effectively acts as a command to the chatbot component. Assume that invokeChatbot() calls the chatbot and returns the …
prompt = "Explain the difference between {} and {}".format(arg1, arg2) result = invokeChatbot(prompt) resultHTML = encodeForHTML(result) print resultHTML
Bad · Python
Explain the difference between CWE-77 and CWE-78
Informative
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 ID Title CVSS Severity Published
CVE-2026-78063 Tenda CH22 editFileName formeditFileName command injection — CH22 7.4 High 2026-08-23
CVE-2026-77988 TRENDnet TEW-823DRU CLI Configuration Tool nvram_get command injection — TEW-823DRU 6.6 Medium 2026-08-22
CVE-2026-77945 TRENDnet TEW-821DAP ssi upload.cgi command injection — TEW-821DAP 7.4 High 2026-08-22
CVE-2026-77683 Comfast CF-N1-S mbox-config system command injection — CF-N1-S 9.9 Critical 2026-08-21
CVE-2026-61400 Apache CloudStack: Get and Run Diagnostics Command Injection — Apache CloudStack - - 2026-08-21
CVE-2026-77031 Tenda CH22 formcreateFileName command injection — CH22 7.4 High 2026-08-20
CVE-2026-54449 LangBot: Authenticated RCE Via MCP Configuration — LangBot 8.8 High 2026-08-20
CVE-2026-77004 Comfast CF-N1-S mbox-config sprintf command injection — CF-N1-S 7.4 High 2026-08-20
CVE-2026-76591 TRENDnet TEW-755AP ssi email.cgi log_email_server command injection — TEW-755AP 7.4 High 2026-08-19
CVE-2026-76339 SPL Injection through the geostats Command in Splunk Enterprise — Splunk Enterprise 5.4 Medium 2026-08-19
CVE-2026-76328 SPL Injection through Splunk Web in Splunk Enterprise — Splunk Enterprise 6.7 Medium 2026-08-19
CVE-2026-76321 SPL Injection through Nearby Event Searches in Splunk Enterprise — Splunk Enterprise 7.3 High 2026-08-19
CVE-2026-76583 TRENDnet TV-IP751WIC alphapd set_time.cgi command injection — TV-IP751WIC 7.4 High 2026-08-19
CVE-2026-76582 TRENDnet TEW-821DAP ssi ping.cgi system command injection — TEW-821DAP 7.4 High 2026-08-19
CVE-2026-76233 Renovate 39.53.0 before 40.33.0 Command Injection via gleam manager — renovate 6.7 Medium 2026-08-19
CVE-2026-76232 Renovate 31.51.0 before 40.33.0 Command Injection via helmv3 — renovate 6.7 Medium 2026-08-19
CVE-2026-76231 Renovate 32.135.0 before 40.33.0 Command Injection via hermit — renovate 6.7 Medium 2026-08-19
CVE-2026-76230 Renovate 35.63.0 before 40.33.0 Command Injection via npm — renovate 6.7 Medium 2026-08-19
CVE-2026-76229 Renovate 39.218.0 before 40.33.0 Arbitrary Command Injection via kustomize — renovate 6.7 Medium 2026-08-19
CVE-2026-75985 TRENDnet Router ping.cgi command injection — Router 7.4 High 2026-08-19
CVE-2026-75984 TRENDnet TEW-823DRU admin.cgi command injection — TEW-823DRU 7.4 High 2026-08-19
CVE-2026-53533 aiosmtplib: SMTP command injection via CR/LF in sender/recipient address — aiosmtplib 6.9 Medium 2026-08-18
CVE-2026-24301 Microsoft Copilot Information Disclosure Vulnerability — Copilot Web 8.8 High 2026-08-18
CVE-2026-75011 kylecui NetForensicMCP index.js execAsync command injection — NetForensicMCP 6.3 Medium 2026-08-17
CVE-2026-75052 JetBrains IntelliJ IDEA 命令注入漏洞 — IntelliJ IDEA 3.6 Low 2026-08-17
CVE-2026-75007 Roundcube Webmail 命令注入漏洞 — Webmail 5.4 Medium 2026-08-17
CVE-2026-75004 Roundcube Webmail 命令注入漏洞 — Webmail 4.3 Medium 2026-08-17
CVE-2026-75002 Roundcube Webmail 命令注入漏洞 — Webmail 7.1 High 2026-08-17
CVE-2026-19976 COMFAST CF-N1-S mbox-config sub_44A968 command injection — CF-N1-S 6.6 Medium 2026-08-17
CVE-2026-19963 Edimax EW-7478APC stainfo command injection — EW-7478APC 7.4 High 2026-08-16

Vulnerabilities classified as CWE-77 (在命令中使用的特殊元素转义处理不恰当(命令注入)) represent 1472 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.