CVE-2026-138287
published critical CVSS 4.0 · 10.0D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| D-Link | — | DSL-2640B3.0.6.0.41 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 10.0 | critical | VulDB · cna | 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 | — |
| 3.0 | 10.0 | critical | VulDB · cna | 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 | — |
| 2.0 | 10.0 | high | VulDB · cna | AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:ND/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| D-Link | DSL-2640B | 3.0.6.0.41 (affected) | VulDB · cna |
Weaknesses
2- CWE-78 OS Command Injection
- CWE-77 Command Injection
References
6- https://github.com/dujiaode/DSL2640B/tree/main/01-portmapcfg-pmapcfgname-cmd-injection
- CVE-2026-138287 | CVE Analysis and Report https://vuldb.com/cve/CVE-2026-138287
- Submit #1074577 | D-Link DSL-2640B 3.0.6.0.41 OS Command Injection (CWE-78) https://vuldb.com/submit/1074577
- VDB-445112 | D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection https://vuldb.com/vuln/445112
- VDB-445112 | CTI Indicators (IOB, IOC, TTP, IOA) https://vuldb.com/vuln/445112/cti
- https://www.dlink.com/
Provider assertions
2VulDB · cna
D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ba5671d9ecea8693f697ccb0c43bfe6b51c7730a7fc372082797d3cd0309c96f
- Ingested
- 30 Nov 2026, 20:16:30 UTC
- Source record
- Official CVE record