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

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Published: 2026-05-08T12:35:08.919Z
- Modified: 2026-11-10T12:10:00.177Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- DrayTek Vigor 2960: before 1.5.1.4

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.draytek.co.uk/support/downloads/vigor-2960/older-firmware/firmware-1514?task=download.send&id=2597:readme-v2960-1514&catid=1251> (patch, release-notes)
- <https://www.draytek.com/about/newsroom/2021/2021/end-of-life-notification-vigor2960> (vendor-advisory)
- <https://www.vulncheck.com/advisories/draytek-vigor-2960-os-command-injection-via-mainfunction-cgi> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-50994](https://www.cve.org/CVERecord?id=CVE-2022-50994), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2022-50994](https://nvd.nist.gov/vuln/detail/CVE-2022-50994), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-50994 · Whole record: https://cve.day/CVE-2022-50994.json · Rebuilt by cve.day 2026-11-25T22:58:21.432Z
