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-2024-51139

CVE-2024-51139: Draytek Vigor Buffer Overflow Vulnerability

CVE-2024-51139 is a buffer overflow vulnerability in Draytek Vigor2620 firmware that enables remote code execution via malicious HTTP POST requests. This article covers the technical details, all affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-51139 Overview

CVE-2024-51139 is a critical buffer overflow vulnerability affecting multiple DrayTek Vigor router firmware versions. The vulnerability exists in the CGI parser's handling of the Content-Length header in HTTP POST requests, allowing a remote attacker to execute arbitrary code on affected devices without authentication.

DrayTek Vigor routers are widely deployed enterprise and SOHO networking devices used for VPN, firewall, and routing functions. This vulnerability poses a severe risk to network infrastructure as successful exploitation could lead to complete device compromise, enabling attackers to intercept traffic, pivot to internal networks, or use compromised routers as part of a botnet.

Critical Impact

Remote attackers can achieve arbitrary code execution on DrayTek Vigor routers via malicious HTTP POST requests, potentially compromising network perimeter security without any user interaction or authentication.

Affected Products

  • DrayTek Vigor2620/LTE200 firmware version 3.9.8.9 and earlier
  • DrayTek Vigor2860/2925 firmware version 3.9.8 and earlier
  • DrayTek Vigor2862/2926 firmware version 3.9.9.5 and earlier
  • DrayTek Vigor2133/2762/2832 firmware version 3.9.9 and earlier
  • DrayTek Vigor165/166 firmware version 4.2.7 and earlier
  • DrayTek Vigor2135/2765/2766 firmware version 4.4.5.1 and earlier
  • DrayTek Vigor2865/2866/2927 firmware version 4.4.5.3 and earlier
  • DrayTek Vigor2962/3910 firmware version 4.3.2.8/4.4.3.1 and earlier
  • DrayTek Vigor3912 firmware version 4.3.6.1 and earlier

Discovery Timeline

  • 2025-02-27 - CVE-2024-51139 published to NVD
  • 2025-05-28 - Last updated in NVD database

Technical Details for CVE-2024-51139

Vulnerability Analysis

This buffer overflow vulnerability (CWE-120: Buffer Copy without Checking Size of Input) resides in the CGI parser component responsible for processing HTTP POST requests on DrayTek Vigor routers. The vulnerability can be exploited remotely over the network without requiring authentication or user interaction.

When the CGI parser processes incoming HTTP POST requests, it reads the Content-Length header value to allocate memory and handle the request body. The vulnerable code fails to properly validate the Content-Length value before copying data into a fixed-size buffer, allowing an attacker to overflow the buffer with controlled data.

Successful exploitation enables attackers to overwrite critical memory regions, potentially including return addresses or function pointers, leading to arbitrary code execution with the privileges of the web server process running on the router.

Root Cause

The root cause is a classic buffer overflow condition (CWE-120) where the CGI parser does not properly validate or sanitize the Content-Length header value before using it in memory operations. When an attacker supplies a maliciously crafted Content-Length value or sends more data than the allocated buffer can accommodate, the excess data overflows into adjacent memory regions.

This type of vulnerability typically occurs when:

  • Input length is not validated against buffer boundaries
  • Memory allocation does not account for maximum input size
  • Unsafe string or memory copy functions are used without bounds checking

Attack Vector

The attack vector is network-based, targeting the HTTP interface of DrayTek Vigor routers. An attacker can exploit this vulnerability by sending a specially crafted HTTP POST request to the router's web management interface. The attack does not require authentication, making any exposed DrayTek router with a reachable web interface vulnerable.

The exploitation involves crafting an HTTP POST request with a manipulated Content-Length header that causes the CGI parser to incorrectly handle buffer boundaries. This can be achieved by:

  1. Sending a POST request with a Content-Length value that exceeds expected limits
  2. Including payload data designed to overflow the buffer and overwrite memory
  3. Crafting the overflow to redirect execution to attacker-controlled shellcode

For detailed technical analysis, refer to the Medium Advisory on DrayTek Vulnerabilities.

Detection Methods for CVE-2024-51139

Indicators of Compromise

  • Unusual HTTP POST requests with abnormally large Content-Length headers targeting router management interfaces
  • Unexpected crashes or reboots of DrayTek Vigor routers
  • Unauthorized configuration changes or new administrative accounts on router devices
  • Suspicious outbound connections from router IP addresses to unknown external hosts

Detection Strategies

  • Monitor network traffic for HTTP POST requests with anomalous Content-Length values targeting DrayTek router management ports (typically port 80, 443, or 8080)
  • Implement intrusion detection rules to flag requests to CGI endpoints with oversized headers or body content
  • Enable logging on DrayTek devices and centralize logs for analysis of authentication attempts and configuration changes
  • Deploy network segmentation to limit direct external access to router management interfaces

Monitoring Recommendations

  • Configure SIEM alerts for repeated failed access attempts or unusual traffic patterns targeting network infrastructure devices
  • Implement continuous vulnerability scanning to identify unpatched DrayTek routers in your environment
  • Monitor for firmware integrity changes or unexpected process execution on router devices
  • Establish baseline behavior for router management interface access and alert on deviations

How to Mitigate CVE-2024-51139

Immediate Actions Required

  • Update all affected DrayTek Vigor router firmware to the latest available version from the DrayTek Official Website
  • Disable remote management access to router web interfaces from untrusted networks
  • Implement firewall rules to restrict access to router management interfaces to authorized IP addresses only
  • Enable access control lists (ACLs) on the router to limit who can reach the web management interface

Patch Information

DrayTek has released firmware updates addressing this vulnerability for affected Vigor router models. Administrators should immediately download and apply the latest firmware versions from the official DrayTek support portal.

Refer to the following resources for firmware updates and security advisories:

  • DrayTek Official Website
  • Medium Advisory on DrayTek Vulnerabilities

Workarounds

  • Disable web-based remote management if not required for operations
  • Restrict management interface access to internal/trusted networks only using firewall rules
  • Use VPN connections for remote administration instead of exposing the web interface directly
  • Enable strong authentication and consider implementing IP whitelisting for management access
bash
# Example: Restrict management access to specific IP using firewall/ACL
# (Consult DrayTek documentation for exact CLI syntax)
# Block external access to management ports
iptables -A INPUT -p tcp --dport 80 -s 0.0.0.0/0 -j DROP
iptables -A INPUT -p tcp --dport 443 -s 0.0.0.0/0 -j DROP
# Allow only trusted management IP
iptables -I INPUT -p tcp --dport 443 -s 192.168.1.100 -j ACCEPT

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechDraytek

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability5.74%

  • 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-120
  • Technical References
  • DrayTek Official Website

  • Medium Advisory on DrayTek Vulnerabilities
  • Related CVEs
  • CVE-2024-41592: DrayTek Vigor Buffer Overflow Flaw

  • CVE-2024-51138: Draytek Vigor3912 Buffer Overflow Flaw

  • CVE-2022-32548: Draytek Vigor3910 Buffer Overflow Flaw

  • CVE-2026-3040: 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