Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2020-14472

CVE-2020-14472: Draytek Vigor300b RCE Vulnerability

CVE-2020-14472 is a command injection RCE flaw in Draytek Vigor3900, Vigor2960, and Vigor300b devices that allows attackers to execute arbitrary commands. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-14472 Overview

CVE-2020-14472 is a command injection vulnerability affecting DrayTek Vigor3900, Vigor2960, and Vigor300B enterprise routers running firmware versions prior to 1.5.1.1. The vulnerability exists within the mainfunction.cgi file, which fails to properly sanitize user-supplied input before passing it to system commands. This allows unauthenticated remote attackers to execute arbitrary operating system commands with root privileges on affected devices.

Critical Impact

Unauthenticated remote attackers can achieve complete system compromise on affected DrayTek routers by injecting arbitrary commands through the vulnerable CGI interface, potentially leading to full network infrastructure takeover.

Affected Products

  • DrayTek Vigor3900 (firmware versions before 1.5.1.1)
  • DrayTek Vigor2960 (firmware versions before 1.5.1.1)
  • DrayTek Vigor300B (firmware versions before 1.5.1.1)

Discovery Timeline

  • 2020-06-24 - CVE-2020-14472 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-14472

Vulnerability Analysis

This vulnerability is classified as CWE-77 (Command Injection), where user-controlled input is incorporated into system commands without adequate validation or sanitization. The affected DrayTek devices expose a web management interface that processes requests through CGI scripts. The mainfunction.cgi script contains multiple code paths where attacker-supplied parameters are directly concatenated into shell commands executed by the underlying Linux operating system.

The vulnerability is particularly severe because it requires no authentication to exploit. An attacker with network access to the router's management interface can submit specially crafted HTTP requests containing shell metacharacters and malicious command sequences. These injected commands execute with the privileges of the web server process, which typically runs as root on embedded network devices.

Successful exploitation grants attackers complete control over the router, enabling them to intercept network traffic, modify routing configurations, establish persistent backdoors, pivot to internal network segments, or use the compromised device as part of a botnet infrastructure.

Root Cause

The root cause of this vulnerability is insufficient input validation within the mainfunction.cgi script. The CGI handler accepts parameters from HTTP requests and incorporates them into system shell commands without properly escaping or sanitizing special characters. This allows attackers to break out of the intended command context using shell metacharacters such as semicolons (;), pipes (|), backticks (`), or command substitution syntax ($()).

Attack Vector

The attack vector is network-based, requiring the attacker to reach the router's web management interface. This interface is often exposed on the WAN interface for remote administration purposes, significantly increasing the attack surface. The exploitation flow involves:

  1. Identifying a vulnerable DrayTek device with an accessible management interface
  2. Crafting an HTTP request to mainfunction.cgi with command injection payloads in vulnerable parameters
  3. The malicious payload bypasses input validation and is executed by the system shell
  4. The attacker receives command execution output or establishes a reverse shell connection

Technical details and proof-of-concept implementations are available through the GitHub Gist PoC by Cossack9989 and the GitHub Gist Exploit by WinMin.

Detection Methods for CVE-2020-14472

Indicators of Compromise

  • Unusual HTTP requests to mainfunction.cgi containing shell metacharacters (;, |, $(), backticks)
  • Unexpected outbound connections from the router to external IP addresses
  • Unexplained processes running on the device or abnormal CPU/memory utilization
  • Modified configuration files or new user accounts on the router
  • Network traffic anomalies such as DNS tunneling or connections to known C2 infrastructure

Detection Strategies

  • Deploy network intrusion detection systems (IDS) with signatures targeting command injection patterns in HTTP requests to DrayTek management interfaces
  • Monitor web server logs on DrayTek devices for requests containing encoded shell metacharacters or common injection payloads
  • Implement web application firewalls (WAF) to inspect and block malicious requests targeting CGI endpoints
  • Use SentinelOne Singularity to monitor for behavioral indicators of compromise on network segments containing vulnerable devices

Monitoring Recommendations

  • Establish baseline network behavior for DrayTek devices and alert on deviations
  • Configure SIEM rules to correlate authentication failures with subsequent successful management interface access
  • Monitor for firmware integrity changes using file integrity monitoring where supported
  • Track outbound connections from router management interfaces to unexpected destinations

How to Mitigate CVE-2020-14472

Immediate Actions Required

  • Upgrade all affected DrayTek Vigor3900, Vigor2960, and Vigor300B devices to firmware version 1.5.1.1 or later immediately
  • Restrict management interface access to trusted IP addresses using access control lists (ACLs)
  • Disable remote management access from WAN interfaces if not strictly required
  • Implement network segmentation to isolate management interfaces from untrusted networks
  • Review device configurations and logs for signs of prior compromise

Patch Information

DrayTek has addressed this vulnerability in firmware version 1.5.1.1 and later releases. Organizations should obtain the latest firmware from DrayTek's official support channels and apply updates following the vendor's documented procedures. Prior to updating, backup current device configurations to enable recovery in case of update failures.

Workarounds

  • Disable the web management interface entirely if remote management is not required
  • Configure firewall rules to block external access to the management interface (typically ports 80, 443)
  • Place management interfaces on a dedicated, isolated VLAN with strict access controls
  • Use VPN connections to access management interfaces rather than direct exposure
bash
# Example: Restrict management access via ACL (syntax may vary by firmware version)
# Access management interface only from trusted subnet
ip access-list extended MGMT-ACCESS
 permit tcp 192.168.1.0 0.0.0.255 any eq 443
 deny tcp any any eq 443
 deny tcp any any eq 80

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

  • EPSS Probability2.67%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Gist PoC

  • GitHub Gist Exploit
  • 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 World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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