Executive brief
DrayTek VigorSwitch is a managed network switch used in enterprise environments to control data traffic and network access. A command injection vulnerability in the device's web management interface allows authenticated administrators to execute arbitrary system commands with root-level privileges by submitting specially crafted input. This could enable a compromised admin account or an attacker with admin access to take complete control of the switch and potentially the entire network infrastructure.
Technical details
The vulnerability is an OS command injection (CWE-78) in the setDevice function of the mainfunction.cgi component. The flaw stems from insufficient sanitization of the username, password, and location fields before their use in command execution. The attack vector is network-based and requires valid administrative credentials to the device's web management interface. A successful exploit allows arbitrary command execution with root privileges on the affected appliance. DrayTek has released patched firmware for all affected models with specific fixed versions (ranging from 2.9.10 to 3.10.6 depending on model).
Affected products
- DrayTek VigorSwitch G2540xs before 3.9.10
- DrayTek VigorSwitch P2540xs before 3.9.10
- DrayTek VigorSwitch FX2120 before 3.9.10
- DrayTek VigorSwitch G2282x before 2.10.6
- DrayTek VigorSwitch P2282x before 2.10.6
- DrayTek VigorSwitch Q2300x before 2.10.7
- DrayTek VigorSwitch PQ2300xb before 2.10.7
- DrayTek VigorSwitch G2542x before 3.10.6
- DrayTek VigorSwitch P2542x before 3.10.6
- DrayTek VigorSwitch P2542xh before 3.10.6
- DrayTek VigorSwitch PX2060 before 2.9.10
- DrayTek VigorSwitch G1280 before 2.9.10
- DrayTek VigorSwitch P1280 before 2.9.10
- DrayTek VigorSwitch P1281x before 2.9.10
- DrayTek VigorSwitch G1282 before 2.9.10
- DrayTek VigorSwitch P1282 before 2.9.10
- DrayTek VigorSwitch G2121 before 2.9.10
- DrayTek VigorSwitch P2121 before 2.9.10
- DrayTek VigorSwitch PQ2121x before 2.9.10
- DrayTek VigorSwitch Q2121x before 2.9.10
- DrayTek VigorSwitch G2280x before 2.9.10
- DrayTek VigorSwitch P2280x before 2.9.10
- DrayTek VigorSwitch Q2200x before 2.9.10
- DrayTek VigorSwitch PQ2200xb before 2.9.10
- DrayTek VigorSwitch G2100 before 2.9.10
- DrayTek VigorSwitch P2100 before 2.9.10
- DrayTek VigorSwitch G2540x before 2.9.10
- DrayTek VigorSwitch P2540x before 2.9.10
Timeline
- 2026-08-24: disclosed