Known exploited vulnerability
CVE-2024-12987
The short answer
CVE-2024-12987 affects DrayTek Vigor2960 and is rated medium (CVSS 6.9). CISA added it to the Known Exploited Vulnerabilities catalog on 2025-05-15: attackers are using it, so patch it first.
What it is
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.
Severity
6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Exploited (CISA KEV)
Yes, since May 15, 2025
Federal due date Jun 5, 2025
EPSS, next 30 days
98%
Higher than 100% of scored CVEs
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- Low
What CISA says to do
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Affected products
Vigor2960, Vigor300B. NVD's record lists the exact affected versions.
References
- netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4 ExploitThird Party Advisory
- vuldb.com/?ctiid.289380 Permissions RequiredVDB Entry
- vuldb.com/?id.289380 Third Party AdvisoryVDB Entry
- vuldb.com/?submit.468795 Third Party AdvisoryVDB Entry
- fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf Release Notes
- fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf Release Notes
- fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf Not Applicable
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987 US Government Resource
Questions
Is CVE-2024-12987 being exploited?
Yes. CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities catalog on 2025-05-15, with a federal remediation due date of 2025-06-05.
How do I fix CVE-2024-12987?
CISA's required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.
Related
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
DrayTek exploited vulnerabilities
Everything CISA lists as exploited for DrayTek.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.