# CVE-2024-12987

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.

- Page: https://www.vulneraibility.com/cve/CVE-2024-12987
- CVSS: 7.3
- Known exploited: yes, in CISA KEV since 2025-05-15; CISA due date 2025-06-05
- EPSS: 98.16%
- Detection templates only, no public exploit found: 1 Nuclei template
- CISA SSVC: exploitation active, automatable yes, technical impact total (assessed 2025-05-17)
- Weakness: CWE-78, CWE-77
- Published: 2024-12-27

## Affected versions

- DrayTek Vigor2960: affected 1.5.1.4
- DrayTek Vigor300B: affected 1.5.1.4

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://vuldb.com/?id.289380
- [other] https://vuldb.com/?ctiid.289380
- [advisory] https://vuldb.com/?submit.468795
- [exploit] https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987
- [other] https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- [other] https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- [other] https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
