Skip to main content
Mallory
MediumExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-12987: OS Command Injection in DrayTek Vigor Web Management Interface

Published Dec 27, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.9Medium · v4
EPSS98.2%100th percentile
CISA KEVYesAdded May 15, 2025
In the wildActivePer CISA KEV
Vendor
Draytek
IdentifiersCVE-2024-12987CWE-78 · Improper Neutralization of Special…

CVE-2024-12987 is an operating-system command injection vulnerability in the apmcfgupload component of the DrayTek Vigor Web Management Interface. Manipulating the session parameter allows remote attackers to execute arbitrary operating-system commands on affected routers. DrayTek Vigor2960 and Vigor300B devices running firmware 1.5.1.4 are affected; Vigor3900 is also listed as affected, although its vulnerable firmware versions are not specified. A public exploit is available, and exploitation has been observed in RustoBot campaigns. Firmware 1.5.1.5 addresses the issue on the identified Vigor2960 and Vigor300B firmware branch.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary command execution and potential compromise of the affected router. Attackers have used the vulnerability to deploy RustoBot, enabling remote control and use of compromised devices for DDoS attacks. The execution privilege level and specific confidentiality impacts are not established.

Mitigation

If you can’t patch tonight, do this now.

Until firmware updates can be applied, disable public Internet access to the web management interface and restrict management access to trusted networks through strict firewall rules, preferably using a VPN. Enforce strong authentication and monitor management logs for unauthorized access attempts. Audit exposed devices and monitor outbound traffic for evidence of botnet activity.

Remediation

Patch, then assume compromise.

Upgrade affected Vigor2960 and Vigor300B devices from firmware 1.5.1.4 to 1.5.1.5 or a later fixed release. For Vigor3900, apply the appropriate vendor firmware update; an exact fixed version is not specified. After upgrading, verify the installed firmware version and device functionality.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DraytekVigor2960 Firmwareoperating_system
DraytekVigor300b Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2024-12987 exploited in the wild?
Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 15, 2025.
Is there a public exploit for CVE-2024-12987?
Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2024-12987.
Is there a patch for CVE-2024-12987?
Upgrade affected Vigor2960 and Vigor300B devices from firmware 1.5.1.4 to 1.5.1.5 or a later fixed release. For Vigor3900, apply the appropriate vendor firmware update; an exact fixed version is not specified.
What products are affected by CVE-2024-12987?
Draytek Vigor300b Firmware and Draytek Vigor2960 Firmware.
How severe is CVE-2024-12987?
CVE-2024-12987 has a CVSS v4 score of 6.9 (Medium) and an EPSS score of 98.2% (100th percentile) as of Oct 9, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity10Community discussion across Reddit, Mastodon, and other social sources.