Read the docs

OS command injection in D-Link DSL-2640B portmapcfg.cmd endpoint

Priority HIGH 82CWE-77Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.03032 88th percentileScored 2026-11-30
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
D-LinkDSL-2640B3.0.6.0.41—No fix listedCNA
  • DSL-2640B VendorD-Link Affected 3.0.6.0.41 Fixed in — No fix listed CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:h:d-link:dsl-2640b:*:*:*:*:*:*:*:*——D-Link
  • cpe:2.3:h:d-link:dsl-2640b:*:*:*:*:*:*:*:* Versions — — ·D-Link

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

  1. 2026-11-29 Threatist record created from CVE-2026-138287
  2. 2026-11-29 Alias added: GHSA-g5cv-72c5-jj3p
  3. 2026-11-30 CISA SSVC decision points changed

References

  • 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
See all 1027 →

Sources