Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.3

CVE-2026-138287: D-Link DSL-2640B allows remote command execution

CVE-2026-138287 · published 3 days ago
Summary

The DSL-2640B router (firmware version 3.0.6.0.41) can be tricked into running unauthorized system commands when a specially crafted request is sent to its port mapping feature. This can let an attacker take control of the router from anywhere on the network. Install the latest firmware from D-Link and limit external access to the router's management interface.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
d-link dsl-2640b 3.0.6.0.41
Original advisory text
D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.3 Critical
Exploitation
3% chance of attack within 30 days
Type
CWE-77Command Injection
CWE-78OS Command Injection
Timeline
Published29 Nov 2026
Updated2 Dec 2026
First seen29 Nov 2026
Sources
CVE-2026-138287 · MITRE
Track software like this
Free during beta