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

目标: 1000 元 · 已筹: 1359 元

100%

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

CWE-116 对输出编码和转义不恰当 类弱点 210 条 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-110910 qs 参数注入漏洞 — qs 3.7 Low 2026-10-27
CVE-2026-116815 OpenPanel 3.0.0 前 ClickHouse 注入漏洞 — openpanel 4.3 Medium 2026-10-26
CVE-2026-114510 FalkorDB 图注入及图数据清除漏洞 — flexible-graphrag 7.1 High 2026-10-22
CVE-2026-113870 MongoDB Compass BSON 解析服务器端 JavaScript 编码不当漏洞 — Compass 8.8 High 2026-10-21
CVE-2026-113667 ApostropheCMS 未对验证码响应令牌进行 URL 编码 — apostrophe 5.3 Medium 2026-10-20
CVE-2026-110757 Text::CSV_XS 1.65 前记录分割漏洞 - - 2026-10-16
CVE-2026-110756 Text::CSV_XS 1.65 之前版本数据截断漏洞 - - 2026-10-16
CVE-2026-18516 Crafty Controller 输出编码或转义不当漏洞 — Crafty Controller 9.6 Critical 2026-10-16
CVE-2026-110592 BottleCRM 0.30-1.14.5 自定义发票模板HTML注入漏洞 — BottleCRM 3.5 Low 2026-10-14
CVE-2026-102235 Visual Studio Code 远程代码执行漏洞 — Visual Studio Code 8.8 High 2026-10-13
CVE-2026-107823 MariaDB 视图frm解析错误导致提权漏洞 — server 7.2 High 2026-10-09
CVE-2026-105244 Apache log4net RemoteSyslogAppender静默删除非ASCII字符漏洞 — Apache log4net 5.3 Medium 2026-10-06
CVE-2026-106444 Handlebars 预编译模板不安全内嵌导致JavaScript注入漏洞 — handlebars.js 4.7 Medium 2026-10-06
CVE-2026-47562 NVIDIA Linux驱动内核日志注入致拒绝服务 — GeForce 4.4 Medium 2026-09-30
CVE-2026-94545 Satori生成SVG转义不当漏洞 — satori 5.3 Medium 2026-09-30
CVE-2026-95274 Chrome 154 DevTools编码漏洞致沙箱逃逸 — Chrome - - 2026-09-29
CVE-2026-55214 GLPI 供应商存储型跨站脚本漏洞 — glpi 8.5 High 2026-09-25
CVE-2026-63208 Zammad Microsoft Graph错误日志泄露部分掩码OAuth令牌 — zammad 5.1 Medium 2026-09-25
CVE-2026-82409 Klever-Go Elasticsearch 批量注入漏洞 — klever-go 8.4 High 2026-09-23
CVE-2026-63329 Warpgate x-warpgate-username 头部剥离失效身份冒充漏洞 — warpgate 4.9 Medium 2026-09-21
CVE-2026-13635 群晖DSM Auth API输出转义缺陷 — DiskStation Manager (DSM) 5.3 Medium 2026-09-18
CVE-2026-13684 Synology DSM SCGI不当编码致任意文件读写 — DiskStation Manager (DSM) 9.8 Critical 2026-09-18
CVE-2026-77404 RabbitMQ 远程代码执行漏洞 — amqp091-go 8.7 High 2026-09-16
CVE-2026-19641 Arista Networks EOS 输出处理不当漏洞 — EOS 5.3 Medium 2026-09-15
CVE-2026-73195 Apache Syncope 输出处理不当漏洞 — Apache Syncope - - 2026-09-14
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

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