Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid admin credentials
-
DeliveryAuthenticate to web management interface
-
ExploitCraft malicious username or password payload
-
ExecutionSubmit crafted input to getVid function
-
PersistBypass insufficient input filtering
-
ImpactExecute arbitrary commands as root
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 valid administrative credentials for the DrayTek VigorSwitch web management interface - this prerequisite is explicitly stated in the CVE description and confirmed by the CVSS 4.0 PR:H metric. The attacker must be able to reach the web management interface over the network (AV:N), which DrayTek typically hosts on a dedicated management port or VLAN; organizations that expose this interface to untrusted or Internet-facing segments face materially higher risk. The injection occurs in the username and password fields processed by the getVid function, so the web management service must be active - a condition that applies to all managed switch deployments using the web UI. No non-default feature enablement or special configuration mode is cited as a prerequisite. The primary limiting factors are the administrative credential requirement (PR:H) and the assumption that management interfaces are network-segregated; environments where either condition does not hold - default credentials unchanged, or management accessible from untrusted networks - should treat exploitation as significantly more feasible than the raw CVSS vector implies. |
| Impact | The CVSS 4.0 score of 8.6 is principally driven by the full-impact triad (VC:H/VI:H/VA:H) and network attack vector, but the PR:H metric is the decisive mitigating signal - exploitation is gated on possession of valid administrative credentials for the web management interface, sharply narrowing the realistic attacker class. EPSS data was not included in the available intelligence feed, leaving statistical exploitation probability unquantified; this gap should be monitored as the advisory matures. Neither a CISA KEV listing nor confirmed public exploit code has been identified at time of analysis, which further reduces immediate mass-exploitation risk relative to the raw score. The practical threat profile centers on insiders, credential-reuse scenarios, and attackers who have completed a prior initial-access step to harvest admin credentials. The wide model footprint - 28+ distinct VigorSwitch SKUs per vendor tags - amplifies aggregate organizational exposure, particularly in SMB and campus environments where DrayTek switching is common and where management interfaces may not be isolated to dedicated management VLANs. Organizations with Internet-exposed management interfaces face substantially elevated risk regardless of the PR:H gate, as credential stuffing or default-credential attacks could lower the effective barrier to exploitation. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials for a DrayTek VigorSwitch - whether through credential stuffing against a management interface exposed to the Internet, internal credential theft, or reuse of unchanged default passwords - authenticates to the web management interface and submits a crafted username or password value containing OS command injection payloads to the getVid function. The insufficient input filtering passes the malicious value directly into a system command call, resulting in arbitrary command execution with root privileges on the switch operating system. No public exploit code has been identified at time of analysis, but the attack surface is low-complexity for any actor already holding admin credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Command injection in DrayTek VigorSwitch's getVid function allows an authenticated remote administrator to execute arbitrary OS commands with root privileges by supplying crafted values in the username or password fields of the web management interface. At least 28 VigorSwitch models across the G, P, Q, PQ, and FX series are confirmed affected by the DrayTek August 2026 security advisory and VulnCheck reporting. No public exploit code has been identified at time of analysis, but the breadth of affected models and full root-level impact make this a patch-priority item for any organization operating DrayTek managed switching infrastructure.
RemediationAI
Apply the firmware update specified in the DrayTek security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/ - that advisory is the primary source for exact patched firmware version numbers, which are not independently specified in the intelligence data available at time of analysis. As an immediate compensating control prior to patching, restrict access to the web management interface to dedicated management VLANs or explicitly allowlisted administrative hosts; this directly addresses the AV:N network attack vector and reduces the population of hosts from which credentials could be leveraged. Additionally, audit all administrative accounts on affected devices, disable or rename default credentials, and rotate all admin passwords - since the attack is gated on valid admin credentials, reducing credential exposure shrinks the effective attack surface while patching is completed. If management interface exposure to untrusted networks cannot be eliminated immediately, consider disabling remote web management in favor of out-of-band console access as a temporary measure, acknowledging that this may reduce operational visibility. Consult the VulnCheck advisory at https://www.vulncheck.com/advisories/draytek-vigorswitch-multiple-models-os-command-injection-via-getvid for additional technical detail.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 28 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a CWE-78 (Improper Neutralization of Special Elements used in an OS Command) flaw located in the getVid function of the VigorSwitch web management interface firmware. Username and password field values supplied through the web UI are passed to an OS-level command without sufficient sanitization, allowing shell metacharacters or command separators to escape the intended context and execute attacker-controlled commands. The CPE strings (cpe:2.3:a:draytek_corporation:vigorswitch_*) cover at least 10 models with wildcard version fields, indicating no specific firmware version boundary has been defined - all deployed firmware versions across the affected model families are considered vulnerable. The shared codebase across DrayTek's VigorSwitch line explains why so many models (28+ per vendor tags) are simultaneously affected by a single function-level flaw.
Know when Vigorswitch G2540Xs 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:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-accessible management interface (AV:N) but administrative credentials required (PR:H); full CIA impact on the device with no scope change (S:U) since only the vulnerable switch is compromised.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the getVid function. The vulnerability is caused by insufficient filtering of the username and password fields before command execution. A remote attacker can trigger this vulnerability via crafted input to execute arbitrary commands with root privileges. Exploitation requires valid administrative credentials for the device's web management interface.
Executive ViewAI
DrayTek VigorSwitch equipment across 28+ models can be completely compromised by administrators or credential-compromised attackers executing root-level commands through the management interface, creating a direct pathway to network infrastructure takeover. The absence of vendor patches and broad affected model range make this a high-priority mitigation target for any organization where DrayTek switches support critical network operations.
No vendor-released patch identified at time of analysis. Interim mitigations: Restrict web management interface access to trusted administrative IP ranges only; disable remote administration protocols if not operationally required; enforce strong, unique passwords for all administrative accounts; implement multi-factor authentication on management access if supported; segregate management traffic to dedicated administrative VLANs with strict firewall rules; enable comprehensive audit logging for all administrative activities; conduct regular account audits to identify and remove unauthorized administrators.
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.
More in Vigorswitch G2540Xs
View allPre-authentication OS command injection in DrayTek VigorSwitch managed switches lets a remote, unauthenticated attacker
Command injection in DrayTek VigorSwitch's setDevNet function allows authenticated remote attackers to execute arbitrary
Command injection in DrayTek VigorSwitch's setTime function enables authenticated administrators to execute arbitrary OS
Command injection in multiple DrayTek VigorSwitch models enables authenticated administrators to execute arbitrary OS co
Command injection in multiple DrayTek VigorSwitch models' getDetail function enables authenticated remote attackers hold
Command injection in multiple DrayTek VigorSwitch managed switch models allows an authenticated remote administrator to
Command injection in the DrayTek VigorSwitch `webBackupAction` function allows authenticated remote attackers to execute
Command injection in the DrayTek VigorSwitch series' pingtrace diagnostic function allows an authenticated administrator
Command injection in DrayTek VigorSwitch's jsonstatus function allows authenticated remote administrators to execute arb
Command injection in DrayTek VigorSwitch's tftp_upgrade function enables authenticated remote administrators to execute
Command injection via the commandTable function affects 28 DrayTek VigorSwitch managed switch models across multiple fir
Command injection in DrayTek VigorSwitch firmware's fdftDevice function allows an authenticated remote administrator to
EUVD-2026-64983
GHSA-fx6v-6m5w-g9mj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB