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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-1116 类漏洞列表 1

CWE-1116 类弱点 1 条 CVE 漏洞汇总,含 AI 中文分析。

MITRE CWE 官方描述
The source code contains comments that do not accurately describe or explain aspects of the portion of the code with which the comment is associated.
常见影响 (2)
Other Reduce Maintainability
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.
Other Increase Analytical Complexity
When a comment does not accurately reflect the associated code elements, this can introduce confusion to a reviewer (due to inconsistencies) or make it more difficult and less efficient to validate that the code is implementing the intended behavior correctly.
缓解措施 (1)
Implementation Verify that each comment accurately reflects what is intended to happen during execution of the code.
代码示例 (1)
In the following Java example the code performs a calculation to determine how much medicine to administer. A comment is provided to give insight into what the calculation shoud be doing. Unfortunately the comment does not match the actual code and thus leaves the reader to wonder which is correct.
public class Main { public static void main(String[] args) { int pt_weight = 83; int mg_per_kg = 3; int daily_dose = 0; // Add the patient weight and Mg/Kg to calculate the correct daily dose daily_dose = pt_weight * mg_per_kg; return dosage; } }
Bad · Java
public class Main { public static void main(String[] args) { int pt_weight = 83; int mg_per_kg = 3; int daily_dose = 0; // Multiply the patient weight and Mg/Kg to calculate the correct daily dose daily_dose = pt_weight * mg_per_kg; return dosage; } }
Good · Java
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-137836 Zimbra Collaboration Suite XML附件存储型XSS漏洞 — Zimbra Collaboration Suite (ZCS) 9.3 Critical 2026-12-03

CWE-1116 是常见的弱点类别,本平台收录该类弱点关联的 1 条 CVE 漏洞。