7 vulnerabilities classified as CWE-456 (变量未经初始化). AI Chinese analysis included.
CWE-456 represents a critical initialization weakness where software fails to assign initial values to variables before their first use, leaving them populated with unpredictable memory contents. This oversight typically allows attackers to exploit undefined behavior by triggering code paths that read these uninitialized variables, potentially leading to information disclosure of sensitive kernel or heap data, or causing application crashes that facilitate denial-of-service attacks. In more severe scenarios, such as in C or C++ environments, this can result in arbitrary code execution if the uninitialized value influences control flow or pointer arithmetic. Developers prevent this vulnerability by rigorously initializing all variables at declaration, employing static analysis tools to detect uninitialized reads during the build process, and adopting secure coding standards that mandate explicit initialization for every variable scope, thereby ensuring deterministic program behavior and eliminating reliance on residual memory states.
void parse_data(char *untrusted_input){ int m, n, error; error = sscanf(untrusted_input, "%d:%d", &m, &n); if ( EOF == error ){ die("Did not specify integer value. Die evil hacker!\n"); } /* proceed assuming n and m are initialized correctly */ }123:private User user; public void someMethod() { // Do something interesting. ... // Throws NPE if user hasn't been properly initialized. String username = user.getName(); }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2024-9780 | Missing Initialization of a Variable in Wireshark — Wireshark | 7.8 | High | 2024-10-10 |
| CVE-2024-32878 | Use of Uninitialized Variable Vulnerability in llama.cpp — llama.cpp | 7.1 | High | 2024-04-26 |
| CVE-2023-20226 | Cisco IOS XE Software 安全漏洞 — Cisco IOS XE Software | 8.6 | High | 2023-09-27 |
| CVE-2021-40403 | Gerbv 安全漏洞 — Gerbv | 5.5 | - | 2022-02-04 |
| CVE-2021-34703 | Cisco IOS and IOS XE Software Link Layer Discovery Protocol Denial of Service Vulnerability — Cisco IOS | 6.8 | Medium | 2021-09-23 |
| CVE-2019-3836 | GnuTLS 缓冲区错误漏洞 — gnutls | 9.1 | - | 2019-04-01 |
| CVE-2018-14641 | Linux kernel 安全漏洞 — kernel | 5.9 | - | 2018-09-18 |
Vulnerabilities classified as CWE-456 (变量未经初始化) represent 7 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.