CVE-2024-12987
MEDIUM 6.9CVSS 4.0known exploitedDrayTek Vigor Routers OS Command Injection Vulnerability
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.
- Published
- 27 Dec 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Analyzed
- Weakness
- CWE-77CWE-78
- Sources
- NVDJSONCISA KEVJSON
In CISA's Known Exploited Vulnerabilities catalog since 15 May 2025; US federal agencies must fix it by 5 Jun 2025.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | MEDIUM 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/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 |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | draytek | vigor300b_firmwarecpe:2.3:o:draytek:vigor300b_firmware:1.5.1.4:*:*:*:*:*:*:* |
= 1.5.1.4 | |
| NVD | draytek | vigor2960_firmwarecpe:2.3:o:draytek:vigor2960_firmware:1.5.1.4:*:*:*:*:*:*:* |
= 1.5.1.4 |
References
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4 · Exploit, Third Party Advisory
- https://vuldb.com/?ctiid.289380 · Permissions Required, VDB Entry
- https://vuldb.com/?id.289380 · Third Party Advisory, VDB Entry
- https://vuldb.com/?submit.468795 · Third Party Advisory, VDB Entry
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf · Release Notes
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf · Release Notes
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf · Not Applicable
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987 · US Government Resource
- https://nvd.nist.gov/vuln/detail/CVE-2024-12987
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Dec 2024)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 15 May 2025)
- 15 May 2025 00:00 UTC · Listed as known exploited