CVE-2024-12987
CVE-2024-12987 is a high-severity vulnerability in Draytek Vigor300b Firmware with a CVSS 3.x base score of 7.3. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2025-05-15). The underlying weakness is classified as CWE-77.
Key facts
- Severity: High (CVSS 3.x base score 7.3)
- CVSS v2: 7.5
- CVSS v4: 6.9
- EPSS exploit prediction: 98% (100th percentile)
- Actively exploited: Yes — listed in CISA KEV (added 2025-05-15)
- EU (EUVD) id: EUVD-2024-51246
- EU exploitation: Flagged exploited in the ENISA EU Vulnerability Database (since 2025-05-15)
- Weakness: CWE-77
- Affected product: Draytek Vigor300b Firmware
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2024-12987?
- CVE-2024-12987 has a CVSS 3.x base score of 7.3, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability low.
- Is CVE-2024-12987 being actively exploited?
- Yes. CVE-2024-12987 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2025-05-15, which means active exploitation has been confirmed. It should be prioritised for remediation.
- What products are affected by CVE-2024-12987?
- CVE-2024-12987 primarily affects Draytek Vigor300b Firmware. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-12987?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
- Does CVE-2024-12987 have an EU (EUVD) identifier?
- Yes. CVE-2024-12987 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-51246. It is also flagged as exploited in the EUVD (since 2025-05-15).
- When was CVE-2024-12987 published?
- CVE-2024-12987 was published on 2024-12-27 and last updated on 2026-06-17.
References
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4
- https://vuldb.com/?ctiid.289380
- https://vuldb.com/?id.289380
- https://vuldb.com/?submit.468795
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987
Affected products (2)
- cpe:2.3:o:draytek:vigor300b_firmware:1.5.1.4:*:*:*:*:*:*:*
- cpe:2.3:o:draytek:vigor2960_firmware:1.5.1.4:*:*:*:*:*:*:*
More vulnerabilities in Draytek Vigor300b Firmware
- CVE-2021-43118 — Critical (CVSS 9.8): A Remote Command Injection vulnerability exists in DrayTek Vigor 2960 1.5.1.3, DrayTek Vigor 3900 1.5.1.3, and DrayTek…
- CVE-2021-42911 — Critical (CVSS 9.8): A Format String vulnerability exists in DrayTek Vigor 2960 <= 1.5.1.3, DrayTek Vigor 3900 <= 1.5.1.3, and DrayTek Vigor…
- CVE-2020-15415 — Critical (CVSS 9.8): On DrayTek Vigor3900, Vigor2960, and Vigor300B devices before 1.5.1, cgi-bin/mainfunction.cgi/cvmcfgupload allows…
- CVE-2020-14473 — Critical (CVSS 9.8): Stack-based buffer overflow vulnerability in Vigor3900, Vigor2960, and Vigor300B with firmware before 1.5.1.1.
- CVE-2020-14472 — Critical (CVSS 9.8): On Draytek Vigor3900, Vigor2960, and Vigor 300B devices before 1.5.1.1, there are some command-injection…
- CVE-2020-14993 — Critical (CVSS 9.8): A stack-based buffer overflow on DrayTek Vigor2960, Vigor3900, and Vigor300B devices before 1.5.1.1 allows remote…
All CVEs affecting Draytek Vigor300b Firmware →
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-23652 — Critical (CVSS 10.0): Improper neutralization of special elements used in a command ('command injection') in Microsoft Power Pages allows an…
- CVE-2025-59818 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute arbitrary commands on the underlying system using the file…
- CVE-2025-64093 — Critical (CVSS 10.0): Remote Code Execution vulnerability that allows unauthenticated attackers to inject arbitrary commands into the…
- CVE-2025-64090 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute commands via the hostname of the device.
- CVE-2025-61492 — Critical (CVSS 10.0): A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to…
- CVE-2025-10035 — Critical (CVSS 10.0): A deserialization vulnerability in the License Servlet of Fortra's GoAnywhere MFT allows an actor with a validly forged…