Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-665 (初始化不恰当) — Vulnerability Class 89

89 vulnerabilities classified as CWE-665 (初始化不恰当). AI Chinese analysis included.

CWE-665 represents a critical initialization weakness where software fails to properly set up a resource, leaving it in an unpredictable state upon access. This flaw is typically exploited when attackers leverage uninitialized variables, such as authentication flags or memory buffers, to bypass security controls or trigger undefined behavior. For instance, an uninitialized boolean flag might default to a permissive value, allowing unauthorized access without valid credentials. To mitigate this risk, developers must enforce strict initialization practices, ensuring all variables and resources are explicitly assigned safe default values before use. Implementing compiler warnings for uninitialized variables, conducting thorough code reviews, and adopting secure coding standards like OWASP guidelines further reduce the likelihood of this vulnerability. By guaranteeing that every resource starts in a known, secure state, organizations can prevent attackers from manipulating unexpected conditions to compromise system integrity.

MITRE CWE Description
The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used. This can have security implications when the associated resource is expected to have certain properties or values, such as a variable that determines whether a user has been authenticated or not.
Common Consequences (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…
Mitigations (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.
Examples (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 Title CVSS Severity Published
CVE-2026-101957 Junos OS and Junos OS Evolved: A remote BGP peer causes an rpd crash when long-lived graceful restart (LLGR) is used — Junos OS 7.5 High 2026-10-14
CVE-2026-93495 华硕特定主板物理内存读写漏洞 — Motherboard(PRIME Z390-A ) 7.0 High 2026-10-01
CVE-2026-57229 Suricata smtp/mime: incomplete state reset allows detection bypass — suricata 5.3 Medium 2026-09-18
CVE-2026-87616 Google Chrome 资源管理错误漏洞 — Chrome - - 2026-09-09
CVE-2026-78940 Google Chrome 资源管理错误漏洞 — Chrome - - 2026-08-25
CVE-2026-12233 Uninitialized mutex in TLS trusted-credential backend causes kernel NULL-deref DoS under contention — zephyr 5.9 Medium 2026-08-12
CVE-2026-54409 Ubiquiti UniFi Protect Application 资源管理错误漏洞 — UniFi Protect Application 7.5 High 2026-07-02
CVE-2026-54279 AIOHTTP: Host-Only Cookies Become Domain Cookies After CookieJar Persistence — aiohttp - - 2026-06-22
CVE-2026-0940 Lenovo ThinkPad 安全漏洞 — ThinkPad T14 Gen 5 BIOS 6.7 Medium 2026-03-11
CVE-2026-26958 filippo.io/edwards25519 MultiScalarMult function produces invalid results or undefined behavior if receiver is not the identity — filippo.io/edwards25519 7.5AI High AI 2026-02-19
CVE-2025-48509 AMD多款产品 安全漏洞 — AMD EPYC™ 9004 Series Processors 2.3AI Low AI 2026-02-10
CVE-2025-14955 Open5GS PFCP handler.c ogs_pfcp_handle_create_pdr initialization — Open5GS 3.7 Low 2025-12-19
CVE-2025-12902 Solidigm DC 安全漏洞 — D5-P5316, D5-P5430, D7-P5520/D7-P5620, D5-P5336 4.4 Medium 2025-11-07
CVE-2024-36331 AMD Embedded Processors和AMD Server Processor 安全漏洞 — AMD EPYC™ 9004 Series Processors 3.2 Low 2025-09-06
CVE-2025-22834 ThirdPartyVideo SetVariable Vulnerability — AptioV 4.2 Medium 2025-08-12
CVE-2025-2149 PyTorch Quantized Sigmoid Module nnq_Sigmoid initialization — PyTorch 2.5 Low 2025-03-10
CVE-2024-11158 Rockwell Automation Arena® Uninitialized Vulnerability — Arena® 7.8 - 2024-12-05
CVE-2024-54129 Improper Initialization of `imc` Scheme Leading to `SIGABRT` in ION-DTN BPv7 — ION-DTN 5.3 - 2024-12-05
CVE-2024-45289 Unbounded allocation in ctl(4) CAM Target Layer — FreeBSD 9.1AI Critical AI 2024-11-12
CVE-2023-32467 Dell Edge Gateway 安全漏洞 — PowerSwitch Z9664F-ON BIOS 5.7 Medium 2024-07-10
CVE-2024-39864 Apache CloudStack: Integration API service uses dynamic port when disabled — Apache CloudStack 9.1 - 2024-07-05
CVE-2024-0089 CVE — GPU display driver, vGPU software, and Cloud Gaming 7.8 High 2024-06-13
CVE-2023-27325 Parallels Desktop Updater Improper Initialization Local Privilege Escalation Vulnerability — Desktop 7.8 - 2024-05-03
CVE-2023-27324 Parallels Desktop Updater Improper Initialization Local Privilege Escalation Vulnerability — Desktop 7.8 - 2024-05-03
CVE-2023-27322 Parallels Desktop Service Improper Initialization Local Privilege Escalation Vulnerability — Desktop 7.8AI High AI 2024-05-03
CVE-2023-4503 Eap-galleon: custom provisioning creates unsecured http-invoker — EAP 7.4.14 6.8 Medium 2024-02-06
CVE-2023-1719 Bitrix24 Insecure Global Variable Extraction — Bitrix24 7.5 High 2023-11-01
CVE-2021-33638 Run copy with container in a malicious directory may cause container escaping — iSulad 8.4 High 2023-10-29
CVE-2021-33637 Export container in a malicious directory may cause process to be hijacked — iSulad 8.4 High 2023-10-29
CVE-2021-33636 Load malicious images may cause process to be hijacked — iSulad 8.4 High 2023-10-29

Vulnerabilities classified as CWE-665 (初始化不恰当) represent 89 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.