CWE-457: Use of Uninitialized Variable
271 CVEs have CWE-457 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 17.945%.
The code uses a variable that has not been initialized, leading to unpredictable or unintended results.
Child of CWE-908: Use of Uninitialized Resource
Mitigations
- Implementation: Ensure that critical variables are initialized before first use [REF-1485].
- Build and Compilation: Most compilers will complain about the use of uninitialized variables if warnings are turned on.
- Implementation Operation: When using a language that does not require explicit declaration of variables, run or compile the software in a mode that reports undeclared or unknown variables. This may indicate the presence of a typographic error in the variable's name.
- Requirements: Choose a language that is not susceptible to these issues.
- Architecture and Design: Mitigating technologies such as safe string libraries and container abstractions could be introduced.
Observed examples
- CVE-2019-15900: Chain: sscanf() call is used to check if a username and group exists, but the return value of sscanf() call is not checked (CWE-252), causing an uninitialized variable to be checked (CWE-457), returning success to allow authorization bypass for executing a privileged (CWE-863).
- CVE-2008-3688: Chain: A denial of service may be caused by an uninitialized variable (CWE-457) allowing an infinite loop (CWE-835) resulting from a connection to an unresponsive server.
- CVE-2008-0081: Uninitialized variable leads to code execution in popular desktop application.
- CVE-2007-4682: Crafted input triggers dereference of an uninitialized object pointer.
- CVE-2007-3468: Crafted audio file triggers crash when an uninitialized variable is used.
- CVE-2007-2728: Uninitialized random seed variable used.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-28731 | 2026-11-16 | MEDIUM | 6.5 | 0.357% | A memory corruption vulnerability exists in VideoLAN VLC 3.0.23. A specially crafted Interplay MVE file can trigger a condition that allows access to a… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-457'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-457'
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.
- 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).