CWE · MITRE source
CWE-457Use of Uninitialized Variable
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.
Last updated: 22 August 2026 14:14 UTC
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls that address this weakness (0)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2021-40418 UPD | 8.5 | 9.8 | 0.1794 | 2021-12-22 |
CVE-2025-5777 KEV UPD | 8.5 | 7.5 | 0.9996 | 2025-06-17 |
CVE-2009-0901 UPD | 8.3 | 8.8 | 0.3661 | 2009-07-29 |
CVE-2022-21217 UPD | 7.5 | 9.8 | 0.0121 | 2022-01-28 |
CVE-2024-32611 UPD | 7.5 | 9.8 | 0.0095 | 2024-05-14 |
CVE-2024-47540 UPD | 7.5 | 9.8 | 0.0100 | 2024-12-12 |
CVE-2025-54874 UPD | 7.4 | 9.8 | 0.0064 | 2025-08-05 |
CVE-2022-40510 UPD | 7.3 | 9.8 | 0.0043 | 2023-08-08 |
CVE-2024-10934 UPD | 7.3 | 9.8 | 0.0044 | 2024-11-15 |
CVE-2025-53644 UPD | 7.3 | 9.8 | 0.0037 | 2025-07-17 |
CVE-2026-6748 UPD | 7.3 | 9.8 | 0.0040 | 2026-04-21 |
CVE-2023-31275 UPD | 6.9 | 8.8 | 0.0169 | 2023-11-27 |
CVE-2026-2806 UPD | 6.8 | 9.1 | 0.0039 | 2026-02-24 |
CVE-2024-6990 UPD | 6.7 | 8.8 | 0.0092 | 2024-08-01 |
CVE-2026-14405 | 6.7 | 9.6 | 0.0031 | 2026-07-01 |
CVE-2026-13825 | 6.5 | 8.8 | 0.0040 | 2026-06-30 |
CVE-2026-15132 | 6.5 | 8.8 | 0.0033 | 2026-07-08 |
CVE-2020-27124 UPD | 6.4 | 8.6 | 0.0088 | 2024-11-18 |
CVE-2021-31435 UPD | 6.3 | 7.8 | 0.0276 | 2021-04-29 |
CVE-2025-5749 UPD | 6.3 | 8.8 | 0.0017 | 2025-06-06 |
CVE-2025-20271 UPD | 6.3 | 8.6 | 0.0050 | 2025-06-18 |
CVE-2011-0539 UPD | 6.2 | 7.5 | 0.0181 | 2011-02-10 |
CVE-2021-46566 UPD | 6.2 | 7.8 | 0.0204 | 2022-02-18 |
CVE-2021-46570 UPD | 6.2 | 7.8 | 0.0211 | 2022-02-18 |
CVE-2021-46617 UPD | 6.2 | 7.8 | 0.0200 | 2022-02-18 |