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

Home › CVE › Vulnerabilities

CVE-2026-138288 — 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.

Vulnerabilities

Research article

D-Link DSL-2640B 3.0.6.0.41 cgiWanCfg ifname OS command injection (CVE-2026-138288)

CVECVE-2026-138288
Vendor and productD-Link DSL-2640B
PublishedNovember 29, 2026 17:55 UTC
Research cut-offNovember 29, 2026 17:50 UTC
Sources reviewed2: NVD record (last modified 2026-11-29); CISA KEV catalog

Executive summary

CVE-2026-138288 is a remotely reachable OS command injection flaw in the cgiWanCfg function behind /wancfg.cmd on the D-Link DSL-2640B, triggered by a crafted ifname argument [1]. The CNA VulDB scores it CVSS 3.1 10.0 Critical (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, primary) and CVSS 4.0 9.3 Critical (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, secondary) [1]. The only affected version the record names is 3.0.6.0.41 [1]. Per the vector, no privileges or user interaction are needed, so the flaw is reachable over the network if the handler is exposed [1]. The record states that the exploit has been publicly disclosed, but the pack does not confirm exploitation in the wild, and the CVE is not in the CISA KEV catalog as of 2026-11-29 [1, 2]. The most important immediate action is to block untrusted access to /wancfg.cmd and restrict the device's administrative interface, because the pack contains no fixed firmware version [1].

Key points

  • CVE-2026-138288 is a remotely triggerable OS command injection in the cgiWanCfg function at /wancfg.cmd on D-Link DSL-2640B 3.0.6.0.41 [1].
  • Scores: CVSS 3.1 10.0 Critical (Primary) and CVSS 4.0 9.3 Critical (Secondary), both by the VulDB CNA [1].
  • The record states the exploit is public; the CVE is not in CISA KEV as of 2026-11-29, and the pack does not confirm exploitation in the wild [1, 2].
  • No fixed version is published in the pack, so block untrusted access to /wancfg.cmd and restrict administrative access now [1].

Vulnerability identification

FieldValue
CVE IDCVE-2026-138288 [1]
Vendor / productD-Link DSL-2640B [1]
ComponentFunction cgiWanCfg in /wancfg.cmd [1]
Affected version3.0.6.0.41 [1]
Published / last modified2026-11-29T17:17:28 / 2026-11-29T17:17:28 [1]
Record statusDeferred [1]
CWECWE-77 (command injection) and CWE-78 (OS command injection) [1]
CVSS 3.110.0 Critical; CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H; scored by cna@vuldb.com, Primary [1]
CVSS 4.09.3 Critical; 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; scored by cna@vuldb.com, Secondary [1]
CISA KEVNot listed as of 2026-11-29 [2]

Both CVSS versions rate the flaw Critical, but the scores differ (10.0 and 9.3). The 4.0 vector carries an exploit-maturity value of P, which the record assigns to the scorer's assessment [1]. The record also lists references to a GitHub repository, VulDB entries and a VulDB submission, and the vendor homepage, none with NVD tags [1]. The record links to a VulDB threat-intelligence page but its content is not in the pack [1].

Vulnerability description

The record describes an OS command injection in the cgiWanCfg function of the /wancfg.cmd handler on the D-Link DSL-2640B. Manipulating the ifname argument leads to command injection, and the record states the attack can be launched remotely [1]. The weakness is mapped to CWE-77 and CWE-78, meaning externally supplied input is placed into a command context without adequate neutralization of special characters [1]. The vector scores confidentiality, integrity and availability impact as High, and in the CVSS 3.1 vector the scope is changed, so the impact may extend beyond the vulnerable component [1]. Those are scorer estimates, not confirmed effects.

Attack surface and exploitation prerequisites

PrerequisiteEvidence
Network accessRemote, per AV:N in both vectors [1]
Adjacent, local or physical accessNot required per the vectors [1]
Authentication and privilegePR:N in both vectors, meaning no privileges required [1]. This is vector-derived and not confirmed by testing or vendor documentation.
User interactionNone, per UI:N [1]
Attack complexityLow, per AC:L in both vectors [1]
Required configurationNone named in the record
Reachable interfaceThe /wancfg.cmd handler and its cgiWanCfg function [1]

These prerequisites come from the CVSS vectors. Whether the WAN configuration handler is reachable from the WAN side in default deployments is not established by the pack.

Impact analysis

AreaScorer-assessed impact [1]Notes
ConfidentialityHighCommand execution could expose device data; specifics are not in the pack
IntegrityHighDevice configuration and software could be altered; specifics are not in the pack
AvailabilityHighDevice could be disrupted; specifics are not in the pack
Authentication and authorizationNot separately scoredVector PR:N implies no login is needed
Downstream systems4.0 SC/SI/SA High; 3.1 scope changedAnalyst assessment: a compromised router could affect traffic passing through it, but the pack does not document this

The technically demonstrated impact is limited to what the record states. Business, privacy and regulatory consequences depend on the device's role and are outside the pack.

Affected products and versions

VendorProduct / componentAffected versionsPlatformFixed versionSource and qualification
D-LinkDSL-2640B, cgiWanCfg in /wancfg.cmd3.0.6.0.41DSL routerNot published in the packThe vendor, as CNA, lists 3.0.6.0.41 only [1]

The pack contains no vendor advisory, so other firmware builds cannot be confirmed as affected or unaffected. No known exclusions are stated.

Exploitation and threat intelligence status

  • Confirmed exploitation in the wild: not established by the pack.
  • Public proof of concept: the record says the exploit is public and may be used, and it references a GitHub repository [1]. The repository content was not extracted, so its scope and quality are unverified.
  • CISA KEV: not listed as of 2026-11-29 [2]. The catalog does not show absence of exploitation.
  • Threat actors and campaigns: none attributed in the pack.

Detection and exposure assessment

  1. Asset inventory: list every DSL-2640B and record its firmware version from the device's administrative interface. Units reporting 3.0.6.0.41 match the affected version [1]. A version match is not proof of exploitability.
  2. Exposure check: from an external host outside the management network, confirm whether the device's web administration service and the /wancfg.cmd path can be reached. Use only a connection test, not requests that carry parameter values. Expected result: connection refused or filtered.
  3. Logs: the pack names no log source, event or indicator for this flaw. Review the device's own logs for unexpected WAN configuration changes if the vendor provides them.

Remediation

Immediate mitigation (analyst recommendation based on the path named in the record [1]):

  1. Block inbound requests to /wancfg.cmd from untrusted networks at the upstream firewall or NAT rule. Protects against remote requests to the named handler. Limitation: it does not fix the flaw for any internal attacker. Verify: an external connection test fails, and a management host still reaches the page.
  2. Restrict the administrative interface to a management network or allow-listed addresses, and disable WAN-side administration if enabled. Side effect: remote administration stops. Verify: an external port check shows the interface is filtered.

Permanent fix: the pack gives no fixed firmware version or vendor advisory [1]. Install only a firmware build the vendor explicitly lists as fixing CVE-2026-138288, then verify the reported version changed. Mitigations are not equivalent to a permanent fix.

Remediation checklist

  1. Inventory every D-Link DSL-2640B and record the firmware version from its administrative interface; units reporting 3.0.6.0.41 are in the record's affected set [1].
  2. At the upstream firewall or NAT, block inbound requests to /wancfg.cmd from untrusted networks; verify from an external host that the connection is refused and from the management network that the page still loads [1].
  3. Disable WAN-side remote administration on the device if enabled, and restrict the administrative interface to a management network; verify with an external port check that it is filtered [1].
  4. Move management of the device onto a segregated management VLAN with an access control list allowing only administrator hosts; verify that non-administrator hosts cannot reach the interface.
  5. Check the vendor's D-Link product pages (listed as a reference in the record) for a security bulletin or firmware that names CVE-2026-138288 [1]; do not treat any build as fixed until the vendor confirms it.
  6. After installing a vendor-listed fixed firmware, confirm the version string changed and re-run the external connection test to confirm exposure is still controlled [1].
  7. If compromise is suspected, isolate the device, preserve its configuration and logs, review unexpected WAN configuration changes and outbound connections from the device, and reimage only after evidence is collected; the pack contains no indicators to search for [2].
  8. Recheck the CISA KEV catalog and the record status (currently Deferred) periodically, since both may change [1, 2].

Evidence gaps

  • Not established by the reviewed sources: a vendor advisory or fixed firmware version for the DSL-2640B; check the D-Link product security pages and firmware release notes for CVE-2026-138288.
  • Not established by the reviewed sources: the root cause in cgiWanCfg, including how the ifname value reaches a command context and what validation is missing; source code or a vendor or researcher analysis would settle this.
  • Not established by the reviewed sources: confirmed exploitation in the wild; threat intelligence reporting or a KEV entry would be needed.
  • Not established by the reviewed sources: the content and reliability of the public proof-of-concept repository and VulDB entries referenced in the record; reviewing them would settle the exploit maturity question, though exploit code should not be reproduced.
  • Not established by the reviewed sources: indicators of compromise, log events or network signatures; vendor or incident response reporting would be needed.
  • Not established by the reviewed sources: whether the /wancfg.cmd handler is reachable from the WAN in default configurations, and whether login is required in practice; testing against a lab device or vendor documentation would settle this.
  • Not established by the reviewed sources: affected firmware builds other than 3.0.6.0.41; the vendor's full version list or the NVD CPE configuration would settle this.
  • Not established by the reviewed sources: the FIRST EPSS score for this CVE; the EPSS value would indicate predicted exploitation likelihood.
  • Not established by the reviewed sources: the reason the record is in Deferred status and whether its scores or references will change; the NVD record history would settle this.

References

  1. CVE-2026-138288 record. NIST National Vulnerability Database (NVD), 2026-11-29. https://nvd.nist.gov/vuln/detail/CVE-2026-138288. Accessed 2026-11-29. CVE description, record status and dates, CVSS 3.1 and 4.0 scores and vectors with scorers and roles, CWE-77 and CWE-78 mappings, the affected version 3.0.6.0.41, and the list of references including the public exploit repository and VulDB entries.
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-29. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-29. CISA KEV status: the CVE was not listed in the catalog as of 2026-11-29, and this is not evidence that exploitation has not occurred.

Written with AI assistance from the 2 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

A vulnerability has been found in D-Link DSL-2640B 3.0.6.0.41. This affects the function cgiWanCfg of the file /wancfg.cmd. Such manipulation of the argument ifname leads to os command injection. The attack can be launched remotely. The exploit has been disclosed to the public 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

Frequently asked questions

What is CVE-2026-138288?

CVE-2026-138288 is a remotely reachable OS command injection flaw in the cgiWanCfg function behind /wancfg.cmd on the D-Link DSL-2640B, triggered by a crafted ifname argument. Weakness type: Improper Neutralization of Special Elements used in a Command ('Command Injection') (CWE-77).

How severe is CVE-2026-138288?

CVE-2026-138288 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-138288 being exploited?

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

Which versions are affected by CVE-2026-138288?

D-Link DSL-2640B 3.0.6.0.41.

How do I fix CVE-2026-138288?

Inventory every D-Link DSL-2640B and record the firmware version from its administrative interface; units reporting 3.0.6.0.41 are in the record's affected set. At the upstream firewall or NAT, block inbound requests to /wancfg.cmd from untrusted networks; verify from an external host that the connection is refused and from the management network that the page still loads. Disable WAN-side remote administration on the device if enabled, and restrict the administrative interface to a management network; verify with an external port check that it is filtered.

Timeline & sources

References