CVE-2024-12987: 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.
Why it matters
CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities (KEV) catalog on 2025-05-15 — meaning it is confirmed to be exploited in the wild, not just theoretically risky. US federal agencies had to remediate it by 2025-06-05, and it is a high priority for everyone else too.
How to fix it
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Details
- Affected: DrayTek Vigor Routers
- Added to CISA KEV: 2025-05-15
- Federal remediation due: 2025-06-05
- Weakness: CWE-78
- EPSS: 98.2% chance of exploitation in the next 30 days, higher than 100% of all CVEs
- Reference: NVD entry for CVE-2024-12987
Is CVE-2024-12987 in your fleet?
SkyShield scans your servers, containers and cloud for vulnerable packages and images (Trivy), ranks them by whether they're on CISA KEV and their EPSS exploit probability, and shows the fix per machine. Start free.