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
-
ExploitAuthenticate to gain access to auth_set function
-
ExecutionInject shell metacharacters into username or password field
-
Persistauth_set passes unsanitized input to OS command execution
-
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 - the CVSS 4.0 PR:H metric explicitly confirms a high-privilege authentication prerequisite. The attacker must reach the device's web management interface over the network (AV:N); no special non-default configuration beyond an active admin account is required, as this is the standard operational state of any deployed VigorSwitch. Key limiting factors: (1) administrative credential possession is mandatory - without credentials the auth_set function cannot be reached in an exploitable way; (2) network reachability of the management interface is required - devices where management access is restricted to a dedicated management VLAN, out-of-band network, or trusted IP allowlist are substantially harder to exploit remotely; (3) the full-impact outcome (VC:H/VI:H/VA:H) is scoped to the switch OS, not downstream network infrastructure. The primary risk amplifiers are default credential use, shared passwords across devices, and Internet-exposed management interfaces. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H scores 8.6, reflecting a network-exploitable, low-complexity injection with full confidentiality, integrity, and availability impact on the vulnerable device. The PR:H requirement is the pivotal limiting factor: exploitation is gated on possession of valid administrative credentials, meaning this is not a remotely exploitable-by-default vulnerability and is not suitable for mass automated attack without a prior credential compromise step. No EPSS data was provided in the input, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is absent from CISA's KEV catalog and no public exploit code has been identified, further supporting a lower immediate exploitation urgency compared to unauthenticated network flaws at similar CVSS scores. Real-world risk is highest for organizations that expose VigorSwitch management interfaces to untrusted networks, use default or weak credentials, or share administrative passwords across devices - in those scenarios root command execution becomes readily achievable post-credential-acquisition. Scope is contained to the switch (SC:N/SI:N/SA:N), limiting lateral movement potential unless the switch's network position enables traffic interception or pivot. |
| Exploit ScenarioDerived | An attacker who has acquired valid administrative credentials for a DrayTek VigorSwitch device - through credential reuse from a prior breach, phishing of network administrators, or exploitation of default passwords - authenticates to the web management interface and submits a crafted login request where the username or password field contains shell metacharacters followed by arbitrary OS commands. The auth_set function processes this input without sanitization and passes it to the underlying OS, executing the injected commands with root privileges on the switch. No public proof-of-concept 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 in DrayTek VigorSwitch managed switches allows an authenticated remote attacker holding administrative credentials to execute arbitrary OS commands with root privileges by supplying crafted input to the auth_set function via the web management interface. At least 28 distinct VigorSwitch model lines are affected across DrayTek's G, P, PQ, Q, and FX series, with the vulnerability reported by VulnCheck and acknowledged via a DrayTek security advisory in August 2026. No public exploit code has been identified and the vulnerability is not listed in CISA's KEV catalog at time of analysis; the CVSS 4.0 score of 8.6 with PR:H accurately reflects that valid administrative credentials are a prerequisite, materially limiting opportunistic mass exploitation.
RemediationAI
Consult the DrayTek security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/ and apply the vendor-released firmware update for each affected model as the primary remediation action. Exact fixed firmware version numbers per model were not included in the provided intelligence data and must be verified directly from that advisory before deployment. As an immediate compensating control, restrict network access to the web management interface to a dedicated, trusted management VLAN or IP range only - this does not eliminate the vulnerability but removes the network attack surface for unauthenticated parties and raises the bar for exploitation. Audit all administrative accounts on VigorSwitch devices, rotate credentials, disable default accounts where possible, and enforce unique strong passwords per device to prevent credential reuse attacks that would otherwise satisfy the PR:H prerequisite. If remote web management is not operationally required, disable the web interface or bind it to a non-routable management port to further reduce exposure until patching is complete.
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 - OS Command Injection). The affected auth_set function within the VigorSwitch web management firmware accepts user-supplied username and password field values and incorporates them into OS-level command strings without adequate sanitization or escaping of shell metacharacters. When the device processes crafted input, the underlying OS executes attacker-controlled commands. CPE entries confirm affected products span at least ten explicit model variants including cpe:2.3:a:draytek_corporation:vigorswitch_g2540xs:*:*:*:*:*:*:*:*, vigorswitch_p2540xs, vigorswitch_fx2120, vigorswitch_g2282x, vigorswitch_p2282x, vigorswitch_q2300x, vigorswitch_pq2300xb, vigorswitch_g2542x, vigorswitch_p2542x, and vigorswitch_p2542xh, with tags indicating up to 28 models sharing the same vulnerable firmware component.
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 web interface (AV:N), admin credential required (PR:H), no scope change as impact is contained to the switch OS (S:U), full system compromise via root command execution (C:H/I:H/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the auth_set 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 managed switches (28+ models across G, P, PQ, Q, and FX series) contain a command injection vulnerability allowing authenticated administrators to execute arbitrary operating system commands with root privileges. No public exploit identified at time of analysis, but this creates a significant insider threat risk as compromised or malicious administrative accounts could achieve full system control. With no vendor patch currently available, immediate access controls and monitoring are critical for organizations operating these network infrastructure devices.
Restrict web management interface access to a dedicated administrative network segment via firewall; require VPN authentication for all remote management; limit administrator account count and enforce strict access controls; implement comprehensive audit logging for all administrative access and command execution; monitor logs for suspicious or unexpected commands; enforce principle of least privilege on administrative roles; segment networks to limit lateral movement if an administrative session is compromised.
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-64982
GHSA-8qhg-cv9c-6cjp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB