Technical impact
The affected function cgiWanCfg in the /wancfg.cmd CGI file of the D-Link DSL‑2640B router processes the ifname argument without proper validation. An attacker can supply a crafted value that causes the operating system to execute arbitrary shell commands. This results in complete compromise of the device, allowing the attacker to exfiltrate sensitive data, disrupt network services, or install persistent footholds. The vulnerability is a classic command injection flaw (CWE-77) that, when combined with the ability to invoke shell execution (CWE-78), enables remote code execution. Both confidentiality and integrity of the router’s configuration and the devices behind it are at risk, and availability can be affected if the device is turned off or re‑loaded with malicious firmware.
Affected Systems
Firmware 3.0.6.0.41 of the D-Link DSL‑2640B home router is affected. No other product or version information is known from the advisory.
Risk and Exploitability
The CVSS score of 10 classifies this flaw as critical. The EPSS score is not available, but the vulnerability has been publicly disclosed and is likely exploitable. The KEV catalog lists it as not listed, indicating no confirmed active exploitation yet. The attack can be launched remotely by sending a specially crafted HTTP request to the /wancfg.cmd endpoint, and authentication is not required as the flaw exists in the parameter handling layer. Consequently the risk remains high due to the sheer power of remote command execution and the lack of a mitigating authentication barrier.