CVE-2024-12987
JSON

6.9mediumExploited

DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection

Severity
6.9medium CVSS:4.0 by VulDB
Exploit likelihood
98.2% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulDB

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.

Affected

Product or packageVersionsReported by
DrayTek Vigor29601.5.1.4CVE List
DrayTek Vigor300B1.5.1.4CVE List
draytek vigor300b_firmware1.5.1.4NVD
draytek vigor2960_firmware1.5.1.4NVD
DrayTek Vigor RoutersNot specifiedCISA KEV

All scores

VulDB6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
VulDB7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
VulDB7.3high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
VulDB7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-77CWE-78

SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total.

What each source says

CVE List

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.

CVE List (de)

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.

NVD (es)

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.

CISA KEV

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.

References

https://vuldb.com/?id.289380technical-description, third-party-advisory, vdb-entry
https://vuldb.com/?ctiid.289380permissions-required, signature, vdb-entry
https://vuldb.com/?submit.468795third-party-advisory, vdb-entry
https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4exploit, third-party-advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987government-resource, us-government-resource
https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdfkev, not-applicable
https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdfkev, release-notes
https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdfkev, release-notes
https://nvd.nist.gov/vuln/detail/CVE-2024-12987kev

Sources

SourceRecordLicence
CVE ListCVE-2024-12987 changed 2025-10-21CVE Terms of Use
NVDCVE-2024-12987 changed 2026-06-17Public domain
CISA KEVCVE-2024-12987 changed 2025-05-15CC0-1.0