CVE-2024-12987: OS Command Injection in DrayTek Vigor Web Management Interface
- Vendor
- Draytek
CVE-2024-12987 is an operating-system command injection vulnerability in the apmcfgupload component of the DrayTek Vigor Web Management Interface. Manipulating the session parameter allows remote attackers to execute arbitrary operating-system commands on affected routers. DrayTek Vigor2960 and Vigor300B devices running firmware 1.5.1.4 are affected; Vigor3900 is also listed as affected, although its vulnerable firmware versions are not specified. A public exploit is available, and exploitation has been observed in RustoBot campaigns. Firmware 1.5.1.5 addresses the issue on the identified Vigor2960 and Vigor300B firmware branch.
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 permits arbitrary command execution and potential compromise of the affected router. Attackers have used the vulnerability to deploy RustoBot, enabling remote control and use of compromised devices for DDoS attacks. The execution privilege level and specific confidentiality impacts are not established.
Mitigation
If you can’t patch tonight, do this now.
Until firmware updates can be applied, disable public Internet access to the web management interface and restrict management access to trusted networks through strict firewall rules, preferably using a VPN. Enforce strong authentication and monitor management logs for unauthorized access attempts. Audit exposed devices and monitor outbound traffic for evidence of botnet activity.
Remediation
Patch, then assume compromise.
Upgrade affected Vigor2960 and Vigor300B devices from firmware 1.5.1.4 to 1.5.1.5 or a later fixed release. For Vigor3900, apply the appropriate vendor firmware update; an exact fixed version is not specified. After upgrading, verify the installed firmware version and device functionality.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
References
Frequently asked questions
- Is CVE-2024-12987 exploited in the wild?
- Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 15, 2025.
- Is there a public exploit for CVE-2024-12987?
- Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2024-12987.
- Is there a patch for CVE-2024-12987?
- Upgrade affected Vigor2960 and Vigor300B devices from firmware 1.5.1.4 to 1.5.1.5 or a later fixed release. For Vigor3900, apply the appropriate vendor firmware update; an exact fixed version is not specified.
- What products are affected by CVE-2024-12987?
- Draytek Vigor300b Firmware and Draytek Vigor2960 Firmware.
- How severe is CVE-2024-12987?
- CVE-2024-12987 has a CVSS v4 score of 6.9 (Medium) and an EPSS score of 98.2% (100th percentile) as of Oct 9, 2026.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.