Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or phish admin credentials
-
DeliveryAuthenticate to web management interface
-
ExploitSubmit shell-metacharacter payload in setTime username/password field
-
ExecutionInput passes to OS command without filtering
-
ImpactArbitrary command executes 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 - CVSS PR:H confirms high-privilege access is a hard prerequisite, and the CVE description explicitly states 'valid administrative credentials for the device's web management interface' are required. The web management portal must be network-reachable from the attacker's position (AV:N); if the management interface is isolated to an out-of-band VLAN or localhost-only binding, network exploitation is blocked. The specific vulnerable sink is the setTime function's username and password input fields. Factors limiting exploitation: the attacker cannot exploit this unauthenticated; low-privileged or guest-level accounts do not satisfy the PR:H requirement; devices with management interfaces not exposed to attacker-reachable networks are not directly exploitable. There is no requirement for a non-default configuration - any VigorSwitch deployment with its web management interface enabled and admin credentials compromised is vulnerable. |
| Impact | The CVSS 4.0 score of 8.6 (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) accurately reflects a network-exploitable flaw requiring no special attack conditions beyond valid administrative credentials. PR:H is the dominant risk-limiting factor: the attacker population is restricted to those who already hold or can steal admin-level access to the device's web management interface. Once credentials are obtained, exploitation requires no further complexity (AC:L), making this a high-confidence, straightforward post-authentication escalation to root. No EPSS score was provided in the input data, and the vulnerability does not appear in the CISA KEV at time of analysis, suggesting no confirmed widespread active exploitation. No public proof-of-concept has been identified. The real-world priority level should be calibrated against credential hygiene posture: organizations with shared or weak admin passwords, internet-exposed management interfaces, or large VigorSwitch deployments face meaningful exposure. The scope change metrics (SC:N/SI:N/SA:N) indicate impact is confined to the compromised switch itself rather than propagating to adjacent network systems, though root access to a network switch still provides significant lateral movement opportunities at the data-plane level. |
| Exploit ScenarioDerived | An attacker who has acquired valid administrative credentials - via credential reuse, phishing a network administrator, or discovering a default password - authenticates to the VigorSwitch web management interface over the network. They submit a crafted payload containing shell metacharacters in the username or password parameter of the setTime function, which the firmware passes unsanitized to an OS command interpreter. The injected command executes with root privileges, granting the attacker full control over the switch including the ability to modify routing, mirror traffic, install backdoors, or pivot to adjacent network segments. |
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 setTime function enables authenticated administrators to execute arbitrary OS commands with root privileges across at least ten confirmed models, with tags suggesting up to 28 additional affected variants. The flaw stems from insufficient input sanitization of username and password fields before shell execution, a classic CWE-78 pattern. No public exploit code or CISA KEV listing has been identified at time of analysis; exploitation is gated behind valid administrative credentials, per the CVSS PR:H rating and vendor description.
RemediationAI
Apply firmware updates per DrayTek's August 2026 security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/; specific patched firmware version numbers are not confirmed in the available data and must be retrieved directly from that advisory. As a compensating control pending patching, immediately restrict web management interface access to dedicated management VLANs or out-of-band networks, blocking all internet-facing or untrusted-network exposure to TCP port 80/443 on affected devices. Audit all administrative accounts and rotate credentials, disabling any shared or default accounts. If the management interface supports IP-based access control lists, enforce allow-listing of known administrator source addresses. Disabling the setTime web function specifically may not be possible without firmware modification, so network-level isolation of the management plane is the most effective interim control. Monitor authentication logs for anomalous admin login activity.
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
CWE-78 (Improper Neutralization of Special Elements used in an OS Command) describes the root cause: user-controlled input reaching a shell interpreter without adequate filtering or escaping. In DrayTek VigorSwitch firmware, the setTime management function accepts username and password parameters through the web interface and passes them to an underlying OS command without sufficient sanitization, allowing shell metacharacters to break out of the intended command context. The affected devices are managed Ethernet switches running embedded Linux-like environments, confirmed by the description of root-level execution impact. CPE strings under the draytek_corporation vendor namespace enumerate ten discrete VigorSwitch models (G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, P2542XH) with wildcard version ranges, indicating all firmware revisions of those lines are implicated. The broader tag set suggests the vulnerable setTime code is shared across the wider VigorSwitch product family.
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 but admin credentials required (PR:H); impact confined to the switch itself with 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 setTime 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 contain a command injection vulnerability in at least 10 confirmed models that enables authenticated administrators to execute arbitrary commands with root privileges, directly threatening network infrastructure integrity. No vendor patch is currently available, leaving organizations reliant on administrative access controls to mitigate risk. Compromise of administrator credentials could grant threat actors complete control of network switching infrastructure.
Implement strict network-based administrative access controls via IP whitelisting, VPN-only access, and network segmentation; enforce multi-factor authentication for administrator accounts if supported; disable remote administrative access where operationally possible; mandate quarterly password rotation for all administrative accounts; deploy network intrusion detection targeting suspicious command execution patterns; centralize and monitor all administrative activity logs through SIEM for anomaly detection and forensic capability.
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 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
Command injection in DrayTek VigorSwitch firmware's fdftDevice function allows an authenticated remote administrator to
EUVD-2026-64989
GHSA-jppm-3g4f-r3x7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB