CVE-2026-138287

10.0Critical

Published Nov 29, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

10.0CVSS

Critical

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-77, CWE-78

What an attacker gets

Unauthenticated remote attackers can execute arbitrary OS commands on the device. This allows full administrative control over the router.

Root cause

The cgiPortMapQrySwitch function fails to sanitize the pmapCfgName argument, leading to OS command injection.

Affected versions

D-Link DSL-2640B version 3.0.6.0.41

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Fix & remediation

There is no patch available for this end-of-life device. Disconnect the device from the internet or replace it immediately.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138287

More fully triaged vulnerabilities you may want to check next.