CVE-2022-50994

published 8 May 2026 · updated 10 Nov 2026

DrayTek Vigor 2960 < 1.5.1.4 OS Command Injection via mainfunction.cgi

8.1HighCVSS 8.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Vigor 1.5.1.4.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
DrayTekVigor<1.5.1.41.5.1.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in DrayTek, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50994 severity on Zeptric[![CVE-2022-50994](https://zeptric.io/badge/cve/CVE-2022-50994.svg)](https://zeptric.io/cve/CVE-2022-50994)