Skip to content
CTI Academy Sponsor CTI Academy
HIGH · CVSS 7.3 CISA Known Exploited Vulnerability

CVE-2024-12987

DrayTek Vigor Routers OS Command Injection Vulnerability

DrayTek Vigor Routers

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
7.3
HIGH
EPSS
98.2%
30-day exploitation
Ransomware groups
0
recorded exploiting
Published
27 Dec 2024
CWE-77, CWE-78

Exploitation status

CISA Known Exploited Vulnerabilities

Listed by CISA on 15 May 2025. US federal agencies were required to remediate it by 5 June 2025.

EPSS — exploitation probability

FIRST puts the probability of exploitation activity in the next 30 days at 98.2%, which is higher than 99.9% of all scored vulnerabilities. EPSS is a forecast of activity, not a measure of severity, and it is rescored daily.

CVSS vector

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

Frequently asked questions

Is CVE-2024-12987 being exploited by ransomware groups?

No ransomware group in this database is currently recorded as exploiting CVE-2024-12987.

What does CVE-2024-12987 affect?

CVE-2024-12987 affects DrayTek Vigor Routers. 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 is rated HIGH with a CVSS base score of 7.3. EPSS puts the probability of exploitation in the next 30 days at 98.2%, higher than 99.9% of all scored vulnerabilities. It is listed in the CISA Known Exploited Vulnerabilities catalog, with a federal remediation deadline of 5 June 2025.

How should organisations respond to CVE-2024-12987?

Apply the vendor patch for DrayTek Vigor Routers as the first priority, and treat any internet-facing instance as the most urgent. Because this vulnerability is associated with ransomware activity, also review whether the affected systems were reachable before patching, rather than assuming that patching alone closes the incident.