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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| DrayTek | Vigor2960 | 1.5.1.4 | — |
| DrayTek | Vigor300B | 1.5.1.4 | — |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- DrayTek Vigor - Command Injection http/cves/2024/CVE-2024-12987.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- WID-SEC-2024-3757 DrayTek Vigor: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · May 15, 2025
References
- VDB-289380 | DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection vdb-entry technical-description
- VDB-289380 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- Submit #468795 | DrayTek Vigor2960, Vigor300B 1.5.1.4 Command Injection third-party-advisory
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4 exploit