CVE-2024-12987
CONFIRMED EXPLOITEDDrayTek Vigor Routers OS Command Injection Vulnerability
Is DrayTek Vigor Routers affected by CVE-2024-12987?
DrayTek Vigor Routers is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2024-12987, added on 2025-05-15. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (2 vulnerable CPE entries): draytek vigor2960_firmware and draytek vigor300b_firmware.
Published CPE data pins the vulnerable releases as 1.5.1.4. Check the vendor advisory below for the fixed release and for any other affected build.
The CISA remediation deadline for this entry is 2025-06-05.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2020-15415Same vendorDrayTek Multiple Vigor Routers
DrayTek Multiple Vigor Routers OS Command Injection Vulnerability
- CVE-2021-20124Same vendorDrayTek VigorConnect
Draytek VigorConnect Path Traversal Vulnerability
- CVE-2021-20123Same vendorDrayTek VigorConnect
Draytek VigorConnect Path Traversal Vulnerability
- CVE-2020-8515Same vendorDrayTek Multiple Vigor Routers
Multiple DrayTek Vigor Routers Web Management Page Vulnerability
- CVE-2025-32756Neighboring entryFortinet Multiple Products
Fortinet Multiple Products Stack-Based Buffer Overflow Vulnerability
- CVE-2025-42999Neighboring entrySAP NetWeaver
SAP NetWeaver Deserialization Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
A vulnerability, which was classified as critical, was found in DrayTek Vigor2960 and Vigor300B 1.5.1.4. Affected is an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component Web Management Interface. The manipulation of the argument session leads to os command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.5.1.5 is able to address this issue. It is recommended to upgrade the affected component.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2025-05-15. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Vigor Routers has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Perimeter appliance / gateway surface (DrayTek Vigor Routers): stream syslog, NetFlow, and authentication telemetry off-box to an independent collector (`Zeek`, `Suricata`, `Wazuh`) so logs survive appliance tampering. Inspect `conn.log` / `ssl.log` for unauthenticated probes against exposed VPN or management interfaces.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running DrayTek Vigor Routers and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- https://nvd.nist.gov/vuln/detail/CVE-2024-12987
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4ExploitThird Party Advisory
- https://vuldb.com/?ctiid.289380Permissions RequiredVDB Entry
- https://vuldb.com/?id.289380Third Party AdvisoryVDB Entry
- https://vuldb.com/?submit.468795Third Party AdvisoryVDB Entry
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdfRelease Notes
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdfRelease Notes
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdfNot Applicable
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
Modern, cryptographically opinionated kernel-space VPN tunnel
Endpoint visibility, digital forensics, and incident response (DFIR) platform