Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Critical 10.0CVE-2026-138288

D-Link DSL-2640B – OS command injection in wancfg.cmd (cgiWanCfg)

Published 29/11/2026 · Updated 30/11/2026 · D-Link DSL-2640B

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

  1. 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.
  2. Inventory all DSL-2640B devices and verify whether they run firmware 3.0.6.0.41.
  3. Disable WAN/internet-side access to the management web interface and restrict it to trusted administrative addresses only.
  4. If no patch is available or the device is end-of-life, consider replacing it with a supported model.
  5. Monitor network traffic and device logs for unusual requests to /wancfg.cmd.

Affected products and versions

D-Link DSL-2640B3.0.6.0.41

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

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.