7 vulnerabilities classified as CWE-561 (死代码). AI Chinese analysis included.
CWE-561 represents a software weakness characterized by the presence of dead code, which consists of instructions that can never be executed during normal program operation. While typically not directly exploitable for immediate remote code execution, this weakness creates significant security risks by obscuring the actual logic flow and increasing the attack surface. Attackers may exploit dead code to hide malicious payloads, confuse security analysis tools, or leverage residual functionality if the surrounding conditions change unexpectedly. Developers avoid this issue by employing rigorous static code analysis tools to identify unreachable branches and implementing strict code review processes that enforce modular design. Regular refactoring and the removal of unused functions further ensure that the codebase remains clean, maintainable, and free from potential security blind spots caused by obsolete or inaccessible logic.
String s = null; if (b) { s = "Yes"; return; } if (s != null) { Dead(); }public class DoubleDead { private void doTweedledee() { doTweedledumb(); } private void doTweedledumb() { doTweedledee(); } public static void main(String[] args) { System.out.println("running DoubleDead"); } }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2025-34205 | Vasion Print (formerly PrinterLogic) Dangerous PHP Dead Code Enables RCE — Print Virtual Appliance Host | 9.8 | - | 2025-09-19 |
| CVE-2024-8300 | Malicious Code Execution Vulnerability in GENESIS64 and ICONICS Suite — GENESIS64 | 7.0 | High | 2024-11-28 |
| CVE-2024-32634 | Logically dead code — Falcon | 6.1 | Medium | 2024-04-16 |
| CVE-2022-33726 | SAMSUNG Mobile devices 安全漏洞 — Samsung Mobile Devices | 3.3 | Low | 2022-08-05 |
| CVE-2022-33685 | SAMSUNG Mobile devices 安全漏洞 — Samsung Mobile Devices | 4.0 | Medium | 2022-07-11 |
| CVE-2022-30748 | Samsung Members 安全漏洞 — Samsung Members | 4.0 | Medium | 2022-06-07 |
| CVE-2021-25398 | Bixby Voice 安全漏洞 — Bixby Voice | 3.3 | - | 2021-06-11 |
Vulnerabilities classified as CWE-561 (死代码) represent 7 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.