Vulnerability · CVE-2024-12987
DrayTek Vigor Routers OS Command Injection Vulnerability
Published Dec 27, 2024 · catalog updated Jun 17, 2026 · DrayTek Vigor Routers
Patch now
CVE-2024-12987 is in the CISA known-exploited catalog, due Jun 5, 2025. Confirm DrayTek Vigor Routers against the vendor advisory and apply that fix. The CVSS score does not change the priority.
- Severity
- Medium6.9
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 98.16%
- Remediation
- Remediation guidance
- Affected products
- cpe draytek/vigor2960 firmware · cpe draytek/vigor300b firmware · vendor 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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe draytek/vigor2960 firmware1.5.1.4
- cpe draytek/vigor300b firmware1.5.1.4
- vendor DrayTek Vigor Routersversion unspecified
How to fix CVE-2024-12987
Recommended remediation
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. CISA due date Jun 5, 2025.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2024-12987 is in the CISA known-exploited catalog, due Jun 5, 2025. Confirm DrayTek Vigor Routers against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Compare what you have installed with draytek/vigor2960 firmware 1.5.1.4; draytek/vigor300b firmware 1.5.1.4. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What should an analyst verify?
CWE-77: Command Injection; CWE-78: OS Command Injection. EPSS 98.16%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Dec 27, 2024 · Catalog
Detected
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 ma
May 15, 2025 · CISA KEV
Known exploited
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Jun 5, 2025 · CISA KEV
Remediation due
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Jun 17, 2026 · Catalog
Updated
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 ma
Sources
- CISA KEVConfirmed exploitationCVE-2024-12987
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.gov - CVE.orgVulnerability recordCVE-2024-12987
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2024-12987
30-day exploitation probability 98.2%
first.org - NIST NVDVulnerability recordCVE-2024-12987
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
nvd.nist.gov - VulnCheck KEVConfirmed exploitationCVE-2024-12987
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.
vulncheck.com
References
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- VulnCheck exploitation evidence · dashboard.shadowserver.org
- CISA note · fw.draytek.com.tw
- CISA note · fw.draytek.com.tw
- CISA note · fw.draytek.com.tw
- Exploit · netsecfish.notion.site
- CISA note · nvd.nist.gov
- Permissions Required · vuldb.com
- Third Party Advisory · vuldb.com
- Third Party Advisory · vuldb.com
- US Government Resource · cisa.gov
- VulnCheck exploitation evidence · fortinet.com
Freshness
Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.