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

目标: 1000 元 · 已筹: 1336

100%

CWE-116 对输出编码和转义不恰当 类漏洞列表 185

CWE-116 对输出编码和转义不恰当 类弱点 185 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-116 属于输出编码或转义不当漏洞,指产品在向其他组件发送结构化消息时,未正确编码或转义数据,导致消息结构被破坏。攻击者常借此注入恶意命令,篡改预期逻辑以执行非法操作。开发者应避免此风险,需严格遵循上下文相关的编码规范,对输出数据进行彻底验证与转义,确保特殊字符被正确隔离,从而维持消息结构的完整性与安全性。

MITRE CWE 官方描述
CWE:CWE-116 输出编码或转义不当 英文:产品为与另一个组件通信而准备结构化消息,但数据的编码或转义缺失或执行不正确。结果,消息的预期结构未能得到保留。 编码或转义不当可能使攻击者能够更改发送给另一个组件的命令,并插入恶意命令。大多数产品遵循某种协议,该协议使用结构化消息在组件之间进行通信,例如查询或命令。这些结构化消息可以包含穿插着元数据或控制信息的原始数据。例如,“GET /index.html HTTP/1.1”是一个结构化消息,其中包含一个命令(“GET”)、一个参数(“/index.html”)以及关于正在使用的协议版本(“HTTP/1.1”)的元数据。如果应用程序使用攻击者提供的输入来构建结构化消息,而未进行适当的编码或转义,则攻击者可以插入特殊字符,导致数据被解释为控制信息或元数据。因此,接收输出的组件将执行错误的操作,或以其他错误的方式解释数据。
常见影响 (3)
Integrity Modify Application Data
The communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
Integrity, Confidentiality, Availability, Access Control Execute Unauthorized Code or Commands
The communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
Confidentiality Bypass Protection Mechanism
The communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
缓解措施 (5)
Architecture and Design Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using the ESAPI Encoding control [REF-45] or a similar tool, library, or framework. These will help the programmer encode outputs in a manner less prone to error. Alternately, use built-in functions, but consider using wrappers in case t…
Architecture and Design If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated. For example, stored procedures can enforce database query structure and reduce the likel…
Architecture and Design, Implementation Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required e…
Architecture and Design In some cases, input validation may be an important strategy when output encoding is not a complete solution. For example, you may be providing the same output that will be processed by multiple consumers that use different encodings or representations. In other cases, you may be required to allow user-supplied input to contain control information, such as limited HTML tags that support formatting…
Architecture and Design Use input validation as a defense-in-depth measure to reduce the likelihood of output encoding errors (see CWE-20).
代码示例 (2)
This code displays an email address that was submitted as part of a form.
<% String email = request.getParameter("email"); %> ... Email Address: <%= email %>
Bad · JSP
Consider a chat application in which a front-end web application communicates with a back-end server. The back-end is legacy code that does not perform authentication or authorization, so the front-end must implement it. The chat protocol supports two commands, SAY and BAN, although only administrators can use the BAN command. Each argument must be separated by a single space. The raw inputs are U…
$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); } }
Bad · Perl
$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";
Bad · Perl
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-79964 Dell Secure Connect Gateway 输出处理不当漏洞 — Secure Connect Gateway 5.0 - Application 5.3 Medium 2026-09-09
CVE-2026-79952 Dell Secure Connect Gateway 输出处理不当漏洞 — Secure Connect Gateway 5.0 - Application 5.3 Medium 2026-09-09
CVE-2026-87550 Google Chrome 输出处理不当漏洞 — Chrome - - 2026-09-09
CVE-2026-69821 Microsoft Active Directory Certificate Services 输出处理不当漏洞 — Windows 10 Version 1607 7.8 High 2026-09-08
CVE-2026-82756 Ash Framework AshAuthentication.Oauth2Server 输出处理不当漏洞 — ash_authentication_oauth2_server 6.3 Medium 2026-09-07
CVE-2026-84292 Fastify fast-uri 输出处理不当漏洞 — fast-uri 7.5 High 2026-09-02
CVE-2026-83610 xmldom 输出处理不当漏洞 — xmldom 6.3 Medium 2026-09-01
CVE-2026-82681 Ash Framework AshAdmin 输出处理不当漏洞 — ash_admin 2.0 Low 2026-08-31
CVE-2026-55859 MariaDB R2DBC connector 输出处理不当漏洞 — mariadb-connector-r2dbc 5.9 Medium 2026-08-28
CVE-2026-55891 PrivateBin 输出处理不当漏洞 — PrivateBin - - 2026-08-28
CVE-2026-82249 GitoxideLabs gitoxide 输出处理不当漏洞 — gitoxide 3.1 Low 2026-08-28
CVE-2026-81522 MongoDB C++ Driver 输出处理不当漏洞 — C++ Driver 8.1 High 2026-08-27
CVE-2026-81685 Tobi OpenSSL Encrypt 输出处理不当漏洞 — openssl_encrypt 3.3 Low 2026-08-27
CVE-2026-65085 NVIDIA OpenShell 输出处理不当漏洞 — OpenShell 5.2 Medium 2026-08-25
CVE-2026-55618 GOVCERT-LU eml_parser 输出处理不当漏洞 — eml_parser 6.5 Medium 2026-08-25
CVE-2026-63466 Unleash 输出处理不当漏洞 — unleash 4.1 Medium 2026-08-21
CVE-2026-61398 Apache CloudStack 输出处理不当漏洞 — Apache CloudStack - - 2026-08-21
CVE-2026-61399 Apache CloudStack 输出处理不当漏洞 — Apache CloudStack - - 2026-08-21
CVE-2025-36254 IBM System Storage DS8A00 输出处理不当漏洞 — DS8A00 (R10.0 - R10.1) 7.4 High 2026-08-19
CVE-2026-43971 Nine Nines Cowlib 输出处理不当漏洞 — cowlib 6.3 Medium 2026-08-18
CVE-2026-73055 ericcornelissen shescape 输出处理不当漏洞 — shescape 4.8 Medium 2026-08-15
CVE-2026-73479 Sebastian Thiel dua 输出处理不当漏洞 — dua-cli 5.0 Medium 2026-08-13
CVE-2026-73480 Daniel Milde go DiskUsage 输出处理不当漏洞 — gdu 5.0 Medium 2026-08-13
CVE-2025-62315 HCL AION 输出处理不当漏洞 — AION 3.4 Low 2026-08-13
CVE-2026-73411 ericcornelissen shescape 输出处理不当漏洞 — shescape 6.3 Medium 2026-08-12
CVE-2026-48376 Adobe ColdFusion 输出处理不当漏洞 — ColdFusion 2025 5.4 Medium 2026-08-11
CVE-2026-66486 GNU cpio 输出处理不当漏洞 — cpio 4.6 Medium 2026-08-10
CVE-2026-54364 Gladinet CentreStack 输出处理不当漏洞 — CentreStack 6.5 Medium 2026-07-30
CVE-2026-54705 Arno Gourdol MathLive 输出处理不当漏洞 — mathlive 6.3 Medium 2026-07-29
CVE-2026-50642 So Fancy diff-so-fancy 输出处理不当漏洞 — diff-so-fancy 4.8 Medium 2026-07-29

CWE-116(对输出编码和转义不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 185 条 CVE 漏洞。