128 vulnerabilities classified as CWE-116 (对输出编码和转义不恰当). AI Chinese analysis included.
CWE-116 represents a critical input validation weakness where software fails to properly encode or escape output data before transmitting it to another component. This oversight disrupts the intended message structure, allowing attackers to inject malicious commands or alter data semantics by exploiting the parsing ambiguity. Exploitation typically occurs when unescaped special characters are interpreted as control sequences rather than literal data, leading to severe consequences such as cross-site scripting, command injection, or protocol manipulation. To mitigate this risk, developers must strictly enforce context-aware encoding strategies, ensuring that all output is sanitized according to the specific receiving component’s parsing rules. Implementing robust escaping libraries and validating data boundaries before transmission are essential practices to preserve message integrity and prevent unauthorized command execution.
<% String email = request.getParameter("email"); %> ... Email Address: <%= email %>$inputString = readLineFromFileHandle($serverFH); # generate an array of strings separated by the "|" character. @commands = split(/\|/, $inputString); foreach $cmd (@commands) { # separate the operator from its arguments based on a single whitespace ($operator, $args) = split(/ /, $cmd, 2); $args = UrlDecode($args); if ($operator eq "BAN") { ExecuteBan($args); } elsif ($operator eq "SAY") { ExecuteSay($args); } }$inputString = GetUntrustedArgument("command"); ($cmd, $argstr) = split(/\s+/, $inputString, 2); # removes extra whitespace and also changes CRLF's to spaces $argstr =~ s/\s+/ /gs; $argstr = UrlEncode($argstr); if (($cmd eq "BAN") && (! IsAdministrator($username))) { die "Error: you are not the admin.\n"; } # communicate with file server using a file handle $fh = GetServerFileHandle("myserver"); print $fh "$cmd $argstr\n";| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2021-23205 | Gallagher Command Centre Server 处理逻辑错误漏洞 — Command Centre | 8.1 | High | 2021-06-11 |
| CVE-2020-26283 | Control character injection in console output — go-ipfs | 6.8 | Medium | 2021-03-24 |
| CVE-2020-29023 | CSV Formula Injection possible due to improper fields escaping in GateManager — GateManager | 3.5 | Low | 2021-02-16 |
| CVE-2020-26226 | Secret disclosure in semantic-release — semantic-release | 8.1 | High | 2020-11-18 |
| CVE-2019-9853 | Insufficient URL decoding flaw in categorizing macro location — LibreOffice | 7.8 | - | 2019-09-27 |
| CVE-2019-9852 | Insufficient URL encoding flaw in allowed script location check — LibreOffice | 7.8 | - | 2019-08-15 |
| CVE-2019-3571 | Facebook WhatsApp 输入验证错误漏洞 — WhatsApp Desktop | 5.3 | - | 2019-07-16 |
| CVE-2018-8920 | Synology DiskStation Manager 注入漏洞 — DiskStation Manager (DSM) | 9.8 | - | 2018-12-24 |
Vulnerabilities classified as CWE-116 (对输出编码和转义不恰当) represent 128 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.