CVE-2024-12987: DrayTek Vigor Routers OS Command Injection
DrayTek Vigor Routers · listed in the CISA catalog of actively exploited vulnerabilities since 2025-05-15.
- CVSS v3.1 (CVE record)
- 7.3
- high
- EPSS (exploit probability, 30 days)
- 98%
- among the highest 0.1% of all CVEs
- Added to CISA KEV
- 2025-05-15
- US federal due date 2025-06-05
- Automatable (CISA SSVC)
- yes
- technical impact: total
What is CVE-2024-12987?
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.
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- DrayTek Vigor2960Web Management InterfaceAffectedFixed in
- 1.5.1.4
not stated - DrayTek Vigor300BWeb Management InterfaceAffectedFixed in
- 1.5.1.4
not stated
| Product | Affected | Fixed in |
|---|---|---|
| DrayTek Vigor2960Web Management Interface |
| not stated |
| DrayTek Vigor300BWeb Management Interface |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vig…
- CISA's deadline for US federal agencies: 2025-06-05 (passed) – a useful benchmark for everyone else, too.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 OS Command Injection, CWE-77 Command Injection
References
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.