CVE-2024-12987
Published 2024-12-27 · Updated 2026-06-17 · Source cna@vuldb.com
Summary
CVE-2024-12987 is a high-severity (CVSS 7.3) vulnerability in DrayTek Vigor Routers. CISA added it to the Known Exploited Vulnerabilities catalog on May 15, 2025, which means exploitation in the wild has been confirmed; US federal agencies had to remediate it by June 5, 2025. CISA does not currently list it as used in ransomware campaigns. DrayTek has 5 vulnerabilities in the KEV catalog, 0 of them linked to ransomware.
All 5 known-exploited DrayTek vulnerabilities →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 vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CISA Known-Exploited Vulnerability
Product: DrayTek — Vigor Routers
Name: DrayTek Vigor Routers OS Command Injection Vulnerability
Date added: 2025-05-15 · Due: 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.
References
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4
- https://vuldb.com/?ctiid.289380
- https://vuldb.com/?id.289380
- https://vuldb.com/?submit.468795
- 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://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987

