D-Link DSL-2640B router has four critical flaws and no fix
Four command-injection flaws in the D-Link DSL-2640B router on firmware 3.0.6.0.41 let an attacker run commands without logging in. Three score 10.0, and no patch exists yet (29 Nov 2026).
Affects
- D-Link DSL-2640B
Tracked as
CVE-2026-138287D-Link DSL-2640B, firmware 3.0.6.0.41 · CVSS 10CVE-2026-138288D-Link DSL-2640B, firmware 3.0.6.0.41 · CVSS 10CVE-2026-138289D-Link DSL-2640B, firmware 3.0.6.0.41 · CVSS 9.9CVE-2026-138290D-Link DSL-2640B, firmware 3.0.6.0.41 · CVSS 10
The D-Link DSL-2640B, an older wireless ADSL modem router still in use in homes and small offices, carries four flaws that hand an attacker control of the device. Each one sits in the router’s web management interface, and each lets a crafted request run operating-system commands on the router itself. No password is needed, the attack works over the network, and working exploit code is already public. There is no fixed firmware to install.

- 4Command-injection flawsOne firmware build
- 3Scored 10.0 of 10Highest possible CVSS
- 0Fixes availableNo patch at publication
- 3.0.6.0.41Affected firmwareD-Link DSL-2640B
Four doors into the same box
All four flaws follow the same pattern. A management page takes a setting that should hold an ordinary value — a port-mapping name, a WAN interface name, a DMZ host address, a filter address — and passes it to the operating system without checking it first. A value written as a command runs as one, with the router’s own privileges. The NVD records, published on 29 November 2026 between 17:15 and 18:17 UTC, score three of the flaws at the maximum 10.0 and the fourth at 9.9.
Port mapping
CVE-2026-138287 — The port-mapping page, portmapcfg.cmd, passes the pmapCfgName value to the operating system unchecked. CVSS 10.0.
WAN settings
CVE-2026-138288 — The WAN settings page, wancfg.cmd, passes the ifname value to the operating system unchecked. CVSS 10.0.
DMZ host
CVE-2026-138289 — The DMZ host handler passes the address value to the operating system unchecked. CVSS 9.9.
IP filter
CVE-2026-138290 — The IP filter functions scoutflt and scinflt pass the srcAddr value to the operating system unchecked. CVSS 10.0.
Severity of the four flaws
The numbers
| CVSS 3.1 | CVSS 3.1 score |
|---|---|
| Port mapping | 10 |
| WAN config | 10 |
| DMZ host | 9.9 |
| IP filter | 10 |
The proof is public
A public repository holds a write-up for each flaw and a script that runs the attack in one step. That lowers the bar sharply: anyone who can reach a vulnerable router’s management interface can try it, without an account on the device and without waiting for a patch window to close.
What to do now
What to do now
Check the firmware version
Open the router’s admin panel and look at the firmware version. Version 3.0.6.0.41 carries all four flaws.
Keep the admin panel off the internet
Turn off remote management and remove any port forwarding that points at the router’s web interface. That closes the remote path to the flaws.
Watch for a D-Link update
Check the D-Link product page for the DSL-2640B and install a new firmware version as soon as one appears.
Consider replacing the router
With no fix and public exploit code, a router that has to stay reachable is a risk. A model with patched firmware is the safer option.
Questions readers are asking
Do attackers need the router's password?
No. The published records score the flaws as needing no privileges and no user interaction, and the public exploit code needs no login.
Does this affect other D-Link routers?
The published records name only the DSL-2640B on firmware 3.0.6.0.41. No other model is named in these records.
Can the flaws be worked around?
Keeping the management interface off the internet blocks the remote attack, but the flaws stay in the firmware until D-Link ships a fix.
Sources
- CVE-2026-138287 DetailNational Vulnerability Database
- CVE-2026-138288 DetailNational Vulnerability Database
- CVE-2026-138289 DetailNational Vulnerability Database
- CVE-2026-138290 DetailNational Vulnerability Database
- DSL2640BGitHub
- DSL-2640B ADSL 2+ Wireless G Router with 4-Port 10/100 SwitchD-Link


