CVE-2024-12987
Published: May 15, 2025
Official 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 KEV Advisory
DrayTek Vigor Routers OS Command Injection Vulnerability
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.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Risk Analysis
This vulnerability allows an attacker to execute arbitrary commands on DrayTek Vigor2960, Vigor300B, and Vigor3900 routers through their web management interface. Given its high EPSS score of 0.78364 and inclusion in CISA's KEV, this flaw is highly likely to be exploited and poses a significant risk to affected systems.
Active exploitation of this vulnerability has been observed in the wild, indicating a severe and immediate threat. The flaw is remotely exploitable through the web management interface.
Administrators should apply available patches or firmware updates for DrayTek Vigor2960, Vigor300B, and Vigor3900 routers. Restricting access to the web management interface to trusted networks or IP addresses is also recommended.
Technical Analysis
CVE-2024-12987 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
CISA has added CVE-2024-12987 to the Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. U.S. federal agencies are required to patch this within the mandated timeframe, and all organizations should treat remediation as urgent.
Exploit & PoC Resources
All References (4)
Quick Facts
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2024-12987 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
- !CISA KEV: Federal agencies must patch per BOD 22-01 timeline
- !Active exploitation confirmed — treat as P1