OS command injection in D-Link DSL-2640B portmapcfg.cmd endpoint
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-77.
Summary
D-Link DSL-2640B version 3.0.6.0.41 is affected. The cgiPortMapQrySwitch function in the portmapcfg.cmd Endpoint component lets manipulation of the pmapCfgName argument inject OS commands (CWE-78). A remote attacker needs no privileges or user interaction to run operating system commands. A public exploit has been published and may be used.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for D-Link DSL-2640B.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Timeline
- 2026-11-29 Threatist record created from CVE-2026-138287
- 2026-11-29 Alias added: GHSA-g5cv-72c5-jj3p
- 2026-11-30 CISA SSVC decision points changed
References
More D-Link vulnerabilities
- TI-2024-03070 Command injection in D-Link DNS-320L, DNS-325, DNS-327L and DNS-340L KEVCVSS 3.1CRITICAL 9.8
- TI-2024-03069 Hard-coded credentials in several D-Link DNS NAS devices KEVCVSS 3.1CRITICAL 9.8
- TI-2024-00708 Path traversal in D-Link DIR-859 hedwig.cgi HTTP POST handler KEVCVSS 3.1CRITICAL 9.8
- TI-2023-10693 OS command injection in D-Link DIR820LA1_FW105B03 grants root access KEVCVSS 3.1CRITICAL 9.8
- TI-2022-17249 Buffer overflow in D-Link Go-RT-AC750 via cgibin and hnap_main KEVCVSS 3.1CRITICAL 9.8
- TI-2022-09657 Remote command execution in D-Link DIR-820L via HTTP POST requests KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-138287 · CVE Program
- CVE-2026-138287 · NVD
- FIRST EPSS
- GHSA-g5cv-72c5-jj3p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences