Home › CVE › Vulnerabilities
CVE-2026-138287 — D-Link DSL-2640B
One of 3 D-Link DSL-2640B vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesEndpoint securitySummary
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.
Severity breakdown
Critical · 9.3
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
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
| Product | Affected versions | Fixed in |
|---|---|---|
| D-Link DSL-2640B | 3.0.6.0.41 | — |
References by type
Other references
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.