CWE-561: Dead Code
The product contains dead code, which can never be executed.
Last updated
Overview
As originally described in CWE before CWE 5.0, "dead code is code that can never be executed in a running program. The surrounding code makes it impossible for a section of code to ever be executed." This term might be defined differently by some users.
Real-world CVEs
10 recorded CVEs are caused by CWE-561 (Dead Code). The highest-severity and most recent are shown first. 1 new CWE-561 CVE has been recorded so far in 2026 (1 in 2025).
- CVE-2025-34205
Vasion Print (formerly PrinterLogic) Dangerous PHP Dead Code Enables RCE
Critical · CVSS 9.3 · EPSS 77th2025-09-19 - CVE-2018-16543
ghostscript: gssetresolution and gsgetresolution memory corruption (699670)
High · CVSS 7.8 · EPSS 70th2018-09-05 - CVE-2024-8300
Malicious Code Execution Vulnerability in GENESIS64 and ICONICS Suite