CVE-2026-138287: critical vulnerability in D-Link DSL-2640B
D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 10epss 3.0%
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
Affected products
D-Link · DSL-2640Bpublic PoCs found — 1
cve_referencegithub.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injectionunverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — D-Link DSL-2640B
In the same product, most dangerous first.
CVE-2026-138290CRITICALD-Link DSL-2640B IP Filter scinflt os command injectionEPSS 2.5%CVE-2026-138288CRITICALD-Link DSL-2640B wancfg.cmd cgiWanCfg os command injectionEPSS 2.5%CVE-2026-138289CRITICALD-Link DSL-2640B DMZ Host setDmzHost os command injectionEPSS 1.8%CVE-2026-0625CRITICALD-Link DSL/DIR/DNS Authentication Bypass via DNS Configuration EndpointEPSS 1.0%