Remote Command Execution in DrayTek Vigor cgi-bin/mainfunction.cgi/cvmcfgupload
CVE-2020-15415 is a remote command execution vulnerability affecting DrayTek Vigor3900, Vigor2960, and Vigor300B devices before version 1.5.1. The flaw is in the cgi-bin/mainfunction.cgi/cvmcfgupload functionality, which improperly handles a supplied filename parameter. When a request uses the text/x-python-script content type, shell metacharacters embedded in the filename are not safely neutralized before being passed to a shell or shell-interpreted command context, allowing arbitrary command execution on the device. This is a distinct issue from CVE-2020-14472.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A remote attacker can execute arbitrary commands on the affected DrayTek device. Depending on the privileges of the vulnerable CGI component, this can result in full compromise of the appliance, including unauthorized administrative control, modification of device configuration, installation of persistent backdoors, interception or redirection of network traffic, and use of the device as a pivot point into adjacent networks.
If you can’t patch tonight, do this now.
Until patching is completed, restrict access to the management interface and the vulnerable CGI endpoint to trusted administrative networks only, disable or firewall Internet exposure of the device management plane, and monitor for suspicious requests involving cgi-bin/mainfunction.cgi/cvmcfgupload, especially those using the text/x-python-script content type or filenames containing shell metacharacters. Where possible, place administrative access behind VPN or source-IP allowlisting.
Patch, then assume compromise.
Upgrade affected DrayTek Vigor3900, Vigor2960, and Vigor300B devices to version 1.5.1 or later, which addresses the vulnerable command-handling behavior in cgi-bin/mainfunction.cgi/cvmcfgupload. If vendor-fixed releases are available beyond 1.5.1, deploy the latest supported firmware.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.