Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-12987: DrayTek Vigor Routers OS Command Injection Vulnerability

89
Patch now
HIGH 7.3EXPLOITEDREMOTEMITIGATEMITIGATE

CVE-2024-12987 is a high-severity flaw (CVSS 7.3) affecting vigor300b firmware, vigor2960 firmware, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • High severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score7.3 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance98.2% (top 1%)
CISA exploited listYes, fix due 2025-06-05
WeaknessCWE-77, CWE-78
Published2024-12-27
Last modified2026-06-17
Publisher (CNA): VulDB · Vendor: draytek

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

draytek vigor300b firmware MITIGATE
Affected: 1.5.1.4
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.5.1.4
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
draytek vigor2960 firmware MITIGATE
Affected: 1.5.1.4
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.5.1.4
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · byobu · FIXED · 7.23-1.fc46 · FEDORA-2026-08f2b53446 · source
sudo dnf upgrade --advisory=FEDORA-2026-08f2b53446

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-12987?

vigor300b firmware: mitigate or apply the listed mitigation; vigor2960 firmware: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2024-12987 being exploited?

Yes. CVE-2024-12987 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2024-12987 affect?

CVE-2024-12987 affects vigor300b firmware, vigor2960 firmware. Severity is high (CVSS 7.3). 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 manip

How urgent is CVE-2024-12987?

Priority 89/100. High severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.