Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Vulnerabilities

CVE-2026-138287 — D-Link DSL-2640B

Critical · CVSS 9.3 First seen November 29, 2026

One of 3 D-Link DSL-2640B vulnerabilities published together by NVD: our article covers all of them.

VulnerabilitiesEndpoint security

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.3 CVSS 4.0 base score from the CNA (vuldb.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Special conditions
none
Login needed
no
User action needed
no
Impact
high on confidentiality, integrity and availability
Impact on other systems
high on confidentiality, integrity and availability
Exploit maturity
a proof-of-concept exploit is public

Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 10.0 from the CNA (vuldb.com): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Affected and fixed versions

ProductAffected versionsFixed in
D-Link DSL-2640B3.0.6.0.41—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • D-Link DSL-2640B

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-138287?

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. Weakness type: Improper Neutralization of Special Elements used in a Command ('Command Injection') (CWE-77).

How severe is CVE-2026-138287?

CVE-2026-138287 has a CVSS 4.0 base score of 9.3 (critical), from the CNA (vuldb.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-138287 being exploited?

Not as far as is known: CVE-2026-138287 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.

Which versions are affected by CVE-2026-138287?

D-Link DSL-2640B 3.0.6.0.41.

How do I fix CVE-2026-138287?

Follow the advisories and patches linked on this page under References for fixed versions and workarounds.

Timeline & sources

References