Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid admin credentials
-
DeliveryAccess VigorSwitch web management interface
-
ExploitSubmit crafted setDevice request with injected shell payload
-
ExecutionUnsanitized input passed to OS command executor
-
ImpactExecute arbitrary commands as root on switch firmware
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 device's web management interface - the CVSS PR:H metric confirms this is a high-privilege prerequisite, not an unauthenticated path. The attack is delivered over the network (AV:N) to the HTTP/HTTPS management port, meaning the management interface must be reachable from the attacker's location. No special non-default configuration is required beyond the management interface being accessible and admin credentials being known. What limits exploitation: (1) admin credentials must be compromised or known in advance; (2) the management interface must be network-reachable from the attacker - organizations that isolate management interfaces to out-of-band VLANs substantially reduce exposure; (3) no user interaction is required once credentials are obtained, meaning exploitation is otherwise straightforward. There is no requirement for a specific firmware version to be running based on available CPE data. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H) scores 8.6, reflecting network reachability and full system-level impact, tempered significantly by the PR:H requirement - valid administrative credentials are a hard prerequisite. This substantially reduces opportunistic exploitation risk compared to unauthenticated vulnerabilities: an attacker must first compromise or possess admin-level access to the device's web interface before this vulnerability is relevant. There is no CISA KEV listing and no EPSS score was provided in the source data, so exploitation probability cannot be quantified numerically. No public proof-of-concept code has been identified. The realistic threat model centers on attackers who have already obtained admin credentials through phishing, credential stuffing, or lateral movement - at that point this vulnerability provides a reliable path to root-level device control. The wide model range (28+ SKUs) means that organizations running heterogeneous DrayTek switching infrastructure face a broad remediation scope. The absence of a scope change (SC:N/SI:N/SA:N) bounds the impact to the switch device itself rather than downstream network segments, but a compromised managed switch is still a high-value position for traffic interception or network reconfiguration. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials - through phishing, password reuse, or prior network compromise - authenticates to the VigorSwitch web management interface over the network. They submit a crafted configuration request to the setDevice function with a payload embedded in the username, password, or location field (e.g., a shell metacharacter sequence such as a semicolon or backtick followed by an arbitrary command). The device's backend processes this unsanitized input, executing the injected command as root, giving the attacker full control of the switch's operating system. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Command injection via the setDevice function affects multiple DrayTek VigorSwitch managed switch models, allowing an authenticated remote administrator to execute arbitrary OS commands with root privileges by supplying unsanitized input in the username, password, or location fields. The breadth of affected hardware - at least 28 distinct VigorSwitch SKUs spanning G, P, PQ, Q, and FX series - substantially widens the organizational exposure surface. No public exploit code or CISA KEV listing has been identified at time of analysis, but the network-accessible management interface and high-impact outcome make this a meaningful post-compromise escalation path.
RemediationAI
The primary remediation is to apply the patched firmware released by DrayTek, details of which are available in the vendor security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. An exact fixed firmware version was not independently confirmed in the available source data, so administrators should consult that advisory directly for model-specific upgrade instructions. As an immediate compensating control, restrict access to the web management interface to a dedicated out-of-band management VLAN and deny access from general user or production networks - this does not eliminate the vulnerability but significantly reduces the attack surface to hosts that legitimately require administrative access. Additionally, enforce multi-factor authentication on any VPN or jump-host used to reach the management interface, and rotate all administrative credentials on affected devices. Disabling the web management interface entirely in favor of CLI-only access (if supported by the model) removes the HTTP attack surface but may impact operational workflows. Do not expose the management interface directly to the internet.
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 rooted in CWE-78 (Improper Neutralization of Special Elements used in an OS Command), a classic OS command injection pattern where attacker-controlled string values are concatenated into a shell command without proper escaping or allowlisting. The affected function, setDevice, processes device configuration fields - username, password, and location - and passes them to underlying OS-level command execution without sanitization. CPE data confirms the affected vendor as DrayTek Corporation across the VigorSwitch product line (cpe:2.3:a:draytek_corporation:vigorswitch_*). DrayTek VigorSwitch devices run embedded Linux firmware and expose a web-based management interface; the setDevice function is part of that interface's configuration backend. Because the injected command executes with root privileges, the full firmware environment is compromised on successful exploitation.
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 delivery and no user interaction confirmed; PR:H because admin credentials are explicitly required; no scope change as impact is bounded to the switch itself.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the setDevice function. The vulnerability is caused by insufficient sanitization of the username, password, and location 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 managed switches across 28+ models can be compromised at the administrator level to allow complete network infrastructure takeover, creating a critical post-compromise escalation risk for organizations. No public exploit code has been identified at time of analysis, but the severity of potential impact warrants immediate action. Without vendor patches currently available, organizations must implement interim security controls to mitigate this exposure.
Restrict management interface access to trusted administrative subnets via firewall; implement multi-factor authentication for all administrative accounts; disable remote management where operationally feasible; enable detailed logging and monitoring of administrative operations; conduct quarterly reviews of administrative privileges; maintain isolated lab environment for rapid patch testing and deployment.
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 DrayTek VigorSwitch's getVid function allows an authenticated remote administrator to execute arbit
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
EUVD-2026-64985
GHSA-3f7c-qwwm-whmh
NVD
CVE.org
EPSS
Exploit-DB