CVE-2024-12987

DrayTek Vigor Routers OS Command Injection Vulnerability

Actively exploited · CISA KEV
6.9 MediumCVSS v4.0
98.2%EPSS (30-day exploit probability)
2025-05-15added to KEV
2025-06-05CISA federal due date

Summary

DrayTek Vigor Routers. 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.

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.

CVSS 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
Weakness
CWE-77, CWE-78
Published
2024-12-27 (last modified 2026-06-17)

What to do

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  1. Find every instance of DrayTek Vigor Routers in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2024-12987 being exploited?

Yes. CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities catalog on 2025-05-15, which means there is reliable evidence of active exploitation.

How do I fix CVE-2024-12987?

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.

What is the EPSS score for CVE-2024-12987?

The EPSS score is 98.22%, meaning an estimated 98.22% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited DrayTek vulnerabilities

CVE-2020-15415DrayTek Multiple Vigor Routers OS Command Injection Vulnerability2024-09-30
CVE-2021-20124Draytek VigorConnect Path Traversal Vulnerability2024-09-03
CVE-2021-20123Draytek VigorConnect Path Traversal Vulnerability2024-09-03
CVE-2020-8515Multiple DrayTek Vigor Routers Web Management Page Vulnerability2021-11-03

All DrayTek exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.