CVE-2024-12987

MEDIUM CVSS 4.0: 6.9 EPSS 98.2% ACTIVE EXPLOIT
Updated Jun 17, 2026
Draytek

CISA Known Exploited Vulnerability (KEV)

This vulnerability is actively exploited in the wild. Immediate patching is strongly recommended.

Due Date: Jun 05, 2025

Parameter Value
CVSS 6.9 (MEDIUM)
Type CWE-77 (Command Injection), CWE-78 (OS Command Injection)
Vendor Draytek
Public PoC Yes

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products 4

Configuration From (including) Up to (excluding)
Draytek Vigor300b_Firmware
cpe:2.3:o:draytek:vigor300b_firmware:1.5.1.4:*:*:*:*:*:*:*
— —
Draytek Vigor300b
cpe:2.3:h:draytek:vigor300b:-:*:*:*:*:*:*:*
— —
Draytek Vigor2960_Firmware
cpe:2.3:o:draytek:vigor2960_firmware:1.5.1.4:*:*:*:*:*:*:*
— —
Draytek Vigor2960
cpe:2.3:h:draytek:vigor2960:-:*:*:*:*:*:*:*
— —