CVE-2026-138289

D-Link DSL-2640B DMZ Host setDmzHost os command injection

Published Nov 29, 2026 CVSS 4.0 · 9.4 Critical EPSS 1.8% KEV · Not listed
Description
A vulnerability was found in D-Link DSL-2640B 3.0.6.0.41. This impacts the function SecCfgMngr::setDmzHost of the component DMZ Host Handler. Performing a manipulation of the argument address results in os command injection. The attack may be initiated remotely. The exploit has been made public and could be used.

Analysis

AI-generated

Technical impact

D-Link DSL‑2640B firmware 3.0.6.0.41 contains a flaw in the SecCfgMngr::setDmzHost function that allows an attacker to manipulate the address argument and inject arbitrary operating‑system commands. This flaw is an OS command injection vulnerability (CWE‑78 and CWE‑77). The ability to run arbitrary commands compromises the confidentiality, integrity, and availability of the router and any services it hosts.

Affected Systems

The vulnerability is present in D‑Link DSL‑2640B routers, specifically firmware version 3.0.6.0.41. No other firmware releases are currently known to be affected.

Risk and Exploitability

The CVSS score of 9.4 indicates a critical severity. EPSS is not available, but the vulnerability is publicly disclosed and could be exploited from the internet. The exploit is not listed in the CISA KEV catalog, yet demonstration code exists that shows how a remote attacker can trigger it through the router’s web interface or API that accepts the dmz host parameter. Remote exploitation requires only access to the management interface and no special credentials beyond those that can reach the router from the network.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest firmware upgrade from D‑Link that fixes the command injection in SecCfgMngr::setDmzHost. If no patch is available, contact D‑Link support for a remedy.
  • Disable the DMZ host feature if it is not required, which removes the vulnerable input channel.
  • Restrict external access to the router’s management interface by using a firewall, limiting allowed IP addresses, or routing management traffic through a VPN, thereby reducing exposure to remote attackers.

Generated by OpenCVE AI on November 29, 2026 at 18:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Dlink
Dlink dsl-2640b
Vendors & Products Dlink
Dlink dsl-2640b
Type Values Removed Values Added
Description A vulnerability was found in D-Link DSL-2640B 3.0.6.0.41. This impacts the function SecCfgMngr::setDmzHost of the component DMZ Host Handler. Performing a manipulation of the argument address results in os command injection. The attack may be initiated remotely. The exploit has been made public and could be used.
Title D-Link DSL-2640B DMZ Host setDmzHost os command injection
First Time appeared D-link
D-link dsl-2640b
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:h:d-link:dsl-2640b:*:*:*:*:*:*:*:*
Vendors & Products D-link
D-link dsl-2640b
References
Metrics cvssV2_0

{'score': 9, 'vector': 'AV:N/AC:L/Au:S/C:C/I:C/A:C/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 9.9, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P'}

Weaknesses
  • 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')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 30, 2026, 1:46 PM
Reserved
Nov 28, 2026, 3:26 PM
Status
Deferred
Published
Nov 29, 2026, 5:17 PM
Modified
Nov 30, 2026, 2:17 PM