CWE-563: Assignment to Variable without Use
Filter
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.
What the weakness is: CWE-563 at MITRE. All weaknesses
Ask an AI about CWE-563
Show the prompt
Explain CWE-563: Assignment to Variable without Use and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/563.html and https://cve.bz/cve/cwe/563?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
- 2.9CVE-2024-30120EPSS 0.2%
HCL DRYiCE Optibot Reset Station is impacted by an Unused Parameter in the web application.
- 7.7CVE-2021-1620EPSS 1.1%
A vulnerability in the Internet Key Exchange Version 2 (IKEv2) support for the AutoReconnect feature of Cisco IOS Software and Cisco IOS XE Software could allow an authenticated, remote attacker to exhaust the free IP addresses from the as…