CVE-2024-12987

HIGH CISA KEV
Published Dec 27, 2024 Modified Oct 30, 2025 CWE-77 CWE-78

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.

CVSS v3.1 Score

7.3
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

CISA Known Exploited Vulnerability

This vulnerability is actively exploited in the wild.

Added: May 15, 2025 Remediation due: Jun 5, 2025

Weakness Type (CWE)

CWE-77 CWE-77
CWE-78 OS Command Injection

Affected Products

Vendor Product
draytek vigor300b_firmware
draytek vigor300b
draytek vigor2960_firmware
draytek vigor2960

References

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. It has a CVSS v3.1 base score of 7.3 (HIGH). This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild.
How severe is CVE-2024-12987? +
CVE-2024-12987 has a CVSS v3.1 score of 7.3 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-12987? +
CVE-2024-12987 affects products from draytek, specifically: vigor2960, vigor2960_firmware, vigor300b, vigor300b_firmware. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-12987? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-12987 — free, no signup required.

Start Free Scan