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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: yes. In CISA's catalogue since 2025-05-15. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 98.2%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-27T16:00:13.600Z
- Modified: 2026-06-17T07:00:55.297Z
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- DrayTek Vigor2960: 1.5.1.4
- DrayTek Vigor300B: 1.5.1.4
- draytek vigor300b_firmware: 1.5.1.4
- draytek vigor2960_firmware: 1.5.1.4
- DrayTek Vigor Routers: no versions given

## Every score

- VulDB: CVSS:4.0 6.9 Medium `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`
- VulDB: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-12987](https://www.cve.org/CVERecord?id=CVE-2024-12987), CVE Terms of Use, modified 2025-10-21
- NVD: [CVE-2024-12987](https://nvd.nist.gov/vuln/detail/CVE-2024-12987), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2024-12987](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-12987), CC0-1.0, modified 2025-05-15

---

Page: https://cve.day/CVE-2024-12987 · Whole record: https://cve.day/CVE-2024-12987.json · Rebuilt by cve.day 2026-11-25T22:58:50.518Z
