Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach router web management interface
-
DeliverySend crafted request to /wancfg.cmd
-
ExploitInject shell command via ifname argument
-
ExecutionCommand executes on router OS
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
OS command injection in the D-Link DSL-2640B home DSL router (firmware build 3.0.6.0.41) lets a remote attacker execute
OS command injection in the IP Filter rule handler (scoutflt/scinflt) of D-Link DSL-2640B firmware 3.0.6.0.41 lets an at
Authenticated OS command injection in the DMZ Host handler (SecCfgMngr::setDmzHost) of D-Link DSL-2640B firmware 3.0.6.0
Cross-site request forgery (CSRF) vulnerability in redpass.cgi in D-Link DSL-2640B Firmware EU_4.00 allows remote attack
EUVD-2026-137800
GHSA-8644-63rw-4v4w
NVD
CVE.org
EPSS
VulDB
Exploit-DB