CWE-563: Assignment to Variable without Use
Also known as: Unused Variable
The variable's value is assigned but never used, making it a dead store.
Last updated
Overview
After the assignment, the variable is either assigned another value or goes out of scope. It is likely that the variable is simply vestigial, but it is also possible that the unused variable points out a bug.
Real-world CVEs
2 recorded CVEs are caused by CWE-563 (Assignment to Variable without Use). The highest-severity and most recent are shown first.
Common consequences
What can happen when CWE-563 is exploited.
Quality Degradation, Varies by Context
Affects: Other
This weakness could be an indication of a bug in the program or a deprecated variable that was not removed and is an indication of poor quality. This could lead to further bugs and the introduction of weaknesses.