Security Resilience

CWE · MITRE source

CWE-457Use of Uninitialized Variable

Abstraction: Variant · CVEs in our corpus: 259

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: 14 October 2026 20:41 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 PROPOSED for this weakness (0)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

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-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.01012024-12-12
CVE-2025-54874 7.49.80.00632025-08-05
CVE-2026-6748 7.49.80.00602026-04-21
CVE-2022-40510 7.39.80.00432023-08-08
CVE-2024-10934 7.39.80.00442024-11-15
CVE-2025-53644 7.39.80.00412025-07-17
CVE-2023-31275 6.98.80.01692023-11-27
CVE-2026-2806 6.99.10.00572026-02-24
CVE-2026-144056.89.60.00502026-07-01
CVE-2026-789356.89.60.00502026-08-25
CVE-2026-846396.89.10.00322026-09-01
CVE-2024-6990 6.78.80.00922024-08-01
CVE-2026-151326.68.80.00452026-07-08
CVE-2026-138256.58.80.00332026-06-30
CVE-2020-27124 6.48.60.00922024-11-18
CVE-2025-5749 6.48.80.00212025-06-06
CVE-2026-92052 6.48.80.00242026-09-15
CVE-2026-552806.48.80.00232026-10-05
CVE-2021-31435 6.37.80.02762021-04-29
CVE-2025-20271 6.38.60.00542025-06-18
CVE-2011-0539 6.27.50.01812011-02-10