CVE-2026-138287: D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection

Published Nov 29, 2026
·
Updated

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

1 affected component
D-Link DSL-2640B=3.0.6.0.41

Event History

Nov 29, 2026
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203