---
id: "CVE-2024-12987"
kind: "vulnerability"
aliases: ["CVE-2024-12987"]
title: "A vulnerability, which was classified as critical, was found in DrayTek Vigor2960 and Vigor300B 1.5.1.4"
severity: "critical"
cvss: 9.8
epss: null
exploited: true
status: "open"
category: "infrastructure"
products: [{"name": "DrayTek Vigor Routers", "fixed": [], "affected": "", "ecosystem": "vendor"}, {"name": "draytek vigor300b firmware", "fixed": [], "affected": "= 1.5.1.4", "ecosystem": "vendor"}, {"name": "draytek vigor2960 firmware", "fixed": [], "affected": "= 1.5.1.4", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["draytek", "exploited", "infrastructure", "self-hosted", "vigor2960", "vigor300b", "vigor3900"]
not_affected_if: ["default-config"]
published_at: "2024-12-27T16:15:24+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-23T22:29:05+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-12987", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-12987", "first_seen_at": "2026-10-23T22:29:05+00:00"}]
---

# A vulnerability, which was classified as critical, was found in DrayTek Vigor2960 and Vigor300B 1.5.1.4

DrayTek Vigor2960, Vigor300B and Vigor3900 routers have an OS command injection flaw in the web management interface at /cgi-bin/mainfunction.cgi/apmcfgupload. An attacker can run operating system commands on the router, and CISA lists it as actively exploited.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:DrayTek Vigor Routers affected ? fixed ?
- vendor:draytek vigor300b firmware affected = 1.5.1.4 fixed ?
- vendor:draytek vigor2960 firmware affected = 1.5.1.4 fixed ?

## Fix

Apply the vendor mitigation per DrayTek instructions, or discontinue use of the product if mitigations are unavailable (per CISA required action).

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-12987
- 2026-10-23T22:29:05+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-12987

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
