# CVE-2024-12987: DrayTek Vigor Routers OS Command Injection Vulnerability

Source: https://junglewise.ai/threats/cve-2024-12987-draytek-vigor-routers-os-command-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-05-15. Updated: 2026-05-09  
License: CC BY 4.0 with a link back

CVE-2024-12987 · Severity: critical · CVSS 9.8 · Exploited in the wild · Published 2025-05-15

DrayTek Vigor2960, Vigor300B, and Vigor3900 routers contain an OS command injection vulnerability in the Web Management Interface. The flaw exists within the /cgi-bin/mainfunction.cgi/apmcfgupload endpoint where improper neutralization of the 'session' argument allows remote attackers to execute arbitrary commands.

Vendors: [DrayTek](https://junglewise.ai/threats/vendors/draytek).

## Quick answers

**Is CVE-2024-12987 exploited in the wild?** Yes. CVE-2024-12987 is known to be exploited in the wild, first recorded on 15 May 2025. Treat it as urgent.

**How severe is CVE-2024-12987?** Critical severity, with a CVSS score of 9.8, published 15 May 2025.

**Which products and versions are affected?** DrayTek Vigor2960 1.5.1.4; DrayTek Vigor300B 1.5.1.4; DrayTek Vigor3900 1.5.1.4.

**Is there a fix for CVE-2024-12987?** A patch was published on 2025-05-15: Firmware version 1.5.1.5 released to address the issue. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2024-12987 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2024-12987?** Check whether you run DrayTek Vigor or DrayTek Vigor Routers. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- DrayTek Vigor2960 1.5.1.4
- DrayTek Vigor300B 1.5.1.4
- DrayTek Vigor3900 1.5.1.4

## Timeline

- 2025-05-14: disclosed: Public disclosure of the exploit and vulnerability details.
- 2025-05-15: kev added: Added to CISA Known Exploited Vulnerabilities (KEV) catalog.
- 2025-05-15: patched: Firmware version 1.5.1.5 released to address the issue.

## Related threats

- [DrayTek Multiple Vigor Routers OS Command Injection Vulnerability](https://junglewise.ai/threats/cve-2020-15415-draytek-multiple-vigor-routers-os-command-injection-vulnerability)
