CVE-2024-12987
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.
Severity
HIGH
CVSS v3
7.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L · source cna
CVSS v4
6.9
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 · source cna
Exploit chance (EPSS)
98.223%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-05-15
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
- CWE-77: Improper Neutralization of Special Elements used in a Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | DrayTek Vigor Routers OS Command Injection Vulnerability |
|---|---|
| Vendor / product | DrayTek / Vigor Routers |
| Date added | 2025-05-15 |
| Federal remediation due date | 2025-06-05 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-05-17 |
Timeline
- 2024-12-27Published by the CNA16:00 UTC
- 2025-05-15Added to the CISA KEV catalog139 days after publication
- 2025-05-17CISA SSVC decision recorded141 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2024-12987: DrayTek Vigor - Command Injection
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| draytek vigor2960_firmware | 1.5.1.4no fix listed | not listed |
| draytek vigor300b_firmware | 1.5.1.4no fix listed | not listed |
References
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- https://vuldb.com/?ctiid.289380
- https://vuldb.com/?id.289380
- https://vuldb.com/?submit.468795
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-12987'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-12987'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-12987'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-12987'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2024-12987'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).