Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via phishing or reuse
-
DeliveryAuthenticate to VigorSwitch web management interface
-
ExploitNavigate to pingtrace diagnostic function
-
ExecutionSubmit host field with injected shell metacharacters
-
ImpactExecute arbitrary OS commands as root on switch firmware
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 unconditionally requires valid administrative credentials for the VigorSwitch web management interface - the CVSS PR:H metric confirms this, and the CVE description states it explicitly. This means only accounts with full administrator-level access (not read-only or limited-privilege operator accounts) can trigger the vulnerability. Network-level reachability to the web management port (typically HTTPS/443 or an alternate management port) is required, which in properly secured deployments is restricted to a management VLAN and inaccessible from the internet. The vulnerability is specific to the pingtrace diagnostic function, which must be reachable within the authenticated admin session. Exploitation is bounded by: the mandatory administrator credential requirement (the single largest limiting factor), management interface network segmentation, and the availability of a vulnerable firmware version on the target device. There is no evidence of exploitation paths that bypass authentication requirements. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H) yields a score of 8.6, reflecting network-reachable exploitation with no complexity barrier but requiring high-privilege administrator credentials - a significant real-world constraint. The C/I/A:H impact accurately reflects that successful exploitation grants root-level OS command execution on the switch firmware, enabling full device compromise. The SC/SI/SA:N metrics indicate no confirmed scope change to adjacent systems directly from this vulnerability, though network switches in a compromised state represent a strategic pivot point in any environment. CISA has not listed this in KEV, no public POC has been identified at time of analysis, and VulnCheck is the reporting entity rather than a mass-exploitation alert - collectively these signals suggest this is not currently under broad active exploitation. The primary realistic threat is a compromised or malicious administrator account, or credential reuse against an internet-exposed management interface. Organizations that correctly segment management interfaces to trusted VLANs and avoid internet exposure face substantially lower risk than those with publicly reachable admin portals. |
| Exploit ScenarioDerived | An attacker who has obtained valid DrayTek VigorSwitch administrator credentials - through phishing, credential reuse from another breach, or default credential exploitation - authenticates to the web management interface and navigates to the pingtrace diagnostic function. A crafted host field value containing shell metacharacters (e.g., '; id; whoami;' or backtick-wrapped commands) is submitted, causing the firmware to pass the unsanitized string to an OS shell, executing the injected commands as root. This grants the attacker persistent root access to the switch, enabling configuration exfiltration, traffic interception via port mirroring, or use of the switch as a pivot point into segmented network zones. No public POC 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 the DrayTek VigorSwitch series' pingtrace diagnostic function allows an authenticated administrator to execute arbitrary OS commands with root privileges by submitting a crafted host field value. Twenty-eight distinct VigorSwitch models across the G, P, Q, PQ, FX, and PX series are affected, with patched firmware releases varying by model family (2.9.10, 2.10.6, 2.10.7, and 3.10.6). No public exploit has been identified at time of analysis and CISA has not listed this in KEV; exploitation is constrained by the mandatory administrative credential requirement confirmed by the CVSS PR:H metric.
RemediationAI
Upgrade affected VigorSwitch firmware to the patched releases identified by ENISA EUVD-2026-64976 and confirmed by the DrayTek security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/: G2540xs, P2540xs, and FX2120 to 3.9.10 or later; G2542x, P2542x, and P2542xh to 3.10.6 or later; G2282x and P2282x to 2.10.6 or later; PQ2300xb and Q2300x to 2.10.7 or later; all remaining affected models (G2540x, P2540x, G2280x, P2280x, G2121, P2121, PQ2121x, Q2121x, Q2200x, PQ2200xb, G2100, P2100, PX2060, G1280, P1280, G1282, P1282, P1281x) to 2.9.10 or later. As an immediate compensating control where patching cannot proceed immediately, restrict web management interface access to a dedicated management VLAN using ACLs, and block all internet-facing access to the admin portal - this eliminates the network attack path for externally positioned attackers. If DrayTek firmware configuration permits disabling the pingtrace diagnostic feature independently, doing so removes the specific vulnerable code path without requiring full upgrade; consult the relevant model's administration guide. Enforcing strong, unique administrator credentials and enabling multi-factor authentication where supported reduces risk from credential-reuse attacks.
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) describes the root cause: the host parameter supplied to the pingtrace diagnostic feature is passed to an underlying OS shell command without adequate sanitization, enabling injection of shell metacharacters such as semicolons, backticks, or pipes that cause the firmware to execute attacker-controlled commands. The affected devices are managed network switches running embedded Linux firmware produced by DrayTek Corporation. CPE data confirms ten distinct model identifiers in NVD (vigorswitch_g2540xs, p2540xs, fx2120, g2282x, p2282x, q2300x, pq2300xb, g2542x, p2542x, p2542xh), with tags and EUVD data extending the affected set to at least 28 models including PX2060, G1280, P1280, P1281x, G1282, P1282, G2121, P2121, PQ2121x, Q2121x, G2280x, P2280x, Q2200x, PQ2200xb, G2100, P2100, G2540x, and P2540x. The pingtrace feature is a network diagnostic utility accessible through the web-based management interface.
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
PR:H confirmed by both description and CVSS 4.0 input; root OS command execution yields full C/I/A:H; no scope change as impact is confined to the switch firmware itself.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a command injection vulnerability in the pingtrace function. The vulnerability is caused by insufficient validation of the host field 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 devices (28 affected models) contain a command injection vulnerability allowing authenticated administrators to execute arbitrary system commands with root-level privileges, either through legitimate accounts or compromised administrative credentials. No public exploit identified at time of analysis, but compromise of an administrative account would enable network disruption, unauthorized system access, and potential lateral movement to critical systems. Vendor-released patches are available and deployment should be prioritized within 30 days to close this escalation vector.
Apply vendor patch. Until patches are deployed, implement the following interim mitigations: restrict administrative access to DrayTek VigorSwitch devices to essential personnel only, enable multi-factor authentication for administrative sessions, implement detailed audit logging of all administrative activities particularly for the pingtrace diagnostic function, and consider network segmentation to limit exposure of potentially compromised devices to critical business 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 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 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-64976
GHSA-6fmm-chrg-7fpg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB