CVE-2026-138287 D-Link DSL-2640B - Command Injection

D-Link DSL-2640B 3.0.6.0.41 contains a command injection caused by manipulation of the argument pmapCfgName in cgiPortMapQrySwitch function of portmapcfg.cmd, letting remote attackers execute arbitrary OS commands, exploit requires no special privileges.

CVSS base score 10.0 /10
Critical
CISA KEV
Not listed
Public exploit
None known
Authentication
Not required
EPSS
3.03% chance of exploitation in 30 days
View the NVD record ↗

Details

Type
Command Injection
Impact
Remote Code Execution
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
29 November 2026
Updated
1 December 2026
Weakness
CWE-77

Vendor fix

Update to the latest version or apply vendor patches addressing this issue.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

References

← All CVEs