On this page (6 sections)
CVE-2026-138289 is an OS command injection vulnerability in the D-Link DSL-2640B, firmware version 3.0.6.0.41. According to the NVD record, the flaw sits in the DMZ Host handler, and the record states it can be attacked remotely and that an exploit has been made public.
Anyone who still runs a DSL-2640B at a home, office or small branch should read this. A router sits in front of every website, server and device behind it, so a compromised gateway can affect all of them. Public information is thin so far: the NVD record is the only primary source, and no vendor advisory or fixed firmware is referenced.
What the record says
The NVD entry, published on 2026-11-29, describes a flaw in the function SecCfgMngr::setDmzHost of the DMZ Host Handler component. Manipulating the argument named address results in OS command injection. The record says the attack may be initiated remotely and that the exploit has been made public and could be used.
The weaknesses are tagged CWE-77 and CWE-78, both families of command injection. The listed references include a public write-up on GitHub and a VulDB entry. We have not reproduced anything from them here, and this article does not include exploit details.
Command injection in a router, in plain terms
A DMZ host setting normally tells a router to forward traffic to one internal device, so the value entered is meant to be an IP address. Command injection happens when firmware takes that value and passes it to the operating system underneath without strictly checking it. If the input is not validated, specially crafted text can be interpreted as a command rather than as an address.
On a router, those commands generally run with high privileges. The practical worst case for this class of bug is control of the device: changing DNS settings, redirecting traffic, opening access to the internal network or using the router as a foothold. The research does not say what an attacker can do with this specific flaw beyond command injection, and it does not say whether authentication is needed, so treat both as unknown.
Who is realistically exposed
- Anyone running a D-Link DSL-2640B on firmware 3.0.6.0.41. Other firmware versions are not addressed in the research, so their status is unknown.
- Devices whose web administration page is reachable from the internet, since the record says remote attack is possible.
- Networks where untrusted users or devices can reach the router's admin interface from the inside.
- Small offices and home-run websites or servers sitting behind this router.
How to check your exposure
Start by confirming whether you own the affected model and firmware. The model is usually printed on the label under the device, and the firmware version is shown on the router's status or system information page in its admin interface.
- Find the model name on the device label and confirm whether it is a DSL-2640B.
- Log in to the admin interface from inside your network and open the status or system page to read the firmware version. Compare it with 3.0.6.0.41.
- Check whether remote management (administration from the WAN side) is enabled and turn it off if you do not need it.
- Open the DMZ settings and note whether a DMZ host is configured. If you do not use it, leave it disabled.
- Review DNS, port forwarding and user account settings for anything you do not recognize.
You can also check from outside your network whether your router's admin page answers on your public IP address. If you manage a website behind this router, the free malware scanner and the SSL checker can show how your public-facing site looks from outside, though they cannot inspect the router itself.
What to do now
The research does not name a patched firmware version, and the only vendor reference is the general D-Link website. Until a fix is confirmed, focus on reducing exposure.
- Confirm whether any DSL-2640B devices are in use, including at remote offices and relatives' homes you support.
- Disable remote (WAN-side) administration on the router.
- Leave the DMZ host feature disabled unless you truly need it.
- Restrict admin access to a trusted management device or network segment, and use a strong, unique admin password.
- Check D-Link's support pages for the DSL-2640B for a firmware update or end-of-support notice, and apply an update only if D-Link publishes one for this issue.
- If the model is end of life with no fix coming, plan to replace it with a supported router.
- After any change, review router DNS settings, port forwards and accounts, and reboot only when you can tolerate a brief outage.
Detection and monitoring afterwards
Because a public exploit is reported, assume scanning for vulnerable devices is plausible, though the research does not confirm active exploitation and its data shows no CISA KEV entry for this CVE. Watch for signs that a router has been tampered with:
- Unexpected changes to DNS servers or port forwarding rules.
- New or changed admin accounts, or configuration you did not make.
- Unusual outbound traffic from the router, or the admin page being reachable from places it was not before.
- Your site's DNS records or certificates changing unexpectedly. Monitoring for DNS and certificate changes can alert you to that kind of drift.
If you suspect compromise, follow our guide on what to do when a website is hacked and treat credentials that passed through the router as exposed. For more router and network device advisories, browse the Webforta security blog.
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
