CWE-1164: Irrelevant Code
The product contains code that is not essential for execution, i.e. makes no state changes and has no side effects that alter data or control flow, such that removal of the code would have no impact to functionality or correctness.
Last updated
Overview
Irrelevant code could include dead code, initialization that is not used, empty blocks, code that could be entirely removed due to optimization, etc.
Real-world CVEs
1 recorded CVEs are caused by CWE-1164 (Irrelevant Code). The highest-severity and most recent are shown first. 0 new CWE-1164 CVEs have been recorded so far in 2026 (1 in 2025).
Common consequences
What can happen when CWE-1164 is exploited.
Reduce Reliability
Affects: Other
Reduce Performance
Affects: Other
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.