Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via phishing or credential reuse
-
DeliveryReach VigorSwitch web management interface over network
-
ExploitCraft malicious username or password with shell metacharacters
-
ExecutionSubmit crafted input to getDetail function
-
PersistInjected OS commands execute as root
-
ImpactAchieve full device compromise
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 device's web management interface, confirmed by PR:H in the CVSS 4.0 vector. The management interface must be network-accessible from the attacker's position (AV:N). The specific vulnerable code path is the getDetail function's handling of the username and password input fields - meaning the attacker must be able to interact with the authentication or post-authentication management flow to inject commands. No user interaction beyond the attacker's own session is required (UI:N). Exploitation is bounded by three concrete prerequisites: (1) possession of valid admin-level credentials, (2) network reachability to the web management interface, and (3) a vulnerable firmware version running on one of the affected models. Devices whose management interface is isolated to a dedicated management VLAN or blocked at perimeter have materially reduced exposure despite the network attack vector. |
| Impact | The CVSS 4.0 score of 8.6 is materially constrained by PR:H, meaning an attacker must first possess valid administrative credentials before exploitation is possible. The network attack vector (AV:N) and low attack complexity (AC:L, AT:N) indicate that once credentials are in hand, exploitation is straightforward and remotely executable without interaction. The full C:H/I:H/A:H impact on the vulnerable system reflects root-level command execution, which is severe - but restricted to actors who already control an admin account. No CISA KEV listing is present in the provided data, and no public exploit or POC has been identified, which tempers urgency relative to the raw score. EPSS data was not provided. Real-world risk is highest for organizations that expose VigorSwitch management interfaces to untrusted networks or that practice credential reuse across devices, and lower for environments where management plane access is strictly firewalled. The absence of a scope change (SC:N/SI:N/SA:N) bounds blast radius to the compromised switch itself, though switch-level compromise carries significant network-interception and pivoting potential. |
| Exploit ScenarioDerived | An attacker who has obtained valid VigorSwitch administrative credentials - through phishing, credential stuffing, insider access, or reuse of credentials stolen from another system - authenticates to the web management interface and submits a crafted request to the getDetail function with shell metacharacters embedded in the username or password fields. Because input sanitization is absent, the injected payload is interpreted by the underlying OS and executed as root, granting the attacker full control of the switch firmware, the ability to exfiltrate management-plane secrets, or the ability to intercept or manipulate network traffic traversing the device. |
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' getDetail function enables authenticated remote attackers holding valid administrative credentials to execute arbitrary OS commands with root privileges. The flaw (CWE-78) arises from the web management interface failing to sanitize username and password fields before incorporating them into system command execution. DrayTek published a security advisory in August 2026 covering a broad range of VigorSwitch models; no public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Apply firmware updates per DrayTek's official security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. Patched firmware version numbers were not independently confirmed from the available data - consult the advisory to identify the minimum safe version for each specific model. As an immediate compensating control, restrict access to the VigorSwitch web management interface to dedicated, firewalled management VLANs or out-of-band management networks; blocking internet-facing exposure significantly reduces real-world attack surface given the PR:H requirement. Enforce strong, unique administrative credentials on all VigorSwitch devices and rotate credentials immediately if reuse with other systems is suspected. If remote web management is not operationally required, disable it entirely and manage devices in-person or via a jump host. Note that credential restriction does not eliminate risk if an insider threat or already-compromised management host is the attacker.
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) identifies the root cause: the getDetail function in the VigorSwitch web management backend passes attacker-controlled username and password fields directly into an OS command context without stripping or escaping shell metacharacters, enabling classic command injection. CPE data confirms at least ten distinct VigorSwitch models are affected - G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, and P2542XH - with tags extending the scope to nearly 28 models including G1280, P1280, G2121, P2121, G2100, and others. 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 confirms network-reachable exploitation by an authenticated administrator with full triad impact on the device and no lateral scope change to subsequent systems.
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 (PR:H); network-accessible with no special conditions (AV:N/AC:L); root command execution yields full CIA impact; no scope change as blast radius stays within the switch.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the getDetail 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 (CVSS 8.6) enabling administrative users to execute arbitrary OS commands with root privileges. No public exploit has been identified at time of analysis, but organizations using affected VigorSwitch models face significant infrastructure compromise risks including data exfiltration and lateral network movement.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict administrative access through network segmentation and multi-factor authentication, disable web-based management interfaces where operationally feasible, implement enhanced logging and monitoring for all administrative account activities, deploy network-based IDS/IPS rules to detect command injection patterns, isolate affected devices to a dedicated, restricted management network segment, and implement strict access controls limiting administrative interface connectivity to authorized personnel and systems.
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 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-64984
GHSA-f6x9-q3vc-f2xw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB