DrayTek VigorSwitch setget.cgi Pre-Authentication Command Injection
First seen Aug 25, 2026 · Updated Aug 25, 2026 · CVSS 9.8
A critical pre-authentication command injection vulnerability affects multiple DrayTek VigorSwitch models, allowing remote attackers to execute arbitrary commands with root privileges without any credentials. Given the CVSS score of 9.8 and the device's role as network infrastructure, this flaw poses an immediate risk of full network compromise. Organizations using DrayTek switches at network edges should treat this as an urgent patching priority.
Technical Analysis
CVE-2026-71921 stems from insufficient input sanitization of the 'pass' parameter in the setget.cgi web interface on DrayTek VigorSwitch devices, enabling OS command injection via crafted HTTP requests. Because the vulnerability requires no authentication, an attacker with network access to the management interface can achieve root-level remote code execution, potentially pivoting to internal network segments, intercepting traffic, or deploying persistent implants on the switch firmware. This class of vulnerability closely mirrors prior DrayTek router/switch CGI injection flaws exploited by botnets (e.g., Mirai variants) for mass internet-wide scanning and compromise. Organizations running AI agent infrastructure behind or connected via compromised DrayTek switches face risk of network-level man-in-the-middle attacks, exposure of API keys and credentials transiting the switch, and lateral movement into agent orchestration hosts or RAG data stores if the switch sits on the same network segment as agent-serving systems.
Affected Systems
Multiple DrayTek VigorSwitch models with exposed setget.cgi web management interface; specific vulnerable firmware versions not disclosed in source data - consult DrayTek security advisories for exact model/version list
Indicators of Compromise
- No specific IOCs published at time of disclosure; monitor for anomalous requests to /cgi-bin/setget.cgi containing shell metacharacters (;, |, &, $(), backticks) in the 'pass' parameter
Remediation Steps
- 1
Apply vendor patch
Check DrayTek's official security advisory page and update affected VigorSwitch devices to the patched firmware version as soon as it is released.
- 2
Restrict management interface access
Disable remote/WAN access to setget.cgi and the switch's web management interface; restrict access to trusted internal management VLANs or a dedicated out-of-band management network.
- 3
Deploy network segmentation
Ensure network switches and other infrastructure devices are isolated from segments hosting AI agent workloads, secrets management systems, and RAG data stores to limit lateral movement impact.
- 4
Monitor for exploitation
Deploy IDS/IPS signatures for command injection patterns targeting setget.cgi and monitor switch logs for unauthorized configuration changes or command execution.
- 5
Rotate exposed credentials
If a device is suspected compromised, rotate all credentials and API keys that may have transited the network segment, including those used by AI agents or automation systems.
CVE / Advisory IDs
Industries Most Exposed
Respond to this threat
Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.