Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via default password or phishing
-
DeliveryReach web management interface over network
-
ExploitSubmit crafted username/password payload to fdftDevice
-
ExecutionBypass input filtering via shell metacharacters
-
ImpactExecute arbitrary commands as root on switch OS
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 PR:H metric confirms this high-privilege prerequisite; unauthenticated exploitation is not possible. The attacker must have network-level reachability to the web management interface (typically HTTP/HTTPS, default port 80 or 443). The vulnerability is specifically triggered when crafted input is supplied in the username or password authentication fields processed by the fdftDevice function. Exploitation is constrained by: the hard requirement for administrative credentials (PR:H), network accessibility to the management interface, and the specific affected VigorSwitch models and firmware versions. Devices where the web management interface is isolated behind a management VLAN with strict ACLs, using strong non-default credentials, face substantially reduced practical risk despite the network attack vector. |
| Impact | The CVSS 4.0 base score of 8.6 reflects full impact across confidentiality, integrity, and availability, but this must be read alongside the PR:H prerequisite - valid administrative credentials are required, which significantly narrows the realistic attack surface compared to unauthenticated network vulnerabilities. No EPSS score was provided in the available intelligence, so exploitation probability cannot be precisely quantified. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified, placing exploitation status as unconfirmed at time of analysis. Real-world risk is highest in environments where management interfaces are internet-exposed, default or weak credentials are in use, or where credential reuse from prior breaches is likely - even a small network operations team managing dozens of DrayTek switches faces material risk if credential hygiene is poor. The CVSS vector is internally consistent with the description: network-reachable, admin-authenticated, low-complexity post-auth exploit yielding root execution with no scope change to other systems. |
| Exploit ScenarioDerived | An attacker who obtains valid DrayTek VigorSwitch administrative credentials - via credential stuffing against exposed management interfaces, phishing, or exploitation of default factory passwords - authenticates to the web management interface and submits a crafted payload containing shell metacharacters in the username or password field targeting the fdftDevice function. The unsanitized input is passed directly into an OS command execution routine, granting root-level code execution on the switch's embedded OS. From this position, the attacker can alter switch configurations, capture or redirect network traffic, install persistent backdoors in firmware, or use the switch as a pivot point into adjacent network segments. |
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 firmware's fdftDevice function allows an authenticated remote administrator to execute arbitrary OS commands with root privileges by supplying crafted input in the username or password fields of the web management interface. Approximately 28 VigorSwitch models across the G, P, Q, and PQ series are affected, confirmed by both VulnCheck reporting and a DrayTek vendor advisory published August 2026. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.
RemediationAI
The primary fix is to apply firmware updates per DrayTek's August 2026 security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/; exact patched firmware version numbers must be confirmed directly from that advisory, as specific fixed versions are not enumerated in the available intelligence data. As an immediate compensating control prior to patching, restrict access to the web management interface to dedicated management VLANs or specific trusted IP ranges using ACLs or perimeter firewall rules - this eliminates remote exploitation paths for any attacker not already on the trusted management network, though it does not address insider threats or compromised management hosts. Rotate and strengthen all administrative credentials on affected devices, replacing default passwords and ensuring credentials are not shared with other systems. Where CLI-only management via SSH is operationally feasible, disabling the HTTP/HTTPS web management interface entirely removes the vulnerable attack surface, though this trades convenience for reduced risk.
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 fdftDevice function in DrayTek VigorSwitch firmware concatenates user-supplied username and password strings into OS-level shell commands without adequate sanitization or allowlisting - a textbook OS Command Injection flaw (CWE-78). This class of vulnerability arises when input validation is applied inconsistently or superficially, allowing shell metacharacters to break out of the intended command context. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N) confirms the attack surface is the network-facing web management interface, reachable at low complexity once administrative credentials are held. Affected CPEs span ten explicitly enumerated models: VigorSwitch G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, and P2542XH, with VulnCheck tags identifying approximately 18 additional models including the PX2060, G1280, P1280, P1281X, G1282, P1282, G2121, P2121, PQ2121X, Q2121X, G2280X, P2280X, Q2200X, PQ2200XB, G2100, P2100, G2540X, and P2540X.
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) and network-reachable management interface (AV:N/AC:L); root-level command execution yields full C/I/H/A:H impact; no scope change to other systems.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the fdftDevice 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 switches (28 models across G/P/Q/PQ series) contain a command injection vulnerability enabling authenticated administrators to execute arbitrary root-level commands. This directly impacts organizations' network infrastructure security and creates significant insider threat and lateral movement risks. With no vendor patch available, immediate compensating controls are critical to protect network integrity.
No vendor-released patch identified at time of analysis. Implement interim mitigations: restrict management interface access via network segmentation and IP allowlisting to authorized administrator networks; limit and audit administrative user accounts to essential personnel only; enable comprehensive logging and monitoring of all administrative activities; disable remote management access if operationally feasible; implement out-of-band management access as alternative to web-based administration.
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-64987
GHSA-q8x9-vhc2-6p4c
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB