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

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

Affected products (2)

More vulnerabilities in Draytek Vigor300b Firmware

All CVEs affecting Draytek Vigor300b Firmware →

Other CWE-77 (Command Injection) vulnerabilities

Browse all CWE-77 (Command Injection) vulnerabilities →