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: 09 May 2026 03:25 UTC
NIST 800-53 r5 controls that address this weakness (0)AI
| 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-2025-5777 KEV | 7.5 | 7.5 | 0.6667 | 2025-06-17 |
CVE-2021-40418 | 2.0 | 9.8 | 0.0132 | 2021-12-22 |
CVE-2022-21217 | 2.0 | 9.8 | 0.0044 | 2022-01-28 |
CVE-2022-40510 | 2.0 | 9.8 | 0.0015 | 2023-08-08 |
CVE-2024-32611 | 2.0 | 9.8 | 0.0034 | 2024-05-14 |
CVE-2024-10934 | 2.0 | 9.8 | 0.0027 | 2024-11-15 |
CVE-2024-47540 | 2.0 | 9.8 | 0.0131 | 2024-12-12 |
CVE-2025-53644 | 2.0 | 9.8 | 0.0011 | 2025-07-17 |
CVE-2025-54874 | 2.0 | 9.8 | 0.0011 | 2025-08-05 |
CVE-2026-6748 | 2.0 | 9.8 | 0.0006 | 2026-04-21 |
CVE-2023-31275 | 1.8 | 8.8 | 0.0097 | 2023-11-27 |
CVE-2024-6990 | 1.8 | 8.8 | 0.0034 | 2024-08-01 |
CVE-2020-27124 | 1.8 | 8.6 | 0.0177 | 2024-11-18 |
CVE-2025-5749 | 1.8 | 8.8 | 0.0004 | 2025-06-06 |
CVE-2026-2806 | 1.8 | 9.1 | 0.0006 | 2026-02-24 |
CVE-2019-11038 | 1.7 | 5.3 | 0.1054 | 2019-06-19 |
CVE-2022-28319 | 1.7 | 7.8 | 0.0201 | 2023-03-29 |
CVE-2022-28320 | 1.7 | 7.8 | 0.0201 | 2023-03-29 |
CVE-2024-23137 | 1.7 | 7.8 | 0.0282 | 2024-02-22 |
CVE-2023-42062 | 1.7 | 7.8 | 0.0200 | 2024-05-03 |
CVE-2021-34953 | 1.7 | 7.8 | 0.0200 | 2024-05-07 |
CVE-2024-33021 | 1.7 | 8.4 | 0.0015 | 2024-08-05 |
CVE-2024-7868 | 1.7 | 8.2 | 0.0024 | 2024-08-15 |
CVE-2025-20271 | 1.7 | 8.6 | 0.0017 | 2025-06-18 |
CVE-2026-6311 | 1.7 | 8.3 | 0.0003 | 2026-04-15 |