Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid admin credentials
-
DeliveryAccess VigorSwitch web management interface
-
ExploitSubmit crafted username/password to setDevNet
-
ExecutionBypass insufficient input filtering
-
ImpactExecute arbitrary OS commands 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 (confirmed by CVSS PR:H). The attack vector is network-accessible (AV:N), meaning the management interface must be reachable from the attacker's position - either over the LAN or, if misconfigured, over the internet. No user interaction beyond the attacker's own actions is required (UI:N), and no special attack complexity or timing conditions apply (AC:L, AT:N). What limits exploitation: the attacker must possess administrator-level credentials before the injection can be triggered; unauthenticated remote exploitation is not possible per the CVE description and CVSS vector. Exploitation is further constrained to devices where the web management interface is network-reachable from the attacker's position. |
| Impact | The CVSS 4.0 score of 8.6 (with VC:H/VI:H/VA:H) accurately reflects the post-exploitation impact - root-level shell access on a network switch - but the PR:H requirement is a meaningful real-world mitigating factor. An attacker must first obtain valid administrative credentials before triggering the injection, which significantly narrows the threat actor pool compared to pre-authentication vulnerabilities. No EPSS data was provided, no KEV listing exists, and no public proof-of-concept code has been identified. The realistic risk is highest in environments with weak administrative password hygiene, credential reuse from other compromised systems, or where the web management interface is exposed to untrusted networks. Organizations that restrict management-plane access and enforce strong, unique admin credentials substantially reduce their exposure. The absence of a disclosed fix version in the advisory reference data is a data gap - patch applicability cannot be confirmed without consulting the vendor advisory directly. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials - through phishing, credential stuffing from a prior breach, or a default password left unchanged - logs into the VigorSwitch web management interface and submits a crafted username or password string containing shell metacharacters to the setDevNet function. The insufficient input filtering allows the injected command to execute in the device's OS shell context with root privileges, giving the attacker full control of the switch's operating environment. No public proof-of-concept code has been identified, but command injection via unsanitized web form fields is a well-understood and easily replicable attack class. |
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 setDevNet function allows authenticated remote attackers to execute arbitrary OS commands with root privileges by supplying crafted username or password values. At least ten VigorSwitch models are confirmed affected via CPE data, with the full tag list extending coverage to approximately 28 model variants. No public exploit code or CISA KEV listing has been identified at time of analysis, but the vulnerability class (CWE-78) and the root-level impact make it high priority for any DrayTek VigorSwitch deployment where administrative credentials may be compromised or shared.
RemediationAI
Consult the DrayTek security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/ and apply the firmware update specified therein - an exact patched firmware version was not included in the available intelligence data and must be confirmed directly from DrayTek. As an immediate compensating control, restrict access to the VigorSwitch web management interface to dedicated, isolated management VLANs or jump hosts, preventing general network reachability to the admin panel; this eliminates the network-accessible attack surface entirely without affecting switch data-plane operations. Additionally, enforce unique, strong administrative passwords per device and audit for credential reuse with other systems. If remote management is operationally required over untrusted networks, consider placing the management interface behind a VPN with multi-factor authentication. Disabling the web management interface entirely in favor of CLI-only access via SSH (if supported by the firmware) is a stronger control but may impact operational workflows.
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) is the root cause - the setDevNet function on the device's web management interface passes user-supplied username and password fields to an underlying shell command without adequate sanitization, allowing shell metacharacters to break out of the intended command context. The vulnerability resides in DrayTek's VigorSwitch firmware across multiple hardware platforms (Layer 2/3 managed switches), as confirmed by CPE strings covering the G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, and P2542XH model lines. These are network-layer devices whose compromise has direct infrastructure impact. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N) confirms the attack is purely network-based with no attack complexity or user interaction requirements beyond supplying credentials.
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), no complexity or interaction required (AC:L/UI:N), but admin credentials mandatory (PR:H); scope unchanged 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 setDevNet 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 across approximately 28 model variants contain a command injection vulnerability (CVE-2026-71943, CVSS 8.6) allowing authenticated remote attackers to execute arbitrary commands with root privileges. No public exploit identified at time of analysis, but the vulnerability exposes organizations to critical infrastructure compromise if administrative credentials are weak, compromised, or shared among staff. This directly threatens network backbone integrity and demands immediate access control hardening.
No vendor-released patch identified at time of analysis. Implement strict access controls restricting administrative functions to authorized personnel only with unique strong passwords, maintain detailed audit logging of all administrative activities, use network segmentation to isolate management interfaces, disable remote administrative access where operationally feasible, and establish continuous monitoring for anomalous administrative activity or credential usage patterns.
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 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
Command injection in DrayTek VigorSwitch firmware's fdftDevice function allows an authenticated remote administrator to
EUVD-2026-65002
GHSA-hpmr-74gj-7m6c
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB