Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via reuse/phishing
-
DeliveryAccess web management interface over network
-
ExploitSubmit crafted username/password to rebDevice function
-
ExecutionCWE-78 injection bypasses 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 vector confirms PR:H, meaning high-privilege authenticated access is mandatory. The attacker must be able to reach the web management interface over the network (AV:N), which in properly segmented environments would typically be restricted to a management VLAN or internal network. No special non-default configuration is required beyond the management interface being enabled, which is the default operational mode for managed switches. Exploitation is limited by: (1) requirement for administrative credentials, which must be obtained through a prior compromise or weak/default credential scenario; (2) network reachability to the management interface, which should be restricted by policy. There is no user interaction requirement and no complexity barrier beyond possessing credentials. |
| Impact | The CVSS 4.0 score of 8.6 reflects a network-accessible (AV:N), low-complexity (AC:L) attack requiring high-privilege credentials (PR:H) with no user interaction, resulting in full confidentiality, integrity, and availability compromise of the vulnerable system. The PR:H requirement is the primary risk-limiting factor - exploitation is gated on possession of valid administrative credentials for the web management interface, substantially reducing the attack surface compared to unauthenticated variants. No EPSS data was provided, but given the credential prerequisite, opportunistic mass exploitation is unlikely; targeted attacks against organizations where credentials are known, weak, or reused from other breaches represent the realistic threat model. No CISA KEV listing has been identified, and no public POC has been noted, making this a medium-priority issue for most organizations unless the management interface is internet-exposed. SSVC-style assessment: exploitation status is unproven (no KEV/POC), automation is constrained by required authentication, and technical impact is total if credentials are obtained - suggesting a defer-to-patch posture for air-gapped or internally-managed deployments, and urgent remediation for any switches with internet-facing management interfaces. |
| Exploit ScenarioDerived | An attacker who has obtained DrayTek VigorSwitch administrative credentials - through credential stuffing, phishing, or reuse from a previous breach - authenticates to the device's web management interface and submits a crafted username or password containing shell metacharacters (e.g., backticks or semicolons) to the rebDevice function endpoint. The unsanitized input is passed directly to an OS command, executing attacker-supplied code as root, granting full control over the switch firmware, configuration, and network traffic. No public POC has been identified, but the technique is well-understood for CWE-78 in embedded web interfaces. |
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 rebDevice function allows authenticated remote attackers with valid administrative credentials to execute arbitrary OS commands with root privileges by submitting crafted username or password values through the web management interface. At least 10 VigorSwitch models are confirmed affected per CPE data, with tags suggesting coverage across roughly 28 distinct models spanning the G, P, Q, PQ, and FX product lines. No public exploit or CISA KEV listing has been identified at time of analysis, though the advisory originates from a VulnCheck disclosure coordinated with a DrayTek security bulletin dated August 2026.
RemediationAI
Apply the vendor-released patch per the DrayTek security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/ - the advisory does not specify an exact patched firmware version number in the data available at time of analysis, so administrators should check the advisory directly for per-model firmware update links. As an immediate compensating control, restrict access to the web management interface to trusted internal management VLANs only, blocking all external or untrusted-network access to TCP port 80/443 on the switch management plane - this directly eliminates the network-reachable attack vector without impacting switching functionality. Additionally, audit all administrative accounts on affected devices, rotate credentials, disable any default or shared accounts, and enable session logging if supported. If the management interface must remain accessible to a wider network segment, consider placing it behind a VPN or jump host to enforce additional authentication before the VigorSwitch web UI is reachable.
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 server-side command injection pattern where attacker-controlled input is concatenated into a shell command without adequate sanitization. The specific sink is the rebDevice function within the VigorSwitch web management interface, which processes the username and password fields and passes them to an underlying OS command without stripping or escaping shell metacharacters. Because network switches run embedded Linux or similar RTOS environments with tightly coupled CLI-to-web bridges, such functions commonly invoke shell utilities directly rather than through parameterized APIs. Affected hardware confirmed by CPE data includes: VigorSwitch G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, and P2542XH, with tags indicating additional exposure across G2540X, P2540X, G2100, P2100, G2280X, P2280X, Q2200X, PQ2200XB, G2121, P2121, PQ2121X, Q2121X, P1281X, G1280, P1280, G1282, P1282, and PX2060. All CPE version ranges are listed as wildcard (*), meaning no floor or ceiling on firmware version is specified in the current advisory data.
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-reachable management interface (AV:N), no complexity beyond credentials (AC:L), high-privilege authentication required (PR:H); full impact on the switch but no scope change (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the rebDevice 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 switches deployed across your infrastructure contain a critical remote command injection vulnerability that allows authenticated administrators to achieve root-level control of these devices. The absence of available patches combined with the criticality of network switches to business operations creates significant insider risk and potential business continuity exposure. Immediate action to restrict administrative access and implement compensating controls is required.
No vendor-released patch identified at time of analysis. Implement these interim protections: restrict administrative access to a minimum set of authorized personnel with documented business justification, require multi-factor authentication for management interface login where supported by your VigorSwitch models, enable and continuously monitor comprehensive logging of all management operations and authentication events, segment management network traffic to isolated infrastructure, conduct regular audits of account access and login patterns for anomalies, and maintain updated inventory records of affected models for rapid patch deployment when vendor updates become available.
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-64986
GHSA-84fg-qvhg-whv8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB