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

- Severity: Critical 10.0 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.03%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-29T16:30:18.639Z
- Modified: 2026-11-30T21:17:27.843Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- D-Link DSL-2640B: 3.0.6.0.41

## Every score

- VulDB: CVSS:4.0 10.0 Critical `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`
- VulDB: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C`
- VulDB: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C`
- VulDB: CVSS:2.0 10.0 Critical `AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:ND/RC:C`

## References

- <https://github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection> (exploit)
- <https://vuldb.com/vuln/445112> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/445112/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-138287> (third-party-advisory)
- <https://vuldb.com/submit/1074577> (third-party-advisory)
- <https://www.dlink.com/> (product)

## Sources

- CVE List: [CVE-2026-138287](https://www.cve.org/CVERecord?id=CVE-2026-138287), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138287](https://nvd.nist.gov/vuln/detail/CVE-2026-138287), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138287 · Whole record: https://cve.day/CVE-2026-138287.json · Rebuilt by cve.day 2026-11-30T21:32:19.183Z
