Summary
CVE-2026-138287 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 cgiPortMapQrySwitch in portmapcfg.cmd. Manipulating the pmapCfgName argument causes OS command injection. The attack can be initiated remotely, and the record indicates an exploit has been published.
| Product | Firmware |
|---|---|
| D-Link DSL-2640B | 3.0.6.0.41 |
Two sibling records cover the same firmware: CVE-2026-138288 (cgiWanCfg) 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
- Turn off remote management and keep the admin interface off the internet.
- Restrict LAN access to the management interface.
- Watch D-Link's support page for DSL-2640B firmware; no fixed version was named.
- Replace the device if no fix ships.