Skip to content
Server Security Center
KEVhigh7.3

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

CVE-2024-12987 explained

CVE-2024-12987 is an OS command injection vulnerability in the Web Management Interface of DrayTek Vigor2960 and Vigor300B routers running 1.5.1.4. Unauthenticated remote attackers can inject operating system commands. CISA lists it as known exploited, and a public exploit has been disclosed, so exposed devices are at serious risk.

Impact

An attacker can send crafted input over the network to the Web Management Interface and have it run operating system commands on the router. No login or user interaction is needed. CISA rates the flaw as automatable, meaning it can be exploited at scale, with total technical impact, meaning full control of the device. Attackers are known to exploit it. Whether ransomware groups use it is unknown.

Who is affected

The CVE record lists DrayTek Vigor2960 and DrayTek Vigor300B, both at version 1.5.1.4. The structured version data in the record names no fixed version. The description, however, states that upgrading to version 1.5.1.5 addresses the issue. Check the DrayTek advisory to confirm the correct firmware for each model.

Written with AI from the data on this page and checked against it automatically.

Official description

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 Interface
    Affected
    • 1.5.1.4
    Fixed in
    not stated
  • DrayTek Vigor300BWeb Management Interface
    Affected
    • 1.5.1.4
    Fixed in
    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.

What to do

  1. Upgrade Vigor2960 and Vigor300B routers to firmware 1.5.1.5 after confirming it in the DrayTek advisory.
  2. Apply any mitigations in the vendor's instructions, as CISA's required action directs.
  3. Block internet access to the Web Management Interface and allow it only from trusted management networks.
  4. Check affected routers for signs of compromise, such as unknown configuration changes, accounts or processes.
  5. If no mitigation is available for a device, stop using it, as CISA's required action advises.

The CVE record's version data names no fixed version, but its description says 1.5.1.5 addresses the issue. Confirm this in the DrayTek advisory. Until patched, follow CISA's required action: apply the vendor's mitigations or stop using the product if none are available. Keep the Web Management Interface off the internet.

Written with AI from the data on this page and checked against it automatically.

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

Questions about CVE-2024-12987

Is CVE-2024-12987 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2025-05-15, with a US federal due date of 2025-06-05. A public exploit has also been disclosed.
Does an attacker need credentials?
No. The attack works remotely over the network without privileges or user interaction. It targets the router's Web Management Interface.
Which firmware fixes the issue?
The CVE description says upgrading to version 1.5.1.5 addresses it. The structured version data lists no fixed version, so confirm the firmware in the DrayTek advisory.

Written with AI from the data on this page and checked against it automatically.

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.