Description
The software does not initialize critical variables, which causes the execution environment to use unexpected values.
Modes of Introduction:
– Implementation
Related Weaknesses
CWE-909
CWE-665
CWE-665
CWE-89
CWE-120
CWE-98
CWE-457
Consequences
Integrity, Other: Unexpected State, Quality Degradation, Varies by Context
The uninitialized data may be invalid, causing logic errors within the program. In some cases, this could result in a security problem.
Potential Mitigations
Phase: Implementation
Description:
Check that critical variables are initialized.
Phase: Testing
Description:
Use a static analysis tool to spot non-initialized variables.
CVE References
- 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-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.
More Stories
The Most Dangerous Vulnerabilities in Apache Tomcat and How to Protect Against Them
Apache Tomcat is an open-source web server and servlet container that is widely used in enterprise environments to run Java...
ZDI-CAN-18333: A Critical Zero-Day Vulnerability in Microsoft Windows
Zero-day vulnerabilities are a serious threat to cybersecurity, as they can be exploited by malicious actors to gain unauthorized access...
CWE-669 – Incorrect Resource Transfer Between Spheres
Description The product does not properly transfer a resource/behavior to another sphere, or improperly imports a resource/behavior from another sphere,...
CWE-67 – Improper Handling of Windows Device Names
Description The software constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a...
CWE-670 – Always-Incorrect Control Flow Implementation
Description The code contains a control flow path that does not reflect the algorithm that the path is intended to...
CWE-671 – Lack of Administrator Control over Security
Description The product uses security features in a way that prevents the product's administrator from tailoring security settings to reflect...