CVE-2026-138287: 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.
Affected Software
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
The attack can be initiated remotely and requires no privileges or user interaction according to the supplied severity vector. A published proof of concept is available, increasing the likelihood of exploitation attempts.
Which deployments are known to be affected?
The affected product and version identified in the available data are D-Link DSL-2640B firmware 3.0.6.0.41. The vulnerable endpoint is portmapcfg.cmd, specifically the cgiPortMapQrySwitch function handling the pmapCfgName argument.