CVE-2024-12987
DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running DrayTek Vigor2960 1.5.1.4
- Anyone running DrayTek Vigor300B 1.5.1.4
Vulnerability facts
- Affected
- DrayTek Vigor2960 1.5.1.4; DrayTek Vigor300B 1.5.1.4
- Fixed in
- No fix listed yet
- Exploited in the wild
- Yes: in CISA KEV since 2025-05-15; federal due date 2025-06-05
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 77.03% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-78, CWE-77
- Modified
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.
Affected and fixed versions
Timeline
- 2024-12-27 Published
- 2025-05-15 Added to CISA KEV (exploited in the wild)
- 2025-06-05 CISA remediation due date for US federal agencies
- 2026-06-17 Last modified
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-12987. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-12987.md Affected: DrayTek Vigor2960 1.5.1.4; DrayTek Vigor300B 1.5.1.4 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for DrayTek Vigor2960, DrayTek Vigor300B: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Exploits and PoCs
Articles
Other
- https://vuldb.com/?ctiid.289380
- https://vuldb.com/?submit.468795
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-12987
- 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
FAQ
Is CVE-2024-12987 being exploited?
Yes. CISA lists CVE-2024-12987 in its Known Exploited Vulnerabilities catalog since 2025-05-15, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 77.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-12987?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-12987?
DrayTek Vigor2960 1.5.1.4; DrayTek Vigor300B 1.5.1.4.
Is there a fix for CVE-2024-12987?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-12987?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.