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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-457 (使用未经初始化的变量) — Vulnerability Class 207

207 vulnerabilities classified as CWE-457 (使用未经初始化的变量). AI Chinese analysis included.

CWE-457 represents a critical code quality weakness where software utilizes a variable before assigning it a defined value, resulting in unpredictable behavior or unintended execution paths. In languages like C and C++, uninitialized stack variables often retain residual data from previous operations, creating a source of non-deterministic state. Attackers typically exploit this by manipulating memory contents to influence program flow, potentially leading to information disclosure, privilege escalation, or denial of service through crashes. To mitigate this risk, developers must rigorously initialize all variables at the point of declaration or immediately before first use. Employing static analysis tools to detect uninitialized reads and adhering to strict coding standards that enforce explicit initialization practices are essential strategies for preventing this vulnerability and ensuring application stability and security.

MITRE CWE Description
The code uses a variable that has not been initialized, leading to unpredictable or unintended results. In some languages such as C and C++, stack variables are not initialized by default. They generally contain junk data with the contents of stack memory before the function was invoked. An attacker can sometimes control or read these contents. In other languages or conditions, a variable that is not explicitly initialized can be given a default value that has security implications, depending on the logic of the program. The presence of an uninitialized variable can sometimes indicate a typographic error in the code.
Common Consequences (2)
Availability, Integrity, Other Other
Initial variables usually contain junk, which can not be trusted for consistency. This can lead to denial of service conditions, or modify control flow in unexpected ways. In some cases, an attacker can "pre-initialize" the variable using previous actions, which might enable code execution. This can…
Authorization, Other Other
Strings that are not initialized are especially dangerous, since many functions expect a null at the end -- and only at the end -- of a string.
Mitigations (5)
Implementation Ensure that critical variables are initialized before first use [REF-1485].
Build and Compilation Most compilers will complain about the use of uninitialized variables if warnings are turned on.
Implementation, Operation When using a language that does not require explicit declaration of variables, run or compile the software in a mode that reports undeclared or unknown variables. This may indicate the presence of a typographic error in the variable's name.
Requirements Choose a language that is not susceptible to these issues.
Architecture and Design Mitigating technologies such as safe string libraries and container abstractions could be introduced.
Examples (2)
This code prints a greeting using information stored in a POST request:
if (isset($_POST['names'])) { $nameArray = $_POST['names']; } echo "Hello " . $nameArray['first'];
Bad · PHP
The following switch statement is intended to set the values of the variables aN and bN before they are used:
int aN, Bn; switch (ctl) { case -1: aN = 0; bN = 0; break; case 0: aN = i; bN = -i; break; case 1: aN = i + NEXT_SZ; bN = i - NEXT_SZ; break; default: aN = -1; aN = -1; break; } repaint(aN, bN);
Bad · C
CVE ID Title CVSS Severity Published
CVE-2025-9450 Use of Uninitialized Variable vulnerability affecting the JT file reading procedure in SOLIDWORKS eDrawings on Release SOLIDWORKS Desktop 2025 — SOLIDWORKS eDrawings 7.8 High 2025-09-17
CVE-2023-31326 AMD多款产品 安全漏洞 — AMD Ryzen™ 5000 Series Mobile Processors with Radeon™ Graphics 2.8 Low 2025-09-06
CVE-2025-5047 DGN File Parsing Uninitialized Variable Vulnerability — AutoCAD 7.8 High 2025-08-15
CVE-2025-54874 OpenJPEG allows OOB heap memory write in opj_jp2_read_header — openjpeg 8.1 - 2025-08-05
CVE-2025-53644 OpenCV contains a use after free buffer write due to an uninitialized pointer — opencv 8.8AI High AI 2025-07-17
CVE-2025-6974 Use of Uninitialized Variable vulnerability exists in the JT file reading procedure in SOLIDWORKS eDrawings on Release SOLIDWORKS Desktop 2025 — SOLIDWORKS eDrawings 7.8 High 2025-07-15
CVE-2025-2520 Dereferencing of an uninitialized pointer leads to denial of service. — C300 PCNT02 7.5 High 2025-07-10
CVE-2025-20271 Cisco Meraki MX and Z Series AnyConnect VPN with Client Certificate Authentication Denial of Service Vulnerability — Cisco Meraki MX Firmware 8.6 High 2025-06-18
CVE-2025-26383 Johnson Controls iSTAR Configuration Utility 安全漏洞 — iSTAR Configuration Utility (ICU) 5.5AI Medium AI 2025-06-11
CVE-2025-5749 WOLFBOX Level 2 EV Charger BLE Encryption Keys Uninitialized Variable Authentication Bypass Vulnerability — Level 2 EV Charger 8.8AI High AI 2025-06-06
CVE-2025-40575 Siemens SCALANCE LPE9403 安全漏洞 — SCALANCE LPE9403 4.3 Medium 2025-05-13
CVE-2025-2287 Local Code Execution Vulnerability in Arena® — Arena® 8.6AI High AI 2025-04-08
CVE-2025-2286 Local Code Execution Vulnerability in Arena® — Arena® 8.6AI High AI 2025-04-08
CVE-2025-2285 Local Code Execution Vulnerability in Arena® — Arena® 8.6AI High AI 2025-04-08
CVE-2025-20212 Cisco Meraki Z和Cisco Meraki MX 安全漏洞 — Cisco Meraki MX Firmware 7.7 High 2025-04-02
CVE-2025-1650 CATPRODUCT File Parsing Uninitialized Variable Vulnerability — AutoCAD 7.8 High 2025-03-13
CVE-2025-1649 CATPRODUCT File Parsing Uninitialized Variable Vulnerability — AutoCAD 7.8 High 2025-03-13
CVE-2025-1427 CATPRODUCT File Parsing Uninitialized Variable Vulnerability — AutoCAD 7.8 High 2025-03-13
CVE-2025-2014 Ashlar-Vellum Cobalt VS File Parsing Use of Uninitialized Variable Remote Code Execution Vulnerability — Cobalt 7.8 - 2025-03-11
CVE-2025-2024 Trimble SketchUp SKP File Parsing Uninitialized Variable Remote Code Execution Vulnerability — SketchUp 7.8 - 2025-03-07
CVE-2025-20638 MediaTek Chipsets 安全漏洞 — MT6739, MT6761, MT6765, MT6768, MT6771, MT6779, MT6781, MT6785, MT6833, MT6853, MT6873, MT6877, MT6885, MT6893, MT8167, MT8167S, MT8175, MT8185, MT8195, MT8321, MT8362A, MT8365, MT8385, MT8395, MT8666, MT8667, MT8673, MT8675, MT8678, MT8765, MT8766, MT8768, MT8771, MT8775, MT8781, MT8786, MT8788, MT8789, MT8791T, MT8795T, MT8797, MT8798, MT8893 4.0 - 2025-02-03
CVE-2024-56446 Huawei HarmonyOS 安全漏洞 — HarmonyOS 4.0 Medium 2025-01-08
CVE-2024-47540 GHSL-2024-197: GStreamer uses uninitialized stack memory in Matroska/WebM demuxer — gstreamer 7.8 - 2024-12-11
CVE-2024-8842 PDF-XChange Editor RTF File Parsing Uninitialized Variable Remote Code Execution Vulnerability — PDF-XChange Editor 7.8 - 2024-11-22
CVE-2024-9717 Trimble SketchUp Viewer SKP File Parsing Uninitialized Variable Remote Code Execution Vulnerability — SketchUp Viewer 7.8 - 2024-11-22
CVE-2020-27124 Cisco Adaptive Security Appliance Software SSL/TLS Denial of Service Vulnerability — Cisco Adaptive Security Appliance (ASA) Software 8.6 High 2024-11-18
CVE-2024-47966 Use of Uninitialized Variable vulnerability in Delta Electronics CNCSoft-G2 — CNCSoft-G2 8.8AI High AI 2024-10-10
CVE-2024-9355 Golang-fips: golang fips zeroed buffer 6.5 Medium 2024-10-01
CVE-2024-7022 Google Chrome 安全漏洞 — Chrome 8.8AI High AI 2024-09-23
CVE-2024-45618 Libopensc: uninitialized values after incorrect or missing checking return values of functions in pkcs15init 3.9 Low 2024-09-03

Vulnerabilities classified as CWE-457 (使用未经初始化的变量) represent 207 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.