Skip to content

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 153

Search your log for the method and path

grep -Fi '"GET /cgi-bin/mainfunction.cgi/apmcfgupload' access.log

Patch 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.

Check your own log for these probes in your browser.