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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

111 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, OtherOther
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, OtherOther
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)
ImplementationEnsure that critical variables are initialized before first use [REF-1485].
Build and CompilationMost compilers will complain about the use of uninitialized variables if warnings are turned on.
Implementation, OperationWhen 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.
RequirementsChoose a language that is not susceptible to these issues.
Architecture and DesignMitigating 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 IDTitleCVSSSeverityPublished
CVE-2026-8020 Google Chrome 安全漏洞 — Chrome 6.5AIMediumAI2026-05-06
CVE-2026-7982 Google Chrome 安全漏洞 — Chrome 6.5 -2026-05-06
CVE-2026-7972 Google Chrome 安全漏洞 — Chrome 4.3AIMediumAI2026-05-06
CVE-2026-7955 Google Chrome 安全漏洞 — Chrome 4.3 -2026-05-06
CVE-2026-7924 Google Chrome 安全漏洞 — Chrome 6.5 -2026-05-06
CVE-2026-6311 Google Chrome 安全漏洞 — Chrome 9.6 -2026-04-15
CVE-2026-5888 Google Chrome 安全漏洞 — Chrome 6.5AIMediumAI2026-04-08
CVE-2026-4147 Stack memory disclosure in filemd5 command — MongoDB Server 6.5 Medium2026-03-17
CVE-2026-20051 Cisco Nexus 3600-R and 9500-R Series Switching Platforms Layer 2 Loop Denial of Service Vulnerability — Cisco NX-OS Software 7.4 High2026-02-25
CVE-2026-1333 Use of Uninitialized Variable vulnerability affecting the EPRT file reading procedure in SOLIDWORKS eDrawings from Release SOLIDWORKS Desktop 2025 through Release SOLIDWORKS Desktop 2026 — SOLIDWORKS eDrawings 7.8 High2026-02-16
CVE-2025-58466 QTS, QuTS hero — QTS 7.2AIHighAI2026-02-11
CVE-2025-29952 AMD Amd Epyc™ Embedded Processors和AMD EPYC 9005 Series 安全漏洞 — AMD EPYC™ 9005 Series Processors 6.7AIMediumAI2026-02-10
CVE-2026-22188 Panda3D <= 1.10.16 Deploy-Stub Stack Exhaustion via Unbounded alloca() — Panda3D 7.5 -2026-01-07
CVE-2025-47348 Use of Uninitialized Variable in HLOS — Snapdragon 7.8 High2026-01-06
CVE-2025-20784 MediaTek chipsets 安全漏洞 — MediaTek chipset 6.7 -2026-01-06
CVE-2025-10021 Open Design Alliance Drawings SDK 安全漏洞 — ODA Drawings SDK - All Versions < 2026.12 7.8AIHighAI2025-12-22
CVE-2025-20771 MediaTek Chipsets 安全漏洞 — MT2718, MT6739, MT6761, MT6765, MT6768, MT6781, MT6789, MT6833, MT6835, MT6853, MT6855, MT6877, MT6878, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6899, MT6983, MT6985, MT6989, MT6991, MT8196, MT8676, MT8678, MT8792, MT8793 6.7AIMediumAI2025-12-02
CVE-2025-20766 MediaTek Chipsets 安全漏洞 — MT2718, MT6739, MT6761, MT6765, MT6768, MT6781, MT6789, MT6833, MT6835, MT6853, MT6855, MT6877, MT6878, MT6879, MT6883, MT6885, MT6886, MT6889, MT6893, MT6895, MT6897, MT6899, MT6983, MT6985, MT6989, MT6991, MT8196, MT8676, MT8678, MT8792, MT8793 6.7AIMediumAI2025-12-02
CVE-2025-64181 OpenEXR Makes Use of Uninitialized Memory — openexr 9.1 -2025-11-10
CVE-2025-58071 BIG-IP IPSec vulnerability — BIG-IP 7.5 High2025-10-15
CVE-2025-7984 Ashlar-Vellum Cobalt AR File Parsing Uninitialized Variable Remote Code Execution Vulnerability — Cobalt 7.8AIHighAI2025-09-17
CVE-2025-7981 Ashlar-Vellum Graphite VC6 File Parsing Uninitialized Variable Remote Code Execution Vulnerability — Graphite 7.8AIHighAI2025-09-17
CVE-2025-7978 Ashlar-Vellum Graphite VC6 File Parsing Uninitialized Variable Remote Code Execution Vulnerability — Graphite 7.8AIHighAI2025-09-17
CVE-2025-59348 Dragonfly incorrectly handles a task structure’s usedTraffic field — dragonfly 7.5AIHighAI2025-09-17
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 High2025-09-17
CVE-2023-31326 AMD多款产品 安全漏洞 — AMD Ryzen™ 5000 Series Mobile Processors with Radeon™ Graphics 2.8 Low2025-09-06
CVE-2025-5047 DGN File Parsing Uninitialized Variable Vulnerability — AutoCAD 7.8 High2025-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.8AIHighAI2025-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 High2025-07-15

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