Cyber Resilience

CWE · MITRE source

CWE-457Use of Uninitialized Variable

Abstraction: Variant · CVEs in our corpus: 234

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.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SA-11 Developer Testing and Evaluation
  • SA-8 Security and Privacy Engineering Principles
  • SA-15 Development Process, Standards, and Tools
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

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 8.59.80.17942021-12-22
CVE-2025-5777 KEV 8.57.50.99962025-06-17
CVE-2009-0901 8.38.80.36612009-07-29
CVE-2022-21217 7.59.80.01212022-01-28
CVE-2024-32611 7.59.80.00952024-05-14
CVE-2024-47540 7.59.80.01002024-12-12
CVE-2025-54874 7.49.80.00642025-08-05
CVE-2022-40510 7.39.80.00432023-08-08
CVE-2024-10934 7.39.80.00442024-11-15
CVE-2025-53644 7.39.80.00372025-07-17
CVE-2026-6748 7.39.80.00402026-04-21
CVE-2023-31275 6.98.80.01692023-11-27
CVE-2026-2806 6.89.10.00392026-02-24
CVE-2024-6990 6.78.80.00922024-08-01
CVE-2026-144056.79.60.00312026-07-01
CVE-2026-138256.58.80.00402026-06-30
CVE-2026-151326.58.80.00332026-07-08
CVE-2020-27124 6.48.60.00882024-11-18
CVE-2021-31435 6.37.80.02762021-04-29
CVE-2025-5749 6.38.80.00172025-06-06
CVE-2025-20271 6.38.60.00502025-06-18
CVE-2011-0539 6.27.50.01812011-02-10
CVE-2021-46566 6.27.80.02042022-02-18
CVE-2021-46570 6.27.80.02112022-02-18
CVE-2021-46617 6.27.80.02002022-02-18