CVE-2022-50994: DrayTek Vigor 2960 < 1.5.1.4 OS Command Injection via mainfunction.cgi

Published May 8, 2026
·
Updated

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 otpcheck.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 Software

1 affected component
DrayTek Vigor 2960<1.5.1.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade DrayTek Vigor 2960 to a version that resolves this vulnerability.

    Fixed in 1.5.1.4
  2. Configuration

    Ensure the otp_check.sh script does not pass unsanitized user input (from the formpassword parameter) to OS command execution; apply the vendor firmware fix associated with updating to 1.5.1.4.

    DrayTek Vigor 2960 CGI login handler formpassword parameter handling (sanitization) = sanitized/validated input before being passed to otp_check.sh

Event History

May 8, 2026
CVE Published
via MITRE·12:35 PM
Data Sourced
via MITRE·12:35 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-50994?

CVE-2022-50994 is considered a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2022-50994?

To fix CVE-2022-50994, upgrade the DrayTek Vigor 2960 firmware to version 1.5.1.4 or later.

3

Who is affected by CVE-2022-50994?

CVE-2022-50994 affects users of the DrayTek Vigor 2960 running firmware versions prior to 1.5.1.4.

4

What type of vulnerability is CVE-2022-50994?

CVE-2022-50994 is classified as an OS command injection vulnerability.

5

Can CVE-2022-50994 be exploited by unauthenticated users?

Yes, CVE-2022-50994 can be exploited by unauthenticated remote attackers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203