Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid admin credentials
-
DeliveryAuthenticate to VigorSwitch web management interface
-
ExploitSubmit crafted username/password payload to setDevProto function
-
ExecutionBypass insufficient input filtering
-
ImpactExecute arbitrary OS 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 - the CVSS 4.0 PR:H metric confirms high-privilege authentication is mandatory and is explicitly stated in the CVE description. The attacker must have network access to the web management interface (AV:N). The vulnerability is triggered specifically by submitting crafted input to the setDevProto function via the username or password fields - no special non-default device configuration is required beyond the management interface being reachable. The primary factor limiting exploitation is the admin credential requirement: an attacker without valid credentials cannot reach the vulnerable code path. Deployment postures most at risk are internet-exposed management interfaces combined with weak, default, or reused credentials. Environments where the management interface is restricted to internal networks or VPN access face substantially lower exploitation probability. |
| Impact | The CVSS 4.0 score of 8.6 accurately reflects the high impact potential but is tempered by the PR:H requirement - valid administrative credentials are mandatory for exploitation, making this a post-authentication vulnerability rather than an unauthenticated RCE. Real-world risk is therefore heavily dependent on the credential exposure posture: internet-facing management interfaces with default, weak, or previously compromised credentials elevate practical exploitability significantly. The network attack vector (AV:N) and low complexity (AC:L) mean that once credentials are obtained, exploitation is straightforward and requires no special tooling or timing. No EPSS data was provided, no CISA KEV listing is confirmed, and no public POC has been identified - these are meaningful risk-reducing signals. The CVSS vector is internally consistent with the description and shows no conflicts. For organizations with the management interface isolated to internal networks and strong credential hygiene, this is a medium-priority patching item; for those with internet-exposed management interfaces or credential reuse exposure, it warrants urgent remediation. |
| Exploit ScenarioDerived | An attacker who has acquired valid VigorSwitch administrative credentials - via credential stuffing against an internet-exposed management portal, phishing, or reuse from a previously compromised account - authenticates to the web management interface and submits a crafted HTTP request to the setDevProto function with shell metacharacters embedded in the username or password field. The unsanitized input is passed directly to an OS command execution context, resulting in arbitrary command execution as root on the switch's operating system. No public POC has been identified, but CWE-78 injection in web management interfaces is a well-documented and easily exploitable pattern once valid credentials are in hand. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Command injection in multiple DrayTek VigorSwitch models enables authenticated administrators to execute arbitrary OS commands with root privileges through the setDevProto function's unsanitized username and password fields. At least 10 CPE-confirmed models are affected, with vendor tags suggesting a broader footprint of approximately 28 VigorSwitch variants. No public exploit code or CISA KEV listing has been identified at time of analysis; however, DrayTek published a security advisory in August 2026 acknowledging the vulnerability and the authentication prerequisite of valid admin credentials is the primary constraint on real-world exploitation.
RemediationAI
Apply the firmware update released by DrayTek as documented in the security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. Exact patched firmware versions must be obtained directly from that advisory, as specific fix versions were not present in the available intelligence data. As an immediate compensating control pending patching, restrict the web management interface to trusted internal management VLANs or VPN-only access - eliminating internet exposure of the admin interface removes the network attack vector entirely and is highly effective with minimal operational impact for most deployments. Additionally, audit and rotate all administrative credentials on affected devices to limit exposure from credential reuse or prior compromise. If web management is not operationally required, disabling it and managing the switch via CLI over SSH provides strong mitigation without loss of core switching functionality. The VulnCheck advisory at https://www.vulncheck.com/advisories/draytek-vigorswitch-multiple-models-os-command-injection-via-setdevproto may contain additional technical detail to assist triage.
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 resides in the setDevProto function of the VigorSwitch web management interface, which fails to adequately sanitize username and password field values before incorporating them into OS-level command execution - a textbook CWE-78 (Improper Neutralization of Special Elements used in an OS Command) flaw. Attacker-controlled input is concatenated directly into shell commands without escaping or allowlist validation, allowing shell metacharacters to break out of the intended command context. The affected CPE strings (cpe:2.3:a:draytek_corporation:vigorswitch_*) cover at least 10 distinct hardware models across DrayTek's managed PoE and non-PoE switch lines. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N is fully consistent with this description: the web management interface is network-reachable, exploitation requires no special complexity beyond supplying crafted input, and the resulting commands execute with root-level OS privileges giving full confidentiality, integrity, and availability impact to the switch's operating system.
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
Admin credentials required per description sets PR:H; network-accessible web interface gives AV:N; root command execution yields full C/I/A; no scope change as impact stays within the switch OS.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the setDevProto 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 network infrastructure hardware contains a critical authorization flaw (CVSS 8.6) affecting at least 10 confirmed equipment variants that exposes organizations to root-level compromise through privileged user accounts. The attack surface is restricted to authenticated administrators, but this remains a material risk in environments where administrator credential security or access governance may be weak. Absent vendor-supplied patches, organizations must implement compensating controls immediately.
Restrict switch management access to segregated administrative networks; enforce multi-factor authentication for all administrative accounts; minimize and document administrator account distribution across personnel; enable and actively monitor detailed administrative command logs; conduct credential hygiene assessment and implement periodic administrative account reviews; evaluate network isolation or replacement of affected switches in critical infrastructure deployments.
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' 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
Command injection in DrayTek VigorSwitch firmware's fdftDevice function allows an authenticated remote administrator to
EUVD-2026-64988
GHSA-p299-wp3x-668q
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB