Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
D-Link DSL-2640B
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

中文翻译: “在 D-Link DSL-2640B 3.0.6.0.41 中发现了一个安全缺陷。受影响的元素是组件 Endpoint 中文件 portmapcfg.cmd 的函数 cgiPortMapQrySwitch。对参数 pmapCfgName 的操纵会导致操作系统命令注入。攻击可远程发起。该利用已被公开,并可能被使用。” 如需,我可以把它整理成中文漏洞简报或 CVSS/处置建议框架,但不会提供可直接用于攻击的利用代码或步骤。

CVSS 10.0 · Critical

Affected Version Matrix 1

VendorProduct Version RangeStatus
D-Link DSL-2640B 3.0.6.0.41 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-138287

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
D-Link DSL-2640B Endpoint portmapcfg.cmd cgiPortMapQrySwitch os command injection
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
D-Link DSL-2640B 3.0.6.0.41 cpe:2.3:h:d-link:dsl-2640b:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-138287

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-138287

请登录查看更多情报信息。

Vendor Pages for CVE-2026-138287 (1)

Other References for CVE-2026-138287 (1)

Other References for CVE-2026-138287 (4)

Same Patch Batch · D-Link · 2026-11-29 · 15 CVEs total

CVE-2026-138290 10.0 CRITICAL D-Link DSL-2640B IP Filter scinflt os command injection
CVE-2026-138288 10.0 CRITICAL D-Link DSL-2640B wancfg.cmd cgiWanCfg os command injection
CVE-2026-138279 10.0 CRITICAL D-Link DIR-X1860Z telnet os command injection
CVE-2026-138278 10.0 CRITICAL D-Link DIR-X1860Z routerd liblubus.so hexString2bin stack-based overflow
CVE-2026-138227 10.0 CRITICAL D-Link R95 DHMAPI ssi SetTimeSettings os command injection
CVE-2026-138226 10.0 CRITICAL D-Link R95 DHMAPI SOAP interface ssi SetSecureDNSSettings os command injection
CVE-2026-138225 10.0 CRITICAL D-Link R95 DHMAPI SOAP ssi SetQoSHostInfo os command injection
CVE-2026-138165 10.0 CRITICAL D-Link R15 Upload nodered os command injection
CVE-2026-138289 9.9 CRITICAL D-Link DSL-2640B DMZ Host setDmzHost os command injection
CVE-2026-138201 9.9 CRITICAL D-Link DIR-629 NTP Time Service DEVICE.TIME.php os command injection
CVE-2026-138199 9.9 CRITICAL D-Link DIR-629 DHCP Server dhcpserver.php dhcps4start os command injection
CVE-2026-138102 9.9 CRITICAL D-Link DIR-620S Diagnostic anweb os command injection
CVE-2026-138200 7.3 HIGH D-Link DIR-629 Router Firmware hedwig.cgi hedwigcgi_main code injection
CVE-2015-20131 7.1 HIGH D-Link DIR-820L rev A before 1.06B02 and rev B before 2.03B01 Missing Authentication via t

IV. Related Vulnerabilities