login
quiescence.eu
Skip to content

CVE-2024-12987

DrayTek Vigor Routers OS Command Injection Vulnerability

6.9
CVSS
98.2%
EPSS (exploit prob.)
99.9%
EPSS percentile
Yes
Actively exploited
No
Ransomware use
2025-05-15
Added
▲ +0.1 pts
30-day EPSS trend

MITRE ATT&CK techniques

How this vulnerability maps to adversary behaviour, from the Center for Threat-Informed Defense's public CVE→ATT&CK mappings. Use it to check whether your detections already cover the technique.

TechniqueNameRelationship
T1068 Exploitation for Privilege Escalation exploitation technique
T1059 Command and Scripting Interpreter primary impact

Summary

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.

Affected software

Vendor: DrayTek  ·  Product: Vigor Routers

Weakness types (CWE):

CWE-78

Am I affected? How do I fix it?

This vulnerability is in CISA's Known Exploited Vulnerabilities catalog: it is being exploited in the wild. The checks below run on your own server, or in a browser: nothing to install, nothing sent to us.

If you run DrayTek Vigor Routers

Am I affected?

1. Which version of DrayTek Vigor Routers do you run? Compare it with the versions the vendor's advisory lists as affected.

How to fix it

1. Apply the vendor's update for the build you run, from the advisory below.

2. Advisories:

Built from CISA's catalogue, NVD's affected ranges and the vendor's advisory. To see whether a known-exploited vulnerability is matched to your own server, run the free report; the complete audit tailors this guide to that server.

Related vulnerabilities in DrayTek

CVENameEPSSExploited
CVE-2020-8515 Multiple DrayTek Vigor Routers Web Management Page Vulnerability 100.0% Yes
CVE-2021-20124 Draytek VigorConnect Path Traversal Vulnerability 95.9% Yes
CVE-2021-20123 Draytek VigorConnect Path Traversal Vulnerability 90.3% Yes
CVE-2020-15415 DrayTek Multiple Vigor Routers OS Command Injection Vulnerability 84.5% Yes

Is your domain exposed?

Run a free, instant security report for any domain — exposure score, email auth, TLS and breach metadata.

Get your free report

Sources: CISA KEV catalog · NVD · FIRST EPSS · MITRE ATT&CK® · CTID Mappings Explorer

This product uses the NVD API but is not endorsed or certified by the NVD. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation.

All information is aggregated from public sources for awareness only and does not constitute an accusation or a security assessment. No personal data or credentials are published.