OS command injection
Input changes a command that the server runs through its operating system.
CWE-78 · CISA KEV; NVD record: cna@vuldb.com
Reading and practice labs · Free account for labs. Basic HTTP knowledge; some labs use Burp Suite.
Security news, read and ranked every 30 minutes.
Exploited. On CISA's list since 2025-05-15.
CVE-2024-12987 · DrayTek Vigor Routers · Published 2024-12-27
6.9 out of 10
CVSS rates it medium.
98%
Estimated chance of exploitation in the next 30 days, among the top 1% of all scored flaws (EPSS, 2026-10-29).
Yes
CISA has seen it exploited in real attacks. For US government agencies the fix is deadline passed 512 days ago (2025-06-05).
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
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.
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 NVD.
Explore this week’s weaknesses and all learning topics
Understand the kind of weakness behind this flaw. These resources teach the weakness, rather than reproduce this specific CVE. Follow the vendor's advice above to fix the affected product.
Input changes a command that the server runs through its operating system.
CWE-78 · CISA KEV; NVD record: cna@vuldb.com
Reading and practice labs · Free account for labs. Basic HTTP knowledge; some labs use Burp Suite.
CWE-77 · NVD record: cna@vuldb.com. We have not selected a close learning match for this label.
CWE is a catalogue of weakness types. Labels come from the sources shown and can differ or change. Resource matches reviewed 16 October 2026.
No story in the last 14 days has mentioned it.
Exploited flaws from CISA's KEV catalogue. Chance of exploitation from EPSS by FIRST. Descriptions and scores from the NVD. This product uses the NVD API but is not endorsed or certified by the NVD.