CVE-2024-12987 in DrayTek Vigor Routers
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 listing
- Vendor
- DrayTek
- Product
- Vigor Routers
- CISA name
- DrayTek Vigor Routers OS Command Injection Vulnerability
- Listed by CISA
- 2025-05-15
- Ransomware use
- Not known to be used in ransomware campaigns
- EPSS
- 98.2% as of 2026-11-18
What the probe looks like in your access log
Sample access log line. Demo data.
203.0.113.7 - - [19/Nov/2026:09:14:02 +0000] "GET /cgi-bin/mainfunction.cgi/apmcfgupload HTTP/1.1" 404 153Search your log for the method and path
grep -Fi '"GET /cgi-bin/mainfunction.cgi/apmcfgupload' access.logPatch the CVE. camada finds and blocks the clients probing for it, from the next review on. If you run DrayTek Vigor Routers, requests to this path can be normal, so check your version against the advisory.
Advisories
- fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf
- fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- CVE-2024-12987 in the National Vulnerability Database