Summary
An OS command injection vulnerability (CWE-78/CWE-77) has been found in the D-Link DSL-2640B router, firmware version 3.0.6.0.41, in the cgiWanCfg function of /wancfg.cmd. Manipulating the ifname argument allows an attacker to execute arbitrary system commands on the device.
Per the CVSS vector (score 10.0, critical), the attack is network-based, low complexity, requires no authentication and no user interaction, and its impact extends beyond the vulnerable component (changed scope). Successful exploitation results in full compromise of confidentiality, integrity and availability of the device. A proof-of-concept exploit is publicly disclosed, and the EPSS score is about 2.5% (85th percentile). The vulnerability is not currently listed in the CISA KEV catalog.
Who is affected
Organizations and users operating D-Link DSL-2640B routers running firmware 3.0.6.0.41, especially where the web interface is reachable from the internet or untrusted networks.
What to do
- No fixed version is listed in the record – check D-Link's official advisory and support pages (https://www.dlink.com/) for patch availability or the support status of this model.
- Inventory all DSL-2640B devices and verify whether they run firmware 3.0.6.0.41.
- Disable WAN/internet-side access to the management web interface and restrict it to trusted administrative addresses only.
- If no patch is available or the device is end-of-life, consider replacing it with a supported model.
- Monitor network traffic and device logs for unusual requests to /wancfg.cmd.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
References
- vuldb.com/vuln/445113
- vuldb.com/vuln/445113/cti
- vuldb.com/cve/CVE-2026-138288
- vuldb.com/submit/1074580
- github.com/dujiaode/DSL2640B/tree/main/02-wancfg-ifname-cmd-injection
- www.dlink.com/
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.