CWE-456: Missing Initialization of a Variable
7 CVEs have CWE-456 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 3.429%.
The product does not initialize critical variables.
Child of CWE-909: Missing Initialization of Resource
Mitigations
- Implementation: Ensure that critical variables are initialized before first use [REF-1485].
- Requirements: Choose a language that is not susceptible to these issues.
Observed examples
- CVE-2020-6078: Chain: The return value of a function returning a pointer is not checked for success (CWE-252) resulting in the later use of an uninitialized variable (CWE-456) and a null pointer dereference (CWE-476)
- CVE-2019-3836: Chain: secure communications library does not initialize a local variable for a data structure (CWE-456), leading to access of an uninitialized pointer (CWE-824).
- CVE-2018-14641: Chain: C union member is not initialized (CWE-456), leading to access of invalid pointer (CWE-824)
- CVE-2009-2692: Chain: Use of an unimplemented network socket operation pointing to an uninitialized handler function (CWE-456) causes a crash because of a null pointer dereference (CWE-476).
- CVE-2020-20739: A variable that has its value set in a conditional statement is sometimes used when the conditional fails, sometimes causing data leakage
- CVE-2005-2978: Product uses uninitialized variables for size and index, leading to resultant buffer overflow.
- CVE-2005-2109: Internal variable in PHP application is not initialized, allowing external modification.
- CVE-2005-2193: Array variable not initialized in PHP application, leading to resultant SQL injection.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-456'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-456'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).