Skip to main content

D-Link DSL-2640B CVE-2026-138288

| EUVDEUVD-2026-137800 CRITICAL
OS Command Injection (CWE-78)
2026-11-29 VulDB GHSA-8644-63rw-4v4w
9.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach router web management interface
  2. Delivery
    Send crafted request to /wancfg.cmd
  3. Exploit
    Inject shell command via ifname argument
  4. Execution
    Command executes on router OS
  5. Impact
    Full device compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires reaching the router's HTTP management interface and submitting a request to /wancfg.cmd (function cgiWanCfg) with shell metacharacters in the 'ifname' argument. The input CVSS marks this PR:N (no authentication), but /wancfg.cmd is a WAN-configuration endpoint typically protected by administrator login on this device, so required authentication and whether the management interface is exposed to the WAN side (versus LAN-only by default) are the key limiting factors and are not confirmed in the available sources. The precise injection trigger is only described at the parameter level; no user interaction is indicated.

Impact

Signals mostly point the same direction but rest on a single source. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with VC/VI/VA:H scores 9.3 and vuln.today assigns an 'act_now' Decision label, consistent with a remotely reachable OS command injection (CWE-78) that yields full device control. However, this is tempered by weak corroboration: the only reporter is VulDB, there is no CISA KEV listing and no EPSS score in the provided data, and the exploit is a GitHub reference that is not verified as working exploit code. The CVSS claim of PR:N also warrants scrutiny - /wancfg.cmd is a WAN configuration endpoint on the router's management interface, which on the DSL-2640B is normally behind administrative authentication; the description does not state whether the endpoint is reachable pre-auth, so the 'network, no privileges' rating may overstate real-world reach versus an authenticated-admin or CSRF-style path. Net: a genuinely serious bug class on an affected device, but the 'act_now' urgency is driven by a single-source disclosure, and the practical priority depends heavily on whether authentication is actually required and on how widely this EOL consumer modem is still deployed.

Exploit ScenarioDerived

A remote attacker reaches the DSL-2640B web management interface and sends a request to /wancfg.cmd (function cgiWanCfg) with a malicious 'ifname' argument containing shell metacharacters, causing the injected OS command to run on the router. A public PoC reference exists on GitHub but is not verified as working exploit code; the exact trigger request and whether prior authentication is needed are not described in the available sources.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) No patch listed yet 2.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

OS command injection in the D-Link DSL-2640B (firmware 3.0.6.0.41) WAN configuration handler allows an attacker who can reach the device's HTTP management interface to execute arbitrary shell commands through the 'ifname' parameter submitted to /wancfg.cmd (function cgiWanCfg). Successful exploitation yields full compromise of the router's confidentiality, integrity and availability, and the issue is scored 9.3 under CVSS 4.0 by the reporter, while our independent assessment maps it to CVSS 3.1 AV:N/AC:L/PR:L/UI:N with high impact across C/I/A. The submission is rated act_now by vuln.today priority, but the intelligence rests on a single reporting source (VulDB) plus a public PoC reference; that reference exists but is not verified as working exploit code, and no CISA KEV entry or confirmed in-the-wild activity is associated with this CVE. The deciding unknowns are whether /wancfg.cmd can be reached without administrator login and whether the management interface is exposed beyond the LAN, since that endpoint is normally protected by admin authentication and bound to the local network by default.

RemediationAI

No vendor-released patch is identified in the available data: the references contain no D-Link advisory, no fixed firmware version, and no statement from the vendor, so absence of a patch here is not proof that none will be issued - check dlink.com support pages for the DSL-2640B directly before concluding otherwise. Because exploitation requires submitting a crafted request to /wancfg.cmd, the practical containment is to remove reachability and access to that endpoint: disable remote/WAN-side management and keep the web UI bound to the LAN interface only, which stops Internet-origin attacks but does nothing against an attacker already on the LAN segment. Enforce administrator authentication on the web UI with a strong non-default password, noting that this only helps if the assessed PR:L requirement holds and does not mitigate a valid-session attacker, since the injection occurs after login. Where the device must stay in service, place it on an isolated management VLAN or restrict TCP access to the HTTP management port to a small set of administrative source addresses via an upstream firewall or router ACL; this reduces the attack surface but complicates routine administration and breaks management from general-purpose hosts. Given the absence of vendor fixes and the age of the platform, replacing the DSL-2640B with a supported device is the only measure that fully removes the vulnerable cgiWanCfg code path.

Affected VersionsENISA

DSL-2640B 3.0.6.0.41

Affected Packages

euvd dsl_2640b no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic CWE-78 OS command injection in an embedded router CGI handler. On the D-Link DSL-2640B, /wancfg.cmd is served by the device's small HTTP management daemon and dispatches to the cgiWanCfg routine, which builds a WAN configuration operation from request parameters; the 'ifname' argument is passed into a shell invocation without neutralizing shell metacharacters, so injected command separators are interpreted by the underlying shell running with the web service's privileges (typically root on this class of firmware). The CPE cpe:2.3:a:d-link:dsl-2640b:*:*:*:*:*:*:*:* carries a wildcard version, but the only firmware explicitly named in the source data is 3.0.6.0.41, so other builds are presumed affected rather than confirmed. The supplied sources describe the injection only at the parameter level: they do not state the exact string handling, quoting, or code path that turns 'ifname' into a shell command, so the precise trigger beyond 'attacker-controlled 'ifname' on /wancfg.cmd' is not described in the available sources. The submitted CVSS 4.0 vector asserts PR:N/UI:N (no privileges, no user interaction); our assessment instead uses PR:L, reflecting that /wancfg.cmd is a WAN-configuration endpoint normally behind administrator login, and the availability of that authentication bypass or default-credential path is not confirmed in the data provided. Network reachability is the other structural question: the assessment notes the management interface may be LAN-only by default, which would confine exploitation to attackers already on the local segment or to devices with remote management enabled.

Know when Dsl 2640B gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 9.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
vuln.today AI 8.8 HIGH

Network-reachable injection with low complexity, but the WAN-config endpoint is normally authenticated so PR:L rather than PR:N; command execution on the device gives full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
CVSS changed
Nov 29, 2026 - 17:22 NVD
10.0 (CRITICAL) 9.3 (CRITICAL)
CVE Published
Nov 29, 2026 - 16:45 cve.org
CRITICAL 9.3

DescriptionCVE.org

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.

Technical POC Analysis

CWE-78 OS command injection in D-Link DSL-2640B firmware 3.0.6.0.41.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A critical OS command injection vulnerability has been identified in D-Link DSL-2640B routers (firmware 3.0.6.0.41) that could allow attackers to fully compromise devices if the management interface is reachable. The immediate business risk is concentrated in environments where these routers expose HTTP management to untrusted networks; while no active exploitation has been confirmed, the potential for arbitrary command execution and full loss of confidentiality, integrity, and availability warrants leadership attention to identify and remediate exposed instances.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting management interface access to trusted networks, disabling remote administration, implementing network segmentation, and monitoring for suspicious activity related to /wancfg.cmd.

Threat Intelligence Overview

EPSS Score
2.5%
Top 14% exploitable
Prevalence
Low
legacy end-of-life consumer DSL modem, no meaningful enterprise footprint
Social Media
9
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 2.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy