# CVE-2024-12987: DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection

> CVE-2024-12987: DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection. CVSS 7.3 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2024-12987
Last updated: 2026-06-17T07:00:55Z

- Published: 2024-12-27 16:00 UTC · Updated: 2026-06-17 07:00 UTC · Assigner: VulDB
- CVSS: 7.3 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- EPSS: 98.2%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2025-05-15, federal due date 2025-06-05, ransomware use: Unknown
- CWE: CWE-77, CWE-78

## 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.

## CISA 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.

## Affected vendors and products

- DrayTek: Vigor2960
- DrayTek: Vigor300B

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-12987)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-12987)
- [https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4](https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4)
- [https://vuldb.com/?ctiid.289380](https://vuldb.com/?ctiid.289380)
- [https://vuldb.com/?id.289380](https://vuldb.com/?id.289380)
- [https://vuldb.com/?submit.468795](https://vuldb.com/?submit.468795)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-12987 · Markdown: https://rewindex.com/cve/CVE-2024-12987.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-12987 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:06.588Z
