# DrayTek Vigor Routers: Vigor Routers OS Command Injection Vulnerability · pwn.watch > 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. Added to CISA KEV on 2025-05-15. Page: https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987 · generated 2026-10-22T22:00:08.805Z ## Status - Severity: medium · status: closed · patch: patched - Product: DrayTek Vigor Routers - Started: 2025-05-15 · closed: 2025-05-15 - CVEs: CVE-2024-12987 - Affected: See vendor advisory / CISA notes (versions not always listed in KEV feed) - Fixed in: See vendor advisory linked in sources ## Follow this incident - RSS (one item per update): https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987/feed.xml - JSON Feed: https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987.json - This file: https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987/llms.txt ## Updates (newest first) - 2025-05-15: CISA added CVE-2024-12987 to the KEV catalog (due 2025-06-05). ## Fix brief # Security brief: DrayTek Vigor Routers: Vigor Routers OS Command Injection Vulnerability Source: https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987 · status: closed (closed May 15, 2025) · severity: medium · updated May 15, 2025 ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is 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. Added to CISA KEV on 2025-05-15. Severity detail: CVSS 6.9 (CNA, v4.0); actively exploited (CISA KEV) - Product: DrayTek Vigor Routers - CVE / advisory ids: CVE-2024-12987 ## Affected versions - See vendor advisory / CISA notes (versions not always listed in KEV feed) ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - See vendor advisory linked in sources After upgrading, re-run the checks above and redeploy/restart the affected services. ## Latest updates - May 15, 2025: CISA added CVE-2024-12987 to the KEV catalog (due 2025-06-05). ## Advisories - [DrayTek advisory: DrayTek Vigor Routers](https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf) (DrayTek) - [DrayTek advisory: DrayTek Vigor Routers](https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf) (DrayTek) - [DrayTek advisory: DrayTek Vigor Routers](https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf) (DrayTek) - [NVD: CVE-2024-12987](https://nvd.nist.gov/vuln/detail/CVE-2024-12987) (NVD) - [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) (CISA) ## Caveats Derived from CISA KEV JSON feed catalogVersion 2026.10.21. CVSS from the CVE record (cvelistV5). Exact affected/fixed version strings are not always in the KEV record; verify against the vendor advisory URL. startedAt uses dateAdded (exploitation may have begun earlier; many entries are older CVEs newly confirmed as exploited in 2025). --- Machine-readable: https://pwn.watch/i/draytek-vigor-routers-cve-2024-12987.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.