Sunday, May 25, 2025
Homecyber securityCritical DrayTek Router Vulnerabilities Expose Devices to RCE Attacks

Critical DrayTek Router Vulnerabilities Expose Devices to RCE Attacks

Published on

SIEM as a Service

Follow Us on Google News

A recent security analysis of Draytek Vigor routers has uncovered severe vulnerabilities that could allow attackers to hijack devices, execute arbitrary code, and bypass critical security controls.

These findings, disclosed by researchers at DEFCON 32 HHV and Ekoparty 2024, highlight systemic risks in widely used small office/home office (SOHO) routers due to outdated firmware, weak authentication mechanisms, and insecure update processes.

Below, we break down the technical details and implications of these flaws.

- Advertisement - Google News

Authentication Bypasses and Insecure Code Execution

Draytek routers exhibited multiple critical authentication weaknesses.

The CVE-2024-41335 vulnerability leverages non-constant time password comparisons using strcmp and memcmp, enabling timing attacks to extract credentials.

Compounding this, CVE-2024-41336 reveals plaintext password storage in memory, allowing physical or memory-dumping attacks.

Researchers also identified a predictable 2FA code generation flaw (unassigned CVE), where codes are derived from the router’s uptime.

Attackers could force a reboot (via CVE-2024-41338, a DHCP-triggered denial-of-service flaw) and calculate new codes to bypass two-factor authentication.

Kernel-level risks were flagged in CVE-2024-41339 and CVE-2024-41340, which permit arbitrary kernel module uploads via CGI endpoints and unvalidated SSL certificate checks for APP Enforcement updates.

These allow attackers to install malicious modules, achieving persistent root access.

Memory Corruption Vulnerabilities and Remote Exploitation

Two high-severity remote code execution (RCE) flaws—CVE-2024-51138 and CVE-2024-51139—exploit memory corruption.

The TR069 STUN server’s stack-based buffer overflow (CVE-2024-51138) enables unauthenticated attackers to execute code via malformed URLs.

Meanwhile, the CGI POST handler’s integer overflow (CVE-2024-51139) corrupts heap memory by mishandling Content-Length headers, leading to RCE.

These vulnerabilities are particularly dangerous for routers exposed to WAN traffic, as they require no authentication and can be exploited remotely.

Affected Firmware and Mitigation Strategies

The vulnerabilities impact multiple Draytek models, including Vigor165, Vigor2860, and Vigor3912 series.

Firmware versions vary by CVE:

Draytek has released patches for most flaws, but SOHO users often delay updates, leaving networks exposed.

Researchers urge immediate firmware upgrades and disabling unused services like TR069 or STUN.

Network administrators should also enforce HTTPS for management interfaces and monitor for unexpected kernel module installations.

These findings underscore the fragile state of SOHO router security, where proprietary firmware and infrequent updates create fertile ground for attackers.

As Draytek routers often serve as entry points for larger networks, unpatched devices risk becoming pivot points for lateral movement.

Researchers plan to release technical deep dives on CVE-2024-51138 and CVE-2024-51139 in upcoming posts, emphasizing the need for proactive defense in an era of increasingly sophisticated network intrusions.

Collect Threat Intelligence on the Latest Malware and Phishing Attacks with ANY.RUN TI Lookup -> Try for free

Anupriya
Anupriya
Any Priya is a cybersecurity reporter at GBHackers On Security, specializing in cyber attacks, dark web monitoring, data breaches, vulnerabilities, and malware. She delivers in-depth analysis on emerging threats and digital security trends.

Latest articles

Zero-Trust Policy Bypass Enables Exploitation of Vulnerabilities and Manipulation of NHI Secrets

A new project has exposed a critical attack vector that exploits protocol vulnerabilities to...

Threat Actor Sells Burger King Backup System RCE Vulnerability for $4,000

A threat actor known as #LongNight has reportedly put up for sale remote code...

Chinese Nexus Hackers Exploit Ivanti Endpoint Manager Mobile Vulnerability

Ivanti disclosed two critical vulnerabilities, identified as CVE-2025-4427 and CVE-2025-4428, affecting Ivanti Endpoint Manager...

Hackers Target macOS Users with Fake Ledger Apps to Deploy Malware

Hackers are increasingly targeting macOS users with malicious clones of Ledger Live, the popular...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

Zero-Trust Policy Bypass Enables Exploitation of Vulnerabilities and Manipulation of NHI Secrets

A new project has exposed a critical attack vector that exploits protocol vulnerabilities to...

Threat Actor Sells Burger King Backup System RCE Vulnerability for $4,000

A threat actor known as #LongNight has reportedly put up for sale remote code...

Chinese Nexus Hackers Exploit Ivanti Endpoint Manager Mobile Vulnerability

Ivanti disclosed two critical vulnerabilities, identified as CVE-2025-4427 and CVE-2025-4428, affecting Ivanti Endpoint Manager...