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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-908 (对未经初始化资源的使用) — Vulnerability Class 170

170 vulnerabilities classified as CWE-908 (对未经初始化资源的使用). AI Chinese analysis included.

CWE-908 represents a critical software weakness where an application accesses or utilizes a resource that has not been properly initialized. This flaw typically arises when developers fail to set default values or allocate necessary memory before first use, leading to unpredictable system behavior. Attackers often exploit this vulnerability by triggering specific code paths that expose uninitialized data, potentially causing application crashes, invalid memory access errors, or information disclosure of sensitive residual data from previous operations. To mitigate this risk, developers must enforce strict initialization protocols, ensuring all variables, pointers, and objects are explicitly assigned valid states before any read or write operations occur. Implementing comprehensive static analysis tools and rigorous code reviews further helps identify these gaps, ensuring robust resource management and preventing the execution of undefined logic that could compromise system stability or security.

MITRE CWE Description
The product uses or accesses a resource that has not been initialized. When a resource has not been properly initialized, the product may behave unexpectedly. This may lead to a crash or invalid memory access, but the consequences vary depending on the type of resource and how it is used within the product.
Common Consequences (2)
ConfidentialityRead 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.
AvailabilityDoS: Crash, Exit, or Restart
The uninitialized resource may contain values that cause program flow to change in ways that the programmer did not intend.
Mitigations (4)
ImplementationExplicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
ImplementationPay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
ImplementationAvoid race conditions (CWE-362) during initialization routines.
Build and CompilationRun or compile the product with settings that generate warnings about uninitialized variables or data.
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 IDTitleCVSSSeverityPublished
CVE-2024-11991 Uninitialized memory access in Motoko incremental garbage collector — Motoko 5.6 Medium2024-12-09
CVE-2024-49029 Microsoft Excel Remote Code Execution Vulnerability — Microsoft Office LTSC for Mac 2024 7.8 High2024-11-12
CVE-2024-8896 Autodesk AutoCAD DXF File Parsing Unitialized Variable Code Execution Vulnerability — AutoCAD 7.8 High2024-10-29
CVE-2024-43537 Windows Mobile Broadband Driver Denial of Service Vulnerability — Windows 10 Version 1809 6.5 Medium2024-10-08
CVE-2024-43502 Windows Kernel Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.1 High2024-10-08
CVE-2024-43458 Windows Networking Information Disclosure Vulnerability — Windows 10 Version 1607 7.7 High2024-09-10
CVE-2024-38260 Windows Remote Desktop Licensing Service Remote Code Execution Vulnerability — Windows Server 2008 R2 Service Pack 1 8.8 High2024-09-10
CVE-2024-38257 Microsoft AllJoyn API Information Disclosure Vulnerability — Windows 10 Version 1607 7.5 High2024-09-10
CVE-2024-38256 Windows Kernel-Mode Driver Information Disclosure Vulnerability — Windows 10 Version 1507 5.5 Medium2024-09-10
CVE-2024-38254 Windows Authentication Information Disclosure Vulnerability — Windows 10 Version 1507 5.5 Medium2024-09-10
CVE-2024-8654 MongoDB Server may access non-initialized region of memory leading to unexpected behaviour — MongoDB Server 5.0 Medium2024-09-10
CVE-2024-8178 Multiple issues in ctl(4) CAM Target Layer — FreeBSD 9.9 -2024-09-05
CVE-2024-38122 Microsoft Local Security Authority (LSA) Server Information Disclosure Vulnerability — Windows 10 Version 1809 5.5 Medium2024-08-13
CVE-2024-38118 Microsoft Local Security Authority (LSA) Server Information Disclosure Vulnerability — Windows 10 Version 1809 5.5 Medium2024-08-13
CVE-2024-38064 Windows TCP/IP Information Disclosure Vulnerability — Windows 10 Version 1809 7.5 High2024-07-09
CVE-2024-36503 Huawei 手机安全漏洞 — HarmonyOS 7.3 High2024-06-14
CVE-2021-35000 OpenBSD Kernel Multicast Routing Uninitialized Memory Information Disclosure Vulnerability — Kernel 5.5 -2024-05-07
CVE-2021-34999 OpenBSD Kernel Multicast Routing Uninitialized Memory Information Disclosure Vulnerability — Kernel 5.5 -2024-05-07
CVE-2024-26220 Windows Mobile Hotspot Information Disclosure Vulnerability — Windows 10 Version 1809 5.0 Medium2024-04-09
CVE-2024-26209 Microsoft Local Security Authority Subsystem Service Information Disclosure Vulnerability — Windows 10 Version 1809 5.5 Medium2024-04-09
CVE-2024-23314 BIG-IP HTTP/2 vulnerability — BIG-IP 7.5 High2024-02-14
CVE-2024-20694 Windows CoreMessaging Information Disclosure Vulnerability — Windows 10 Version 1809 5.5 Medium2024-01-09
CVE-2023-42797 Siemens CP-8031 安全漏洞 — CP-8031 MASTER MODULE 6.6 Medium2024-01-09
CVE-2023-36012 DHCP Server Service Information Disclosure Vulnerability — Windows Server 2019 5.3 Medium2023-12-12
CVE-2023-46100 Cert manager has a use of uninitialized resource vulnerability — OpenHarmony 6.2 Medium2023-11-20
CVE-2023-36398 Windows NTFS Information Disclosure Vulnerability — Windows 10 Version 1809 6.5 Medium2023-11-14
CVE-2023-38151 Microsoft Host Integration Server 2020 Remote Code Execution Vulnerability — Host Integration Server 2020 8.8 High2023-11-14
CVE-2023-45663 Disclosure of uninitialized memory in stbi__tga_load in stb_image — stb 5.3 Medium2023-10-20
CVE-2023-36567 Windows Deployment Services Information Disclosure Vulnerability — Windows 10 Version 1809 7.5 High2023-10-10
CVE-2023-36704 Windows Setup Files Cleanup Remote Code Execution Vulnerability — Windows 10 Version 1809 7.8 High2023-10-10

Vulnerabilities classified as CWE-908 (对未经初始化资源的使用) represent 170 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.