{"id":"CVE-2022-50994","aliases":["CVE-2022-50994"],"related":[],"kind":"vulnerability","state":"published","title":"DrayTek Vigor 2960 < 1.5.1.4 OS Command Injection via mainfunction.cgi","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones de firmware de DrayTek Vigor 2960 anteriores a 1.5.1.4 contienen una vulnerabilidad de inyección de comandos del sistema operativo en el gestor de inicio de sesión CGI que permite a atacantes remotos no autenticados ejecutar comandos arbitrarios inyectando metacaracteres de shell en el parámetro formpassword. Los atacantes pueden explotar la entrada no saneada pasada al script otp_check.sh para lograr la ejecución remota de código con privilegios de servidor web. La explotación requiere conocimiento de un nombre de usuario válido y que la cuenta objetivo tenga la autenticación MOTP habilitada.","source":"nvd"}],"published":"2026-05-08T12:35:08.919Z","modified":"2026-11-10T12:10:00.177Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.2,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":9.2,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.5.1.4","status":"affected"}],"vendor":"DrayTek","product":"Vigor 2960","source":"cvelist"}],"references":[{"url":"https://www.draytek.co.uk/support/downloads/vigor-2960/older-firmware/firmware-1514?task=download.send&id=2597:readme-v2960-1514&catid=1251","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.draytek.com/about/newsroom/2021/2021/end-of-life-notification-vigor2960","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/draytek-vigor-2960-os-command-injection-via-mainfunction-cgi","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-08T13:58:01.605Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50994","url":"https://www.cve.org/CVERecord?id=CVE-2022-50994","licence":"CVE Terms of Use","modified":"2026-07-15T01:24:49.737Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50994","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50994","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.432Z","epss":{"score":0.01432,"percentile":0.73831,"date":"2026-12-01T12:00:22.000Z"}}