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

目标: 1000 元 · 已筹: 1336

100%

CWE-665 初始化不恰当 类漏洞列表 86

CWE-665 初始化不恰当 类弱点 86 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-665属于资源初始化不当漏洞,指程序未正确初始化资源,导致其处于意外状态。攻击者常利用此缺陷,通过读取未初始化的变量或内存,获取敏感信息或绕过身份验证逻辑。开发者应避免此类风险,确保在访问资源前对所有变量、指针及数据结构进行明确且正确的初始化,从而维持预期的安全状态。

MITRE CWE 官方描述
CWE:CWE-665 Improper Initialization(初始化不当) 英文:产品未初始化或错误地初始化(incorrectly initializes)了某个资源,这可能导致该资源在被访问或使用时处于意外状态。 当相关资源预期具有某些属性或值时(例如,用于确定用户是否已通过身份验证的变量),这可能会带来安全影响。
常见影响 (3)
Confidentiality Read Memory, Read Application Data
When reusing a resource such as memory or a program variable, the original contents of that resource may not be cleared before it is sent to an untrusted party.
Access Control Bypass Protection Mechanism
If security-critical decisions rely on a variable having a "0" or equivalent value, and the programming language performs this initialization on behalf of the programmer, then a bypass of security may occur.
Availability DoS: Crash, Exit, or Restart
The uninitialized data may contain values that cause program flow to change in ways that the programmer did not intend. For example, if an uninitialized variable is used as an array index in C, then its previous contents may produce an index that is outside the range of the array, possibly causing a…
缓解措施 (5)
Requirements Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, in Java, if the programmer does not explicitly initialize a variable, then the code could produce a compile-time error (if the variable is local) or automatically initialize the variable to the default value for the variable's type. In Perl, if explicit initializat…
Architecture and Design Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
Implementation Explicitly initialize all your variables and other data stores, either during declaration or just before the first usage.
Implementation Pay close attention to complex conditionals that affect initialization, since some conditions might not perform the initialization.
Implementation Avoid race conditions (CWE-362) during initialization routines.
代码示例 (2)
Here, a boolean initiailized field is consulted to ensure that initialization tasks are only completed once. However, the field is mistakenly set to true during static initialization, so the initialization code is never reached.
private boolean initialized = true; public void someMethod() { if (!initialized) { // perform initialization tasks ... initialized = true; }
Bad · Java
The following code intends to limit certain operations to the administrator only.
$username = GetCurrentUser(); $state = GetStateData($username); if (defined($state)) { $uid = ExtractUserID($state); } # do stuff if ($uid == 0) { DoAdminThings(); }
Bad · Perl
CVE ID 标题 CVSS 风险等级 Published
CVE-2021-3565 tpm2-tools 信任管理问题漏洞 — tpm2-tools 5.9 - 2021-06-04
CVE-2021-29609 Google TensorFlow 代码问题漏洞 — tensorflow 5.3 Medium 2021-05-14
CVE-2021-29610 Google TensorFlow缓冲区错误漏洞 — tensorflow 3.6 Low 2021-05-14
CVE-2021-29611 Google TensorFlow 输入验证错误漏洞 — tensorflow 3.6 Low 2021-05-14
CVE-2021-29613 Google TensorFlow 缓冲区错误漏洞 — tensorflow 6.3 Medium 2021-05-14
CVE-2021-29614 Google TensorFlow 缓冲区错误漏洞 — tensorflow 7.1 High 2021-05-14
CVE-2020-35508 Linux kernel 安全漏洞 — kernel 5.8 - 2021-03-26
CVE-2019-10196 Nathan Rajlich node-http-proxy-agent 安全漏洞 — nodejs-http-proxy-agent 9.1 - 2021-03-19
CVE-2020-8918 Google Go-TPM 安全漏洞 — google/go-tpm library 6.3 Medium 2020-08-11
CVE-2020-14347 X.Org X Server 信息泄露漏洞 — xorg-x11-server 5.5 Medium 2020-08-05
CVE-2020-4067 CoTURN 安全漏洞 — coturn 7.0 High 2020-06-29
CVE-2020-10725 DPDK 安全漏洞 — dpdk 7.7 High 2020-05-20
CVE-2019-15681 LibVNCServer 安全漏洞 — LibVNC 7.5 - 2019-10-29
CVE-2019-1840 Cisco Prime Network Registrar 安全漏洞 — Cisco Prime Network Registrar 7.5 - 2019-04-18
CVE-2019-1761 Cisco IOS和IOS XE 安全漏洞 — Cisco IOS and IOS XE Software 6.5 - 2019-03-28
CVE-2019-8277 UltraVNC 资源管理错误漏洞 — UltraVNC 7.5 - 2019-03-09
CVE-2019-8259 UltraVNC 资源管理错误漏洞 — UltraVNC 7.5 - 2019-03-05
CVE-2018-14647 Python 资源管理错误漏洞 — Python 6.2 - 2018-09-25
CVE-2018-10915 PostgreSQL SQL注入漏洞 — postgresql 7.5 - 2018-08-09
CVE-2018-14282 Foxit Reader和PhantomPDF 安全漏洞 — Foxit Reader 8.8 - 2018-07-31
CVE-2018-10901 Linux kernel 权限许可和访问控制问题漏洞 — kernel: 7.8 - 2018-07-26
CVE-2018-1175 Foxit Reader 信息泄露漏洞 — Foxit Reader 6.5 - 2018-05-17
CVE-2018-1174 Foxit Reader 信息泄露漏洞 — Foxit Reader 6.5 - 2018-05-17
CVE-2018-10484 Foxit Reader 安全漏洞 — Foxit Reader 8.8 - 2018-05-17
CVE-2018-1118 Linux kernel 信息泄露漏洞 — vhost 5.5 - 2018-05-10
CVE-2016-9594 Haxx curl 安全漏洞 — curl 8.1 - 2018-04-23

CWE-665(初始化不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 86 条 CVE 漏洞。