Katalog CWE

CWE-456 · Słabość

Missing Initialization of a Variable

Abstrakcja
Wariant
Status
Szkic
Dodano
19 lipca 2006
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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

Skutki

  • 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.

Zapobieganie

  • Implementation · Attack Surface Reduction

    Ensure that critical variables are initialized before first use [REF-1485].

  • Requirements · Language Selection

    Choose a language that is not susceptible to these issues.

Przykłady podatności

Słabość nadrzędna

Może prowadzić do

Kiedy powstaje

Dotyczy

Not Language-Specific

Uwagi

This weakness is a major factor in a number of resultant weaknesses, especially in web applications that allow global variable initialization (such as PHP) with libraries that can be directly requested.

It is highly likely that a large number of resultant weaknesses have missing initialization as a primary factor, but researcher reports generally do not provide this level of detail.

Źródła

  1. The Art of Software Security Assessment — Mark Dowd, John McDonald, Justin Schuh, Chapter 7, "Variable Initialization", Page 312, Addison Wesley, 2006
  2. Automated Source Code Reliability Measure (ASCRM) — Object Management Group (OMG), ASCRM-CWE-456, 2016
  3. Automated Source Code Security Measure (ASCSM) — Object Management Group (OMG), ASCSM-CWE-456, 2016
  4. uninitialized variable vulnerability - Problem with boolean variables that are forcibly initialized to false by the Java compiler — windshock, 2022
  5. The Java Language Specification, Java SE 7 Edition — James Gosling, Bill Joy, Guy Steele, Gilad Bracha, Alex Buckley, 2013
  6. D3FEND: D3-VI Variable Initialization — D3FEND

Wpis z katalogu CWE 4.20.