{"id":"CVE-2024-12987","aliases":["CVE-2024-12987"],"related":[],"kind":"vulnerability","state":"published","title":"DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Es wurde eine Schwachstelle in DrayTek Vigor2960 and Vigor300B 1.5.1.4 gefunden. Sie wurde als kritisch eingestuft. Es betrifft eine unbekannte Funktion der Datei /cgi-bin/mainfunction.cgi/apmcfgupload der Komponente Web Management Interface. Durch die Manipulation des Arguments session mit unbekannten Daten kann eine os command injection-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk erfolgen. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 1.5.1.5 vermag dieses Problem zu lösen. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado una vulnerabilidad clasificada como crítica en DrayTek Vigor2960 y Vigor300B 1.5.1.4. Se trata de una función desconocida del archivo /cgi-bin/mainfunction.cgi/apmcfgupload del componente Web Management Interface. La manipulación del argumento session provoca la inyección de comandos del sistema operativo. Es posible lanzar el ataque de forma remota. El exploit se ha hecho público y puede utilizarse. La actualización a la versión 1.5.1.5 puede solucionar este problema. Se recomienda actualizar el componente afectado.","source":"nvd"},{"lang":"en","text":"DrayTek Vigor2960, Vigor300B, and Vigor3900 routers contain an OS command injection vulnerability due to an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component web management interface.","source":"kev"}],"published":"2024-12-27T16:00:13.600Z","modified":"2026-06-17T07:00:55.297Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"version":"1.5.1.4","status":"affected"}],"vendor":"DrayTek","product":"Vigor2960","source":"cvelist"},{"ranges":[{"version":"1.5.1.4","status":"affected"}],"vendor":"DrayTek","product":"Vigor300B","source":"cvelist"},{"ranges":[{"status":"affected","version":"1.5.1.4"}],"vendor":"draytek","product":"vigor300b_firmware","cpe":"cpe:2.3:o:draytek:vigor300b_firmware:1.5.1.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.5.1.4"}],"vendor":"draytek","product":"vigor2960_firmware","cpe":"cpe:2.3:o:draytek:vigor2960_firmware:1.5.1.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"DrayTek","product":"Vigor Routers","source":"kev"}],"references":[{"url":"https://vuldb.com/?id.289380","tags":["technical-description","third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?ctiid.289380","tags":["permissions-required","signature","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?submit.468795","tags":["third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987","tags":["government-resource","us-government-resource"],"sources":["cvelist","nvd"]},{"url":"https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf","tags":["kev","not-applicable"],"sources":["cvelist","nvd","kev"]},{"url":"https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf","tags":["kev","release-notes"],"sources":["cvelist","nvd","kev"]},{"url":"https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf","tags":["kev","release-notes"],"sources":["cvelist","nvd","kev"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12987","tags":["kev"],"sources":["kev"]}],"credits":["netsecfish (VulDB User)"],"assigner":"VulDB","kev":{"dateAdded":"2025-05-15","dueDate":"2025-06-05","name":"DrayTek Vigor Routers OS Command Injection Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"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://nvd.nist.gov/vuln/detail/CVE-2024-12987"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"yes","technicalImpact":"total","date":"2025-05-17T03:56:02.764Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-12987","url":"https://www.cve.org/CVERecord?id=CVE-2024-12987","licence":"CVE Terms of Use","modified":"2025-10-21T22:55:33.312Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-12987","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12987","licence":"Public domain","modified":"2026-06-17T07:00:55.297Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2024-12987","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-12987","licence":"CC0-1.0","modified":"2025-05-15T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:50.518Z","epss":{"score":0.98223,"percentile":0.99914,"date":"2026-12-01T12:00:22.000Z"}}