Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via phishing or reuse
-
DeliveryAuthenticate to VigorSwitch web management interface
-
ExploitSubmit crafted parameter to commandTable endpoint
-
ExecutionInject backtick/newline shell metacharacters
-
PersistExecute arbitrary OS commands as root
-
ImpactEstablish persistent access or pivot through switch
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 is explicitly stated in the description and confirmed by the CVSS 4.0 vector's PR:H metric. The commandTable function must be reachable, which is standard when the web management interface is accessible. Exploitation is therefore limited to actors who have already achieved administrative-level authentication, whether through legitimate access, credential theft, default credential exploitation, or brute force. The attack is network-reachable (AV:N) but does not work against unauthenticated sessions. There is no indication of non-default configuration required beyond having admin credentials. Limiting factors: admin credential possession is the key gate; environments enforcing multi-factor authentication on management interfaces, strong unique passwords, and network-level restrictions on management interface exposure significantly reduce realistic exploitation probability. |
| Impact | The CVSS 4.0 score of 8.6 is driven primarily by the high confidentiality, integrity, and availability impact metrics against the vulnerable system, but PR:H (high privileges required) is the most important constraint for realistic risk prioritization - an attacker must already hold valid administrative credentials before exploitation is possible. This materially narrows the attack surface compared to unauthenticated network-exposed vulnerabilities. No EPSS data was provided in the intelligence package, and this CVE does not appear in CISA KEV, meaning exploitation in the wild has not been confirmed. No public exploit code has been identified at time of analysis. The practical risk concentrates on environments where switch management interfaces are exposed to untrusted networks, where default or weak admin credentials are in use, or where admin credentials may have been compromised through phishing or credential reuse - even a mid-sized municipal IT team managing a mixed-vendor switch estate should treat this as urgent given the root-level command execution impact and the breadth of affected models. The absence of KEV listing should not produce complacency: network infrastructure compromise via authenticated-but-exploitable admin interfaces is a well-documented lateral movement pattern. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials - via credential reuse, phishing, brute force against an exposed management interface, or insider access - authenticates to the VigorSwitch web management interface and submits a crafted HTTP request to the commandTable endpoint with a parameter value containing a backtick-wrapped OS command or a newline-injected command sequence. The device processes the input through an insufficiently filtered shell execution path, causing the injected command to run as root, granting the attacker full control over the switch including traffic inspection, routing manipulation, or persistent backdoor installation. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Command injection via the commandTable function affects 28 DrayTek VigorSwitch managed switch models across multiple firmware branches, allowing an authenticated administrator to execute arbitrary OS commands with root privileges on the device. The root cause is incomplete sanitization of shell metacharacters - specifically backticks, newline characters, and single quotes - in a parameter field processed by the web management interface. Exploitation requires valid administrative credentials; patch available per DrayTek's August 2026 security advisory. No public exploit has been identified at time of analysis, and this CVE is not listed in CISA KEV.
RemediationAI
The primary remediation is to upgrade affected VigorSwitch firmware to the patched versions per the DrayTek August 2026 security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. Target versions vary by model: 2.9.10 for most 2.x-line devices, 2.10.6 for G2282X and P2282X, 2.10.7 for Q2300X and PQ2300Xb, 3.9.10 for G2540XS/P2540XS/FX2120, and 3.10.6 for G2542X/P2542X/P2542XH. As a compensating control while patching is underway, restrict access to the web management interface to trusted internal management VLANs or dedicated out-of-band management networks, and block TCP port 443/80 (web UI) from untrusted subnets at the perimeter - note this does not eliminate risk if admin credentials are already compromised. Enforce strong, unique administrative passwords across all VigorSwitch devices and audit for default credential use. Additional VulnCheck advisory context available at https://www.vulncheck.com/advisories/draytek-vigorswitch-multiple-models-os-command-injection-via-commandtable.
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: the commandTable function passes user-controlled input to a shell interpreter without adequately stripping or escaping characters that carry special meaning in POSIX shells. Backticks enable subshell command substitution, newline characters allow sequential command chaining, and unescaped single quotes can break out of shell quoting context - any of these alone is sufficient for injection. The vulnerability spans a broad set of VigorSwitch firmware lines (G, P, Q, PQ, FX, PX series), with affected firmware branches tracked separately: most models below 2.9.10, G2282X/P2282X below 2.10.6, Q2300X/PQ2300Xb below 2.10.7, and the XS/2542 series below 3.9.10 or 3.10.6 depending on the model. CPE strings confirm DrayTek Corporation as vendor across all affected products.
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
Administrative credentials required for web management access (PR:H); full OS command execution as root yields high C/I/A; no scope change as impact is confined 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 commandTable function. The vulnerability is caused by incomplete filtering of dangerous characters such as backticks, newline characters, and single quotes in the parameter field. 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 (28 models) contain a HIGH-severity vulnerability (CVSS 8.6) allowing authenticated administrators to execute arbitrary OS commands with root privileges, potentially compromising network infrastructure and enabling insider threats or lateral movement. While no public exploit has been identified at time of analysis, the root-level access capability makes this significant and requires prompt attention. A vendor patch is available.
Apply vendor patch.
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 in DrayTek VigorSwitch firmware's fdftDevice function allows an authenticated remote administrator to
EUVD-2026-64975
GHSA-j4rx-rm3m-qfjf
NVD
CVE.org
EPSS
Exploit-DB