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

目标: 1000 元 · 已筹: 1000

100.0%

CWE-147 输入终结符转义处理不恰当 类漏洞列表 2

CWE-147 输入终结符转义处理不恰当 类弱点 2 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-147指输入终止符处理不当漏洞。当上游组件传入数据时,若未正确清理或转义特殊终止字符(如SMTP中的句点或字符串空字符),下游组件可能错误解析数据边界。攻击者可利用此缺陷截断输入或注入恶意载荷,导致逻辑绕过或数据泄露。开发者应严格验证并转义所有输入中的终止符,确保下游组件能准确识别数据边界,从而防止意外解析。

MITRE CWE 官方描述
CWE:CWE-147 输入终止符处理不当 (Improper Neutralization of Input Terminators) 英文:产品从上游组件接收输入,但未对特殊元素进行中和或中和不当,这些特殊元素在发送给下游组件时可能被解释为输入终止符 (input terminators)。 例如,SMTP 中的 "." 表示邮件数据结束,而 null 字符可用于表示字符串结束。
常见影响 (1)
IntegrityUnexpected State
缓解措施 (4)
Developers should anticipate that terminators will be injected/removed/manipulated in the input vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only valid, expected and appropriate input is processed by the system.
ImplementationAssume 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…
ImplementationWhile it is risky to use dynamically-generated query strings, code, or commands that mix control and data together, sometimes it may be unavoidable. Properly quote arguments and escape any special characters within those arguments. The most conservative approach is to escape or filter all characters that do not pass an extremely strict allowlist (such as everything that is not alphanumeric or whit…
ImplementationInputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
CVE ID标题CVSS风险等级Published
CVE-2025-7962 Eclipse Jakarta Mail 安全漏洞 — Jakarta Mail 7.5 -2025-07-21
CVE-2024-52505 matrix-appservice-irc 安全漏洞 — matrix-appservice-irc 5.4 Medium2024-11-14

CWE-147(输入终结符转义处理不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 2 条 CVE 漏洞。