CVE-2024-12987
DrayTek Vigor Routers · DrayTek Vigor Routers OS Command Injection Vulnerability
Actively exploited
What is CVE-2024-12987?
The DrayTek Vigor router vulnerability allows an unauthorized person to send malicious commands to the device through its web management interface. By exploiting a specific file used for file uploads, an attacker can execute unauthorized operating system commands on the router. This flaw grants the attacker the ability to control the device or perform actions that the router is not intended to execute, potentially compromising the security of the entire network connected to the hardware.
Administrators of Vigor2960, Vigor300B, and Vigor3900 routers should be concerned about this security gap. Because this vulnerability is currently being exploited in the wild, it is critical to take immediate action. Administrators must check the official DrayTek support website for the latest firmware update and apply it to their devices as soon as possible to mitigate this risk.
Summary written with AI assistance from the sources listed on this page. Check the original sources for full technical details.
CISA description
DrayTek Vigor2960, Vigor300B, and Vigor3900 routers contain an OS command injection vulnerability due to an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component web management interface.
CISA added this vulnerability to its Known Exploited Vulnerabilities catalog on 15 May 2025, which means there is reliable evidence that attackers are using it in real attacks.
What to do
Install the security update or apply the mitigations published by DrayTek as soon as possible. If no fix is available, follow the vendor's workaround or stop using the affected product until it can be patched. For internet-facing systems, also check for signs of compromise, because the flaw may have been used before you patched.
References
Other exploited DrayTek vulnerabilities
- CVE-2020-15415 DrayTek Multiple Vigor Routers – DrayTek Multiple Vigor Routers OS Command Injection Vulnerabilityadded
30 September 2024 - CVE-2021-20124 DrayTek VigorConnect – Draytek VigorConnect Path Traversal Vulnerabilityadded
3 September 2024 - CVE-2021-20123 DrayTek VigorConnect – Draytek VigorConnect Path Traversal Vulnerabilityadded
3 September 2024 - CVE-2020-8515 DrayTek Multiple Vigor Routers – Multiple DrayTek Vigor Routers Web Management Page Vulnerabilityadded
3 November 2021