Skip to main content

CWE-456: Missing Initialization of a Variable

VariantDraft

The product does not initialize critical variables, which causes the execution environment to use unexpected values.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-456: Missing Initialization of a Variable?+

CWE-456: Missing Initialization of a Variable is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product does not initialize critical variables, which causes the execution environment to use unexpected values.

What are the security consequences of Missing Initialization of a Variable?+

If exploited, CWE-456 (Missing Initialization of a Variable) it can compromise Integrity and Other, leading to outcomes such as Unexpected State, Quality Degradation and Varies by Context.

How do you prevent or mitigate Missing Initialization of a Variable?+

Recommended mitigations for CWE-456 include: Choose a language that is not susceptible to these issues.

Which programming languages are affected by Missing Initialization of a Variable?+

CWE-456 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Missing Initialization of a Variable?+

MITRE documents real CVEs mapped to CWE-456, including CVE-2020-6078, CVE-2019-3836, CVE-2018-14641, CVE-2009-2692 and CVE-2020-20739. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-456 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More