The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-3040

CVE-2026-3040: Draytek Vigor300b Firmware RCE Vulnerability

CVE-2026-3040 is a remote code execution vulnerability in Draytek Vigor300b Firmware affecting the Web Management Interface. Attackers can exploit command injection to execute unauthorized code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 27, 2026

CVE-2026-3040 Overview

A critical OS command injection vulnerability has been identified in DrayTek Vigor 300B routers running firmware versions up to 1.5.1.6. This vulnerability affects the cgiGetFile function within the /cgi-bin/mainfunction.cgi/uploadlangs endpoint of the Web Management Interface. An authenticated attacker with administrative privileges can remotely manipulate the File argument to execute arbitrary operating system commands on the affected device.

Critical Impact

This vulnerability allows authenticated attackers to achieve remote command execution on DrayTek Vigor 300B devices through the web management interface. The vendor has confirmed this product is End-of-Life (EoL) and will not be patched.

Affected Products

  • DrayTek Vigor 300B firmware versions up to 1.5.1.6
  • DrayTek Vigor 300B hardware devices
  • All DrayTek Vigor300b Firmware installations on affected hardware

Discovery Timeline

  • 2026-02-23 - CVE-2026-3040 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-3040

Vulnerability Analysis

This vulnerability is classified as an OS command injection flaw (CWE-78) and command injection (CWE-77). The affected function cgiGetFile in the Web Management Interface fails to properly sanitize user-supplied input through the File argument. When processing requests to the /cgi-bin/mainfunction.cgi/uploadlangs endpoint, the application passes user-controlled data directly to system command execution functions without adequate validation or escaping.

The vulnerability requires network access and high privileges (administrative authentication) to exploit, which limits the attack surface but does not eliminate the risk, particularly in environments where administrative credentials may be compromised or shared. The exploit is publicly available, increasing the likelihood of exploitation in the wild.

Root Cause

The root cause of this vulnerability lies in improper input validation and sanitization within the cgiGetFile function. The Web Management Interface directly incorporates user-supplied values from the File parameter into system commands without proper escaping or validation. This allows specially crafted input containing shell metacharacters to break out of the intended command context and execute arbitrary OS commands with the privileges of the web server process.

Attack Vector

The attack vector is network-based, requiring an authenticated attacker to send malicious HTTP requests to the /cgi-bin/mainfunction.cgi/uploadlangs endpoint. By manipulating the File argument with command injection payloads, an attacker can execute arbitrary commands on the underlying operating system.

An attacker would typically:

  1. Obtain valid administrative credentials for the DrayTek Vigor 300B web interface
  2. Craft a malicious HTTP request targeting the vulnerable endpoint
  3. Include OS command injection payload within the File parameter
  4. The injected commands execute with the privileges of the web server process

The vulnerability mechanism involves passing unsanitized user input from the File parameter to system command execution. Shell metacharacters such as semicolons, pipes, or backticks can be used to chain additional commands. See the GitHub Issue Tracker for additional technical details.

Detection Methods for CVE-2026-3040

Indicators of Compromise

  • Unusual HTTP requests to /cgi-bin/mainfunction.cgi/uploadlangs containing shell metacharacters in the File parameter
  • Unexpected processes spawned by the web server process on DrayTek devices
  • Anomalous network connections originating from the router to external hosts
  • Presence of unauthorized files or modifications to system configuration

Detection Strategies

  • Monitor web server logs for requests to /cgi-bin/mainfunction.cgi/uploadlangs with suspicious File parameter values containing characters like ;, |, &, or backticks
  • Implement network intrusion detection rules to identify command injection patterns in HTTP traffic to DrayTek management interfaces
  • Deploy endpoint detection and response (EDR) solutions capable of monitoring router management interfaces for anomalous behavior

Monitoring Recommendations

  • Enable comprehensive logging on DrayTek Vigor 300B devices and forward logs to a centralized SIEM for analysis
  • Establish baseline behavior for web management interface access and alert on deviations
  • Monitor for unauthorized administrative login attempts and credential brute-force attacks

How to Mitigate CVE-2026-3040

Immediate Actions Required

  • Replace DrayTek Vigor 300B devices with currently supported hardware models as the vendor has confirmed this is an End-of-Life product with no planned patches
  • Restrict access to the Web Management Interface to trusted internal networks only; do not expose the management interface to the internet
  • Implement strong, unique administrative credentials and enable multi-factor authentication if supported
  • Deploy network segmentation to isolate vulnerable devices from critical network assets

Patch Information

The vendor (DrayTek) has explicitly confirmed that the Vigor 300B is End-of-Life (EoL) and that they do not plan to release a security patch for this authenticated vulnerability. Organizations must plan for hardware replacement as the only definitive remediation strategy.

For additional vulnerability details, refer to VulDB #347394 and the VulDB Submission #757126.

Workarounds

  • Disable remote management access entirely and only allow local console administration
  • Implement firewall rules to block external access to the Web Management Interface on port 80/443
  • Use a VPN to access the management interface rather than exposing it directly
  • Consider deploying a web application firewall (WAF) to filter malicious requests if the device must remain in service temporarily
bash
# Example firewall rule to restrict management interface access (implementation varies by firewall)
# Block external access to DrayTek management interface
iptables -A INPUT -p tcp --dport 80 -s ! 192.168.1.0/24 -j DROP
iptables -A INPUT -p tcp --dport 443 -s ! 192.168.1.0/24 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDraytek

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77

  • CWE-78
  • Technical References
  • GitHub Issue Tracker

  • VulDB CI #347394

  • VulDB #347394

  • VulDB Submission #757126
  • Related CVEs
  • CVE-2020-8515: Draytek Vigor2960 Firmware RCE Vulnerability

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

  • CVE-2024-12987: Draytek Vigor300b Firmware RCE Flaw

  • CVE-2024-12986: Draytek Vigor300b Firmware RCE Vulnerability
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