CVE-2022-50994 DrayTek Vigor 2960 < 1.5.1.4 OS Command Injection via mainfunction.cgi
Unauthenticated attackers can execute arbitrary commands on DrayTek Vigor 2960 routers via OS command injection in the login handler if MOTP is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-50994?
CVE-2022-50994 is a critical command injection vulnerability in DrayTek Vigor 2960, published on 8 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
DrayTek Vigor 2960 firmware versions prior to 1.5.1.4 contain an OS command injection vulnerability in the CGI login handler that allows unauthenticated remote attackers to execute arbitrary commands by injecting shell metacharacters into the formpassword parameter. Attackers can exploit unsanitized input passed to the otp_check.sh script to achieve remote code execution with web server privileges. Exploitation requires knowledge of a valid username and that the target account has MOTP authentication enabled.
Weakness: CWE-78
Which versions are affected by CVE-2022-50994?
How do I fix CVE-2022-50994?
No fix has been published for CVE-2022-50994 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-50994 being exploited?
There is no known exploitation of CVE-2022-50994 in the wild and no public exploit code.
Sources
Also known as GHSA-ccr6-v597-2vp9.