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

Dead Code

The product contains dead code, which can never be executed.

Part of: CWE-1164 · Irrelevant Code

8CVEs of this type in the archive
1critical (CVSS ≥ 9)
1high severity (7–8.9)
May 21, 2026latest published

What it is

The product contains dead code, which can never be executed.

Impact on systems

ScopeImpact
Other Quality Degradation
Dead code that results from code that can never be executed is an indication of problems with the source code that needs to be fixed and is an indication of poor quality.
Other Reduce Maintainability
Other Varies by Context, Execute Unauthorized Code or Commands
In some cases, dead code can be reachable or exploitable by attackers after they exploit another weakness or vulnerability that can access the code. For example, some buffer overflow exploits could modify addresses to point to locations that contain dead code.

How to prevent it

Implementation Remove dead code before deploying the application.

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

CWE-561 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20211
20223
20242
20251
20261

All CWE-561 CVEs

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