CVE-2024-12987DrayTek Vigor Routers
OS Command Injection in DrayTek Vigor Routers
Medium 6.9 KEV No auth neededHigh EPSS
Follow: this CVE · DrayTek · DrayTek Vigor Routers We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 4.0
- 6.9
- EPSS
- 77.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- May 15, 2025
- CISA deadline
- Jun 5, 2025
- Ransomware use
- Unknown
- Published
- Dec 27, 2024
- Updated
- Jun 17, 2026
- Category
- Network & edge · Network appliance
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
A critical OS command injection vulnerability was found in DrayTek Vigor2960 and Vigor300B routers version 1.5.1.4 in the web management interface. An unauthenticated remote attacker can execute arbitrary system commands by manipulating the session parameter in /cgi-bin/mainfunction.cgi/apmcfgupload. CISA confirmed this vulnerability is actively exploited.
Show the original NVD text
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.
Exploitation confirmed by CISA
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.
Action required by CISA: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do
Patch available · fixed versions: 1.5.1.5
Upgrade the firmware of Vigor2960 and Vigor300B routers to version 1.5.1.5 or later from DrayTek's official website.
- Apply the vendor's security update for Vigor Routers.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 5, 2025.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| draytek | vigor300b_firmware | 1.5.1.4 |
| draytek | vigor2960_firmware | 1.5.1.4 |
Official sources
References
Links published by the sources. Open them with care.
- netsecfish.notion.site Exploit Third Party Advisory
- vuldb.com Permissions Required VDB Entry
- vuldb.com Third Party Advisory VDB Entry
- vuldb.com Third Party Advisory VDB Entry
- fw.draytek.com.tw Release Notes
- fw.draytek.com.tw Release Notes
- fw.draytek.com.tw Not Applicable
- www.cisa.gov US Government Resource