Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-8515: Unauthenticated Root Command Injection in DrayTek Vigor Routers

Published Feb 1, 2020 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Draytek
IdentifiersCVE-2020-8515CWE-78 · Improper Neutralization of Special…

CVE-2020-8515 is an operating-system command-injection vulnerability in the web management interface of DrayTek Vigor2960, Vigor3900, and Vigor300B devices. Improper neutralization of shell metacharacters in attacker-controlled input to a CGI handler allows remote attackers to execute arbitrary shell commands as root without authentication or user interaction. Specifically identified affected firmware includes Vigor2960 1.3.1_Beta, Vigor3900 1.4.4_Beta, and Vigor300B 1.3.3_Beta, 1.4.2.1_Beta, and 1.4.4_Beta. Firmware version 1.5.1 fixes the vulnerability. Exploitation has been observed since March 27, 2020, including automated botnet propagation.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the router with root privileges, jeopardizing the confidentiality and integrity of device configurations and accessible data, as well as network availability. Attackers can execute malware, modify network settings, disrupt routing or other services, and use the compromised device as infrastructure for further attacks. Hoaxcalls, Bigviktor, Moobot, and other botnets have exploited this vulnerability to infect devices and expand DDoS capacity.

Mitigation

If you can’t patch tonight, do this now.

Until patched, disable remote administration and SSL VPN. Restrict management access to trusted administrative networks and block untrusted access to the web management interface. Deploy IPS coverage for the DrayTek web-management command-injection vulnerability, segment affected devices, and monitor configuration changes and unexpected outbound activity.

Remediation

Patch, then assume compromise.

Upgrade affected Vigor2960, Vigor3900, and Vigor300B devices to firmware version 1.5.1 or a later vendor-supported release. Review exposed devices for unauthorized accounts, VPN profiles, and access-control changes. Isolate suspected compromised devices and investigate further compromise; installing fixed firmware alone does not establish that an existing infection or malicious configuration has been removed.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
nmap_draytek_rceThis repository contains an Nmap NSE script (http-draytek-rce.nse) designed to detect and exploit CVE-2020-8515, a pre-authentication remote code execution vulnerability affecting DrayTek Vigor2960, Vigor3900, and Vigor300B routers with specific firmware versions. The script first checks if the target is a DrayTek device, then safely tests for the vulnerability by injecting a unique string via a POST request to /cgi-bin/mainfunction.cgi. If the device is confirmed vulnerable, the script exploits the flaw to execute 'cat /etc/passwd', dumping the contents of the password file to demonstrate code execution as root. The repository also includes a README.md briefly describing the script's purpose. The main attack vector is network-based, targeting the web management interface of affected routers. The script is operational, providing both detection and exploitation capabilities.truerandom · Disclosed Mar 31, 2020 · lua · networkOperationalCVE-2020-8515This repository contains a proof-of-concept exploit for CVE-2020-8515, a remote command injection vulnerability affecting Draytek Vigor routers (models 2960, 3900, 300B). The main exploit script, 'draytek.py', is a Python script that targets the router's web management interface, specifically the '/cgi-bin/mainfunction.cgi' endpoint. It sends a crafted POST request to this endpoint, injecting arbitrary shell commands via the 'keyPath' parameter. The script first probes the target by attempting to read '/etc/passwd' to check for vulnerability, then executes further commands (e.g., 'uname -a') if the target is confirmed vulnerable. The exploit can be easily modified to execute more complex payloads, such as downloading and running a reverse shell. The repository also includes a README.md with usage instructions, example output, and notes on extending the exploit. The exploit is operational and demonstrates remote code execution, but is not weaponized or part of a larger framework.darrenmartyn · Disclosed Sep 1, 2021 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DraytekVigor2960 Firmwareoperating_system
DraytekVigor300b Firmwareoperating_system
DraytekVigor3900 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2020-8515 exploited in the wild?
Yes. As of Nov 11, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2020-8515?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2020-8515, the earliest disclosed Mar 31, 2020.
Is there a patch for CVE-2020-8515?
Upgrade affected Vigor2960, Vigor3900, and Vigor300B devices to firmware version 1.5.1 or a later vendor-supported release. Review exposed devices for unauthorized accounts, VPN profiles, and access-control changes.
What products are affected by CVE-2020-8515?
Draytek Vigor2960 Firmware, Draytek Vigor300b Firmware, and Draytek Vigor3900 Firmware.
How severe is CVE-2020-8515?
CVE-2020-8515 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 11, 2026.
Activity feed

Recent activity

28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware23Malware families linked to this CVE, with evidence and IOCs.
Detection signatures6YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.