Live threats

All CVEs / DrayTek

CVE-2024-12987DrayTek Vigor Routers

OS Command Injection in DrayTek Vigor Routers

Medium 6.9 KEV No auth neededHigh EPSS

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
Weakness (CWE)
CWE-77, CWE-78
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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · fw.draytek.com.tw ↗

  1. Apply the vendor's security update for Vigor Routers.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 5, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
draytekvigor300b_firmware1.5.1.4
draytekvigor2960_firmware1.5.1.4

Official sources

References

Links published by the sources. Open them with care.