Home / DrayTek / Vigor2960 / CVE-2024-12987
CVE-2024-12987: is it exploited, and which versions of DrayTek Vigor2960 are affected and fixed?
CVE-2024-12987 is an OS command injection vulnerability in DrayTek Vigor2960, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on May 15, 2025, with a federal due date of June 5, 2025. Affected: Vigor2960 1.5.1.4 and Vigor300B 1.5.1.4 (CVE record by VulDB). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.9, CVSS 4.0, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:24 UTC.
What is CVE-2024-12987?
DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection
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.
From the CVE record by VulDB, last updated October 21, 2025, 22:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| DrayTek | Vigor2960 | 1.5.1.4 | |
| DrayTek | Vigor300B | 1.5.1.4 |
As the CVE record by VulDB states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| draytek | vigor300b firmware | 1.5.1.4 | operating system |
| draytek | vigor2960 firmware | 1.5.1.4 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:00 UTC.
How severe is CVE-2024-12987?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 4.0 | 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 | VulDB |
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | VulDB |
| High 7.3 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | VulDB |
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | VulDB |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-12987 exploited in the wild?
- CISA KEV
- Listed as DrayTek Vigor Routers OS Command Injection Vulnerability, added May 15, 2025; federal agencies must act by June 5, 2025
- 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.
- Ransomware use
- Unknown
- CISA's summary
- DrayTek Vigor2960, Vigor300B, and Vigor3900 routers contain an OS command injection vulnerability due to an unknown function of the file /cgi-bin/mainfunction.cgi/apmcfgupload of the component web management interface.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, May 17, 2025)
- EPSS
- 98.2% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- CWE-77 Improper Neutralization of Special Elements used in a Command
Where are the vendor advisories and references?
- VDB-289380 | DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection vdb-entry, technical-description
- VDB-289380 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #468795 | DrayTek Vigor2960, Vigor300B 1.5.1.4 Command Injection third-party-advisory
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4 exploit
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987 government-resource
- https://fw.draytek.com.tw/Vigor3900/Firmware/v1.5.1.5/DrayTek_Vigor3900_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.5/DrayTek_Vigor2960_V1.5.1.5_01release-note.pdf
- https://fw.draytek.com.tw/Vigor300B/Firmware/v1.5.1.5/DrayTek_Vigor300B_V1.5.1.5_01release-note.pdf
Who found and reported it?
- netsecfish (VulDB User) (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 27, 2024
- Published
- December 27, 2024, 16:00 UTC
- CVE record updated
- October 21, 2025, 22:55 UTC by VulDB
- NVD
- Analyzed, last modified June 17, 2026, 07:00 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:24 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Vigor2960?
- Nov 18, 2026CVE-2026-132143 DrayTek Vigor2960: stack buffer overflow
- Nov 18, 2026CVE-2026-132142 DrayTek Vigor2960: stack buffer overflow
- Nov 18, 2026CVE-2026-132141 DrayTek Vigor2960: stack buffer overflow
- Nov 18, 2026CVE-2026-132140 DrayTek Vigor2960: NULL pointer dereference (crash)
- Nov 18, 2026CVE-2026-132139 DrayTek Vigor2960: stack buffer overflow
- Nov 15, 2026CVE-2026-129453 DrayTek Vigor2960: heap buffer overflow
- Nov 15, 2026CVE-2026-129452 DrayTek Vigor2960: command injection
- Nov 15, 2026CVE-2026-129451 DrayTek Vigor2960: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2024-12987
Is CVE-2024-12987 exploited in the wild?
Yes. CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities catalog on May 15, 2025 and set federal agencies a due date of June 5, 2025. FIRST's EPSS gives it a 98.2% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of DrayTek Vigor2960 are affected by CVE-2024-12987?
Vigor2960 1.5.1.4 and Vigor300B 1.5.1.4, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2024-12987?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2024-12987?
Medium (6.9, CVSS 4.0, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2024-12987?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.