What it is
The product contains dead code, which can never be executed.
Impact on systems
| Scope | Impact |
|---|---|
| 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
Source: MITRE CWE catalog · Official entry on the MITRE website