1. CVE archive
  2. Vulnerability types
  3. CWE-563
CWE-563 · #755 most frequent type in the archive

Assignment to Variable without Use

The variable's value is assigned but never used, i.e., is a dead store. That is, after the assignment, the variable is either assigned another value or goes out of scope.

Part of: CWE-1164 · Irrelevant Code

1CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Jun 14, 2024latest published

What it is

The variable's value is assigned but never used, i.e., is a dead store. That is, after the assignment, the variable is either assigned another value or goes out of scope.

Impact on systems

ScopeImpact
Other Quality Degradation, Varies by Context
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.

How to prevent it

Implementation Remove unused variables from the code.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-563 CVEs

1 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.