CVE-2022-50994 PUBLISHED

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

Assigner: VulnCheck
Reserved: 29.04.2026 Published: 08.05.2026 Updated: 08.05.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.2

Product Status

Vendor DrayTek
Product Vigor 2960
Versions Default: affected
  • affected from 0 to 1.5.1.4 (excl.)

References

Problem Types

  • Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE