Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via phishing, default password, or brute force
-
DeliveryAccess VigorSwitch web management interface over network
-
ExploitSend crafted HTTP request to jsonstatus endpoint
-
ExecutionInject shell metacharacters in usescript/usefile/option parameter
-
PersistUnsanitized input passed to OS command executor
-
ImpactExecute arbitrary commands as root on 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 - confirmed by both the CVE description ('valid administrative credentials') and the CVSS 4.0 PR:H metric. The attacker must have network-layer access to the management interface (AV:N), which on many deployments is exposed only on the management VLAN or local network, though devices with remote management enabled are reachable over the internet. The attack targets the specific jsonstatus function endpoint, requiring the attacker to craft input with injected shell metacharacters in the usescript, usefile, or option fields. Key limiting factors: administrative authentication is mandatory (PR:H) - unauthenticated exploitation is not supported; network access to the management interface is required; and only models listed in EUVD-2026-64974 on firmware versions prior to the fixed releases are exploitable. |
| Impact | 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) indicates network exploitation with low complexity and no user interaction, but critically requires high privileges - valid administrative credentials. This PR:H requirement is the primary limiting factor: exploitation is restricted to actors who already hold or can obtain admin access, whether through credential compromise, default password abuse, or brute force. The impact triad is fully critical (C:H/I:H/A:H) reflecting root-level command execution that can fully compromise the device. Scope is unchanged (SC:N/SI:N/SA:N), containing lateral risk to the affected switch itself. EPSS data is not provided, and the vulnerability is not listed in CISA KEV, nor is a public POC identified - these absence signals suggest no known widespread or automated exploitation at time of analysis. Real-world priority should be elevated for organizations with internet-exposed VigorSwitch management interfaces or environments where admin credential hygiene is weak, as command injection to root represents full device takeover. |
| Exploit ScenarioDerived | An attacker who has acquired valid DrayTek VigorSwitch administrative credentials - via phishing, credential reuse against default passwords, or brute force - authenticates to the device's web management interface and submits a crafted HTTP request targeting the jsonstatus endpoint with a shell-metacharacter-injected value in the usescript, usefile, or option parameter. The backend handler passes the unsanitized input directly to an OS command execution function, executing the injected command as root. No public POC has been identified at time of analysis, but CWE-78 vulnerabilities in web management interfaces are well-understood and straightforward to exploit once credentials are obtained. |
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 jsonstatus function allows authenticated remote administrators to execute arbitrary OS commands as root by submitting crafted values in the usescript, usefile, or option fields. At least 28 distinct VigorSwitch models across multiple firmware branches are confirmed affected per EUVD-2026-64974 and vendor advisory. Vendor-released patches are available; no public exploit code or active exploitation (CISA KEV) has been identified at time of analysis.
RemediationAI
The primary fix is to upgrade each affected VigorSwitch model to its respective patched firmware version: 2.9.10 or later for G2540X, P2540X, G2280X, P2280X, G2121, P2121, PQ2121X, Q2121X, G2100, P2100, G1280, P1280, G1282, P1282, P1281X, PX2060, and Q2200X; 2.10.6 or later for G2282X and P2282X; 2.10.7 or later for Q2300X and PQ2300XB; 3.9.10 or later for FX2120, G2540XS, and P2540XS; 3.10.6 or later for G2542X, P2542X, and P2542XH. Firmware is available via the vendor advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. As a compensating control prior to patching, restrict web management interface access to trusted internal IP ranges using management ACLs or out-of-band management VLANs, and disable remote (internet-facing) management if not operationally required - this eliminates the network-reachable attack surface without affecting local administrative capability. Note that ACL-based restrictions do not mitigate risk from insider threats or compromised internal hosts.
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), specifically within the jsonstatus handler of the VigorSwitch web management interface. The usescript, usefile, and option parameters are accepted from user-supplied input and passed directly - or with insufficient sanitization - into an OS command execution context, allowing shell metacharacters to escape the intended parameter scope. CPE data from DrayTek Corporation confirms at least 10 distinct product lines (VigorSwitch G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, P2542XH), while EUVD-2026-64974 and the vendor advisory extend the scope to 28 models spanning firmware branches 2.9.x, 2.10.x, and 3.x. The attack surface is the HTTP-accessible web management interface, making this a network-exploitable vulnerability against authenticated sessions.
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 and PR:H in vendor vector; network attack via web UI; scope unchanged as impact is confined to the switch device.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the jsonstatus function. The vulnerability is caused by insufficient filtering of the usescript, usefile, and option 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 affecting 28+ models that allows authenticated administrators to execute arbitrary root-level commands. This threatens network infrastructure security and creates potential vectors for lateral movement to connected systems. Vendor patches are available and must be deployed immediately.
Apply vendor-released patch per EUVD-2026-64974 to all affected VigorSwitch models.
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 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-64974
GHSA-9hvm-m9w7-j99h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB