Skip to content
Security

D-Link DSL-2640B, CVE-2026-138287: a new CVE scored 10

·8 min read

The bottom line

Any site running D-Link DSL-2640B rev A must act now: the device is end-of-life, the exploit is already public, and no patch will be issued. Disable remote management immediately and plan to replace the router.
Cover page of D-Link DSL-2640B, CVE-2026-138287: a new CVE scored 10Free analysis report · 9 pagesD-Link DSL-2640B, CVE-2026-138287: a new CVE scored 10The same note as a document you can keep or forward: what the sources say, who is affected, and what to do first.Download the analysis report →

At a glance

FactDetail
ProductD-Link DSL-2640B (CVE-2026-138287)
SeverityCritical: 10 (CVSS 4.0)
StatusA new CVE record, published by VulDB on 29 November 2026. Not on CISA's list of exploited vulnerabilities when we read it on 30 November 2026, which means nothing public says yet that anyone is using it.
Fixed inNo source we read names a fixed version
Who looks firstAnyone running D-Link DSL-2640B hardware revision A on firmware 3.0.6.0.41. The researcher reports the web interface is on the LAN by default; those with remote management enabled are also reachable from the internet.

Does this apply to you?

Answer in order. Stop at the first no.
QuestionIf noIf yes
Do you have a D-Link DSL-2640B router on your network?Nothing to do for this CVE.Check the hardware revision and firmware version.
Is it hardware revision A running firmware 3.0.6.0.41?The record only covers rev A on 3.0.6.0.41; monitor for further advisories.No patch exists; move to reduce exposure.
Is remote management (WAN-side access to the web interface) enabled?Exposure is limited to the LAN; still plan to replace the device.Disable remote management immediately, then plan to replace the device.
Can untrusted devices on your LAN reach the router's web interface?Risk is lower while replacement is arranged.Restrict LAN-side access to trusted hosts while arranging replacement.

What it is

An attacker who can reach the web management interface can inject shell commands into the pmapCfgName parameter, which are executed as root. The researcher reports that because the device carries a hard-coded administrative account, valid credentials are not required in practice.

Why it matters

Our reading is that the real risk is higher than a LAN-only advisory would suggest. The researcher reports the web interface is on the LAN by default, the device carries a hard-coded admin account that removes the credential barrier, and the exploit is already published. The device is end-of-life; the researcher confirms 3.0.6.0.41 is the latest available firmware and no fix will follow. Root-level shell access on a network gateway lets an attacker redirect traffic, alter DNS, or pivot to other hosts — this is our reading of what that access enables, beyond what the record states.

Exposure by situation

These priorities are our judgement from what the sources say about who can use the flaw and how. They are not vendor ratings.

Where you stand, and how soon
Your situationPriorityTimeframe
DSL-2640B rev A with remote management on — web interface reachable from the internetMediumImmediately — disable remote management now
DSL-2640B rev A with web interface reachable from the LAN without credentialsMediumThis week — plan device replacement
DSL-2640B rev A with LAN-side access restricted to a single trusted hostMediumNext available window — no patch is coming; replace the device
Other D-Link models named by researcher (DSL-2740R, DSL-2780B, DSL-526B) — unconfirmed by the CVE recordMediumThis week — researcher says likely affected; monitor for confirmation

Things people will get wrong

  • A firmware update will fix this. The researcher states the DSL-2640B is end-of-life and 3.0.6.0.41 is the latest RevA firmware publicly available. No newer firmware exists and no patch is expected.
  • Turning off remote management makes the device safe. The researcher reports the web interface is on the LAN by default. With remote management off, anyone on the local network can still exploit the flaw without credentials.

How we would triage it

This is our judgement.

Step 1: Confirm whether you run a DSL-2640B

  • Check the label on each router for model DSL-2640B and hardware revision A.
  • Log into the router's web interface and confirm the firmware version shown is 3.0.6.0.41.

Step 2: Reduce exposure while replacement is arranged

  • In the router's admin panel, disable remote management (WAN-side web access) if it is enabled.
  • If LAN-side management access cannot be blocked entirely, limit it to a single trusted host.

Step 3: Replace the device

  • The researcher confirms the device is end-of-life and 3.0.6.0.41 is the latest available firmware; no patch will be issued.
  • Replace with a supported router. Until replaced, treat the device as permanently vulnerable to anyone on the LAN.

To close it, read the version from the product itself, not from an old inventory, and save the output with the date. If you cannot update today, write down who owns it, the new date, and what limits exposure until then.

Send this to your IT provider

Copy it, change the names and dates, and send it. It is a draft for you to check, not a template tested with any provider.

We are writing regarding CVE-2026-138287, an OS command injection vulnerability in the D-Link DSL-2640B router (hardware revision A, firmware 3.0.6.0.41). An attacker who can reach the web management interface can run arbitrary commands as root without valid credentials. The device is end-of-life and no patch will be issued. Could you please confirm whether we run any D-Link DSL-2640B devices, their hardware revision and firmware version, and whether remote management is enabled on any of them? We would like written confirmation of the current version and status, and a plan for replacement, by 5 December 2026.

The weakness behind it

The record classes this as CWE-78 and CWE-77.

Likely ATT&CK mapping

MITRE ATT&CK is a public catalogue of the steps attackers take, from getting in to causing damage. No source has mapped this flaw to it yet, so the steps below are our prediction from what the record says the flaw allows. They are not MITRE's, the vendor's or CISA's, and an attacker may do other things.

Steps an attacker would likely take with this flaw
The step, in plain wordsStage of an attackWhy we think so
Exploit Public-Facing Application (T1190): Breaking in through a service that faces the internet, such as a web server, VPN or login page.Initial Access: getting inWhen remote management is on, the portmapcfg.cmd endpoint is reachable from the WAN; exploiting the injection flaw over the internet would likely follow this technique.
Command and Scripting Interpreter (T1059): Running commands or scripts on a machine, such as a shell or PowerShell.Execution: running the attacker's codeCWE-78 and the researcher's disassembly show the payload executes via /bin/sh -c, making shell command execution the direct result of a successful exploit.

How to use this: ask your IT provider which control or log would show each step, for example whether sign-in attempts from the internet are recorded. If nobody can answer, that is the gap to close first.

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. Technique names are MITRE's.

The sources, in their words

The CVE record:

A flaw has been found in D-Link DSL-2640B 3.0.6.0.41. The impacted element is the function cgiPortMapQrySwitch of the file portmapcfg.cmd of the component Endpoint. This manipulation of the argument pmapCfgName causes os command injection. The attack can be initiated remotely. The exploit has been published and may be used.

Versions of D-Link DSL-2640B the record lists as affected:

  • 3.0.6.0.41

The record gives no version ranges. Use the vendor's advisory for the affected versions.

Check your own project

If you build software, you can compare what a project declares with this CVE from a terminal. The tool reads requirements files, package.json, Maven, Gradle, Cargo, CMake and Dockerfile files, runs nothing, and only the CVE id leaves your machine. Naming the CVEs needs no key.

lattice-scan project . --cve CVE-2026-138287

Each row says in-range, outside-range, undetermined or lead, with the file and line. That is evidence about what a manifest declares, not about what runs, and a person decides. The verdicts, the CSV columns and a pipeline recipe are in the guide.

Check the servers you run

The same id can be checked against a host. Run this on the machine itself, not on the laptop that deploys to it: it reads installed packages (dpkg, rpm or apk), snaps, the hardware (maker, model, firmware), the running container images with their operating system and packages, and the kernel version, compares them on the spot, and only the CVE ids leave the machine; the inventory stays on it, in ~/.lattice-scan. Naming the CVEs needs no key. Do it on each server after a deployment, and again when a new entry lands.

lattice-scan --cve CVE-2026-138287

A match is a candidate for a person to confirm, not a finding. A distribution can fix a CVE under an unchanged version number, so a match is a candidate; on Debian-family hosts the report also shows whether the package's own changelog names the CVE. By default it opens the images your containers are running and reads their operating system and package list; a deep scan (--deep, a few minutes) opens every local image and the Python, Node, Java and Ruby packages inside them; for what an image declares, use the project check on its Dockerfile.

Guide: namiq.io/lattice/guides/choose-your-channel. MCP server (io.namiq/lattice in the MCP registry): namiq.io/lattice. Package: pypi.org/project/lattice-scan, or namiq.io/apt.

What we do not know yet

  • The sources do not confirm whether the vendor will issue any statement or guidance given the device is end-of-life.
  • The sources do not state what credentials the hard-coded administrative account uses, only that it is documented in a document the researcher calls advisory 09.
  • The sources do not confirm whether DSL-2740R, DSL-2780B, or DSL-526B are affected; the researcher says likely but did not test them.
  • The sources do not explain whether the CVSS 4.0 score of 10 and the CVSS 3.1 score of 8.8 (adjacent-network vector) reflect different assumptions about reach, or which applies when remote management is off.
  • Exploitation is not recorded. That is not the same as none.
  • This is a new record: scores, versions and wording can change in the first days, and they are as at 30 November 2026. We read the vendor pages listed under Sources; nothing here has been tested.
  • The sections headed "The bottom line", "Does this apply to you?", "What it is", "Why it matters", "Exposure by situation", "Things people will get wrong", "Likely ATT&CK mapping", "How we would triage it" and "Send this to your IT provider" are our interpretation of the sources, not a statement by CISA or the vendor.

Does this touch your business?

A new vulnerability is a question about what you run, who can reach it and what it would cost you. If you want a person to answer it for your own systems, start with your IT setup.

Also worth reading

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us