CVE-2024-12987: DrayTek Vigor Routers OS Command Injection Vulnerability
Vulnerability summary
CVE-2024-12987 is a critical (CVSS 9.8) Command Injection vulnerability in DrayTek Vigor Routers. It is known to be exploited: CISA lists it, first on 15-05-2025. EPSS estimates a 98.16% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 27-12-2024PublishedVulnerability first disclosed.
- 15-05-2025Added to CISA KEVExploitedDrayTek Vigor Routers OS Command Injection Vulnerability
- 05-06-2025CISA remediation dueDeadline passedApply mitigations per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 2 sources · 4 versions- NVDNIST6.9MediumCVSS: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
- CVE.orgCNA7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- NVDNIST7.5HighAV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS trend
Probability
98.16%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
Increase +0.08 pp
From 98.08% on 22-09-2026
Known exploited
Compare KEV catalogs- Added
- 15-05-2025
- Federal due date
- 05-06-2025
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
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. fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf nvd.nist.gov/vuln/detail/CVE-2024-12987
Public exploits
1 foundExploit Reference (netsecfish.notion.site)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Affected systems
Draytek2 products
- vigor29601.5.1.4
- vigor300b_firmware1.5.1.4
1 vendor · 2 products
References
8 links- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987Government ResourceUS Government Resource