DrayTek Vigor Routers OS Command Injection Vulnerability
DrayTek — Vigor2960
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.
6.9
98.1%
Vector breakdown
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality (Vulnerable System)
- Low
- Integrity (Vulnerable System)
- Low
- Availability (Vulnerable System)
- Low
- Confidentiality (Subsequent System)
- None
- Integrity (Subsequent System)
- None
- Availability (Subsequent System)
- None
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
- Published
- Dec 27, 2024
- Modified
- Oct 21, 2025
- Added to KEV
- May 15, 2025
- Federal patch due
- Jun 5, 2025
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.
Weakness classification
Proof-of-concept & exploitation references
Weaponization
Public repositories whose name or description references CVE-2024-12987, found via a live GitHub search at request time. These are community-sourced signals, not a verified working exploit - cross-check each one before relying on it, and treat higher star counts and recent activity as (weak) corroboration, not proof.
No public GitHub repositories referencing CVE-2024-12987 were found at last check. Absence here is not proof no exploit exists - see the references below for vendor advisories and write-ups.
References
Frequently asked questions
What is CVE-2024-12987?
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.
How severe is CVE-2024-12987?
CVE-2024-12987 has a CVSS base score of 6.9 out of 10 (CVSS 4.0).
Is CVE-2024-12987 actively exploited in the wild?
Yes. CVE-2024-12987 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added May 15, 2025, meaning CISA has confirmed evidence of active exploitation.
What is the EPSS score for CVE-2024-12987?
98.1% - meaning FIRST.org's EPSS model estimates a 98.1% probability this vulnerability will be exploited in the wild within 30 days (100% percentile among all scored CVEs).
Is there exploit tooling available for CVE-2024-12987?
Yes - a public Nuclei template referencing CVE-2024-12987 exist in public repositories we checked.
What type of vulnerability is CVE-2024-12987?
CVE-2024-12987 is classified under CWE-78, CWE-77 (OS Command Injection).
Cross-checked against
Impactr finds and proves whether CVE-2024-12987 - or flaws like it - are actually reachable in your own web apps and APIs, with a reproducible exploit as evidence.
Join the waitlist