1. Cleus
  2. Zero-days
  3. CVE-2024-12987
Exploited in the wildRouters, cameras & storage boxesCould reach you

CVE-2024-12987 DrayTek Vigor Routers: command or code injection

In plain words: The program treats text it receives as instructions instead of plain data. The attacker can run commands on the machine — often the whole device is taken over.

Confirmed exploited by CISA on · US federal patch deadline Jun 5, 2025

What to do

  1. Install DrayTek's security update for Vigor Routers. If no update exists, follow the vendor's workaround or stop using the product until one ships.
  2. Turn on automatic firmware updates and replace gear the maker no longer supports.
  3. Change default passwords and switch off remote administration and features you do not use.
  4. Do not put storage boxes or cameras directly on the internet — use the maker's app or a VPN.

Read DrayTek's advisory ↗

Who is affected

Could reach you. This one is aimed at devices or apps of the kind people own.

What's at risk: Taken over in bulk to join botnets, used to watch your traffic, or — for storage boxes — locked by ransomware.

The details

Official name
DrayTek Vigor Routers OS Command Injection Vulnerability
Product
DrayTek Vigor Routers
CISA description
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.
Type of flaw
Command or code injection (CWE-78)
Confirmed exploited
May 15, 2025
US federal patch deadline
Jun 5, 2025

Ask Cleus about it

Ask about a vulnerability, an update, a weird message, or the news. Plain-word answers, free, no account.

Answering about CVE-2024-12987 ·

Questions about CVE-2024-12987

Is CVE-2024-12987 being exploited?

Yes. CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities catalog on May 15, 2025, which means there is reliable evidence of real-world attacks.

How do I fix CVE-2024-12987?

Install DrayTek's security update for Vigor Routers. If no update exists, follow the vendor's workaround or stop using the product until one ships. Turn on automatic firmware updates and replace gear the maker no longer supports.

Am I affected by CVE-2024-12987?

Only if you use DrayTek Vigor Routers. This one is aimed at devices or apps of the kind people own.

Other exploited DrayTek vulnerabilities

Newest in the catalog

Search every known exploited vulnerability →