SECURITYCRITICALCVE-2026-138288

CVE-2026-138288: D-Link DSL-2640B cgiWanCfg OS Command Injection (CVSS 10.0)

The ifname argument of cgiWanCfg in /wancfg.cmd on D-Link DSL-2640B 3.0.6.0.41 reaches an OS command. Remote, public exploit noted; no fix confirmed.

Dylan H.

Security Team

November 30, 2026
1 min read
CVE-2026-138288: D-Link DSL-2640B cgiWanCfg OS Command Injection (CVSS 10.0)

Critical severity

Rated critical. Prioritise patching — see the remediation guidance below.

Affected Products

  • D-Link DSL-2640B 3.0.6.0.41

Summary

CVE-2026-138288 is an OS command injection flaw in the D-Link DSL-2640B modem router, published in NVD on November 29, 2026 with a CVSS score of 10.0. Only the NVD description was available to us, so vendor confirmation and patch status are unverified.

Details

The record names the function cgiWanCfg in /wancfg.cmd. Manipulating the ifname argument leads to OS command injection. The attack can be launched remotely, and the record indicates an exploit has been disclosed publicly.

ProductFirmware
D-Link DSL-2640B3.0.6.0.41

Sibling records for the same firmware include CVE-2026-138287 (cgiPortMapQrySwitch) and CVE-2026-138289 (setDmzHost). The record does not say whether authentication is required.

Impact

Command injection on a router typically means code execution with the device's privileges, allowing traffic interception, DNS tampering, persistence, or use of the device as a pivot or botnet node.

What to do

  1. Turn off remote management and keep the admin interface off the internet.
  2. Restrict LAN access to the management interface.
  3. Watch D-Link's support page for DSL-2640B firmware; no fixed version was named.
  4. Replace the device if no fix ships.

References