A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-50994

CVE-2022-50994: DrayTek Vigor 2960 RCE Vulnerability

CVE-2022-50994 is an OS command injection flaw in DrayTek Vigor 2960 firmware that enables unauthenticated attackers to execute arbitrary code. This article covers the technical details, affected versions, and mitigation.

Published: May 18, 2026

CVE-2022-50994 Overview

CVE-2022-50994 is an OS command injection vulnerability [CWE-78] affecting DrayTek Vigor 2960 firmware versions prior to 1.5.1.4. The flaw resides in the CGI login handler, which passes unsanitized input from the formpassword parameter to the otp_check.sh shell script. Unauthenticated remote attackers can inject shell metacharacters to execute arbitrary commands with web server privileges. Exploitation requires knowledge of a valid username and that the target account has Mobile One-Time Password (MOTP) authentication enabled. DrayTek released firmware 1.5.1.4 to address the issue, though the Vigor 2960 platform has reached end-of-life status.

Critical Impact

Unauthenticated remote command execution on edge router devices, providing attackers with a foothold for lateral movement into internal networks.

Affected Products

  • DrayTek Vigor 2960 firmware versions prior to 1.5.1.4
  • DrayTek Vigor 2960 (end-of-life product line)
  • Deployments with MOTP authentication enabled on user accounts

Discovery Timeline

  • 2026-05-08 - CVE-2022-50994 published to NVD
  • 2026-05-08 - Last updated in NVD database

Technical Details for CVE-2022-50994

Vulnerability Analysis

The vulnerability resides in the mainfunction.cgi login handler on the Vigor 2960 web management interface. When a client submits credentials, the handler forwards the formpassword field to the otp_check.sh shell script for MOTP validation. The script invokes the password value within a shell context without sanitization or argument escaping. Attackers can append shell metacharacters such as ;, |, $(), or backticks to break out of the intended command and execute arbitrary operating system commands. Successful exploitation yields code execution as the user running the web server, typically a privileged account on embedded networking devices.

Root Cause

The root cause is improper neutralization of special elements used in an OS command [CWE-78]. The CGI handler treats user-supplied authentication input as trusted data and concatenates it into a shell command line. No input validation, allowlist filtering, or use of parameterized execution APIs is performed before the value is passed to /bin/sh.

Attack Vector

Exploitation occurs over the network against the device's HTTP or HTTPS management interface. The attacker must know a valid username and that the account has MOTP authentication enabled, which raises attack complexity. No prior authentication is required because the injection occurs during the pre-authentication credential validation path. Devices exposing the management interface to the internet are at greatest risk.

The exploitation mechanism involves submitting a crafted POST request to the login endpoint with shell metacharacters embedded in the formpassword parameter. When otp_check.sh processes the value, the injected command executes alongside the intended password check. See the VulnCheck Advisory on DrayTek Vulnerability for additional technical analysis.

Detection Methods for CVE-2022-50994

Indicators of Compromise

  • HTTP or HTTPS POST requests to mainfunction.cgi containing shell metacharacters such as ;, |, &, $(, or backticks within the formpassword field
  • Unexpected outbound connections from the router to attacker-controlled infrastructure following login attempts
  • Anomalous child processes spawned by the web server or by otp_check.sh on the device
  • Modifications to device configuration, firewall rules, or DNS settings without administrative action

Detection Strategies

  • Inspect web server and CGI access logs for login requests containing non-printable or shell-special characters in password fields
  • Correlate failed authentication events with outbound network traffic from the router's management plane
  • Monitor for unauthorized administrative configuration changes on Vigor 2960 devices

Monitoring Recommendations

  • Forward router syslog and authentication logs to a centralized log analytics platform for retention and correlation
  • Alert on any management interface access originating from untrusted networks or geographies
  • Track firmware versions across the device fleet to identify systems still running pre-1.5.1.4 builds

How to Mitigate CVE-2022-50994

Immediate Actions Required

  • Update DrayTek Vigor 2960 firmware to version 1.5.1.4 or later using the DrayTek Firmware Release Notes
  • Restrict access to the web management interface to trusted internal networks only and disable WAN-side administration
  • Audit user accounts to identify which have MOTP authentication enabled, since these are the exploitable accounts
  • Plan migration away from the Vigor 2960 platform, which has reached end-of-life per the DrayTek End-of-Life Notification

Patch Information

DrayTek addressed the OS command injection in Vigor 2960 firmware version 1.5.1.4. The patch sanitizes input passed to the otp_check.sh script. Because the Vigor 2960 line is end-of-life, no further security updates are guaranteed. Organizations should treat firmware 1.5.1.4 as the terminal supported release and plan hardware replacement.

Workarounds

  • Disable MOTP authentication on all accounts until firmware is updated, since exploitation requires MOTP-enabled accounts
  • Place the management interface behind a VPN and block direct internet exposure of TCP/443 and TCP/80 on the router
  • Apply ACLs that limit management plane access to a defined administrator workstation subnet
  • Replace end-of-life Vigor 2960 devices with vendor-supported hardware as a long-term remediation

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDraytek

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.16%

  • Known ExploitedNo
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • DrayTek Firmware Release Notes

  • DrayTek End-of-Life Notification

  • VulnCheck Advisory on DrayTek Vulnerability
  • Related CVEs
  • CVE-2026-3040: Draytek Vigor300b Firmware RCE Vulnerability

  • CVE-2020-8515: Draytek Vigor2960 Firmware RCE Vulnerability

  • CVE-2020-15415: DrayTek Vigor Firmware RCE Vulnerability

  • CVE-2024-12987: Draytek Vigor300b Firmware RCE Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English