Skip to content
RedCVE

CVE-2024-12987DrayTek Vigor2960 and Vigor300B command injection flaw

ExploitedDrayTekPublished:

CVSS score

6.9

Medium

CVSS 4.0 from vuldb.com

Exploit probability (EPSS)

98.2%

98.2% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.

CISA KEV

Actively exploited

Added to KEV on 15 May 2025.

US federal deadline to fix: 5 Jun 2025.

In plain words

A remote attacker can run operating system commands on affected DrayTek Vigor2960 and Vigor300B routers through the web management interface, without logging in. Firmware 1.5.1.4 is affected, and CISA lists the flaw as actively exploited. Follow the vendor's mitigation guidance or stop using these devices until a fix is applied, since no patch reference is listed here.

Official description

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.

Source: NVD · CNA: cna@vuldb.com

How to fix it, step by step

  1. Treat it as urgent

    Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 15 May 2025.

    US federal agencies must fix it by 5 Jun 2025. It's a sensible deadline for everyone else too.

    CISA's full instruction
    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  2. Check whether you're affected

    Find every system running DrayTek Vigor300b Firmware, DrayTek Vigor2960 Firmware and compare its version with the affected versions.

  3. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

  4. Check for signs of compromise

    Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low

Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected products

Affected productsVersions
DrayTek Vigor300b Firmware1.5.1.4
DrayTek Vigor2960 Firmware1.5.1.4
DrayTek Vigor29601.5.1.4
DrayTek Vigor300B1.5.1.4

Weakness

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. Last modified:

Frequently asked questions

Is CVE-2024-12987 being exploited?

Yes. CISA added CVE-2024-12987 to its Known Exploited Vulnerabilities catalog on 15 May 2025, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 98.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2024-12987?

CVE-2024-12987 has a CVSS 4.0 base score of 6.9 (medium).

Which versions are affected?

Draytek Vigor300b Firmware (1.5.1.4), Draytek Vigor2960 Firmware (1.5.1.4), Draytek Vigor2960 (1.5.1.4), Draytek Vigor300B (1.5.1.4)

Is there a patch for CVE-2024-12987?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.