Executive brief
DrayTek VigorSwitch is a managed network switch used to connect and control devices on corporate networks. A remote attacker can exploit a flaw in the setget.cgi web interface to execute arbitrary commands with root privileges without requiring authentication, potentially allowing complete takeover of the switch and compromise of connected infrastructure.
Technical details
The vulnerability is an OS command injection (CWE-78) in the setget.cgi interface of multiple VigorSwitch models. Insufficient input filtering on the pass field allows an unauthenticated remote attacker to inject arbitrary OS commands that are executed with root privileges. The attack requires only network connectivity to the switch's web management interface; no authentication or user interaction is necessary. Exploitation allows the attacker to achieve remote code execution with full system privileges. DrayTek has released patched firmware versions for all affected models with specific version numbers ranging from 2.9.10 to 3.10.6 depending on the model.
Affected products
- DrayTek VigorSwitch G2540xs < 3.9.10
- DrayTek VigorSwitch P2540xs < 3.9.10
- DrayTek VigorSwitch FX2120 < 3.9.10
- DrayTek VigorSwitch G2282x < 2.10.6
- DrayTek VigorSwitch P2282x < 2.10.6
- DrayTek VigorSwitch Q2300x < 2.10.7
- DrayTek VigorSwitch PQ2300xb < 2.10.7
- DrayTek VigorSwitch G2542x < 3.10.6
- DrayTek VigorSwitch P2542x < 3.10.6
- DrayTek VigorSwitch P2542xh < 3.10.6
- DrayTek VigorSwitch PX2060 < 2.9.10
- DrayTek VigorSwitch G1280 < 2.9.10
- DrayTek VigorSwitch P1280 < 2.9.10
- DrayTek VigorSwitch P1281x < 2.9.10
- DrayTek VigorSwitch G1282 < 2.9.10
- DrayTek VigorSwitch P1282 < 2.9.10
- DrayTek VigorSwitch G2121 < 2.9.10
- DrayTek VigorSwitch P2121 < 2.9.10
- DrayTek VigorSwitch PQ2121x < 2.9.10
- DrayTek VigorSwitch Q2121x < 2.9.10
- DrayTek VigorSwitch G2280x < 2.9.10
- DrayTek VigorSwitch P2280x < 2.9.10
- DrayTek VigorSwitch Q2200x < 2.9.10
- DrayTek VigorSwitch PQ2200xb < 2.9.10
- DrayTek VigorSwitch G2100 < 2.9.10
- DrayTek VigorSwitch P2100 < 2.9.10
- DrayTek VigorSwitch G2540x < 2.9.10
- DrayTek VigorSwitch P2540x < 2.9.10
Timeline
- 2026-08-24: disclosed