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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-11-29 · Modified: 2026-11-30
- Record: https://cvemate.com/vulnerability/CVE-2026-138287 · JSON: https://cvemate.com/vulnerability/CVE-2026-138287/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v4.0, CVE.org) 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
- EPSS: 3.032%, percentile 87.919%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- d-link dsl-2640b: 3.0.6.0.41

## References

- <https://vuldb.com/vuln/445112>
- <https://vuldb.com/vuln/445112/cti>
- <https://vuldb.com/cve/CVE-2026-138287>
- <https://vuldb.com/submit/1074577>
- <https://github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection>
- <https://www.dlink.com/>

---

Data as of 2026-12-05T09:13:46.814Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
