LiveActive security incident?Get immediate response
CVE Record

CVE-2024-12987: DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection

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.

HighCVSS 7.5Known exploitedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This issue affects DrayTek Vigor2960 and Vigor300B gateway devices on firmware 1.5.1.4. A remote attacker could abuse the web management interface to run operating-system commands. Because CISA lists it in KEV, treat internet-reachable devices as urgent exposure.

Executive priority

Handle as an urgent perimeter-device remediation item. KEV listing means defenders should assume real-world attacker interest. Patch or isolate affected devices quickly, starting with internet-facing management interfaces.

Technical view

CVE-2024-12987 is an OS command injection flaw in the Web Management Interface endpoint /cgi-bin/mainfunction.cgi/apmcfgupload. The reported input is the session argument. It maps to CWE-77 and CWE-78, has CVSS v2 7.5, and is fixed by firmware 1.5.1.5.

Likely exposure

Known exposure is DrayTek Vigor2960 and Vigor300B devices running firmware 1.5.1.4. Risk is highest where web management is reachable from the internet or untrusted networks. The provided sources do not prove other products or versions are affected.

Exploitation context

The source bundle states the exploit is public, and CISA KEV status supports active exploitation. Do not assume compromise solely from version presence, but prioritize review for externally reachable management interfaces and unexplained administrative or device behavior.

Researcher notes

Evidence identifies the vulnerable component, affected versions, CWE classes, public exploit disclosure, and fixed firmware. The bundle does not provide safe detection logic or complete compromise indicators. Avoid expanding scope beyond Vigor2960 and Vigor300B 1.5.1.4 without vendor confirmation.

Mitigation direction

  • Upgrade affected Vigor2960 and Vigor300B devices to firmware 1.5.1.5.
  • Restrict web management access to trusted administrative networks only.
  • Check DrayTek release notes and advisories before making production changes.
  • Review exposed perimeter assets for affected models and firmware.
  • Rotate administrative credentials if suspicious access is found.

Validation and detection

  • Inventory DrayTek Vigor2960 and Vigor300B devices.
  • Confirm firmware version; prioritize any device on 1.5.1.4.
  • Verify whether web management is internet-facing or broadly reachable.
  • Confirm upgrade completion to firmware 1.5.1.5.
  • Review logs for unusual management-interface activity where available.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-77: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · medium confidence lookup

CWE-78: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-12987 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (2.0)
Known Exploited
Yes
Published

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
9Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 2.0HighAV:N/AC:L/Au:N/C:P/I:P/A:P106.4Primary CVE score

Vulnerability scoring details

Base CVSS 2.0 score

7.5High
CVSS 2.0 vector shape for CVE-2024-12987Access VectorAccess ComplexityAuthenticationConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Access Vector
NetworkAdjacentLocal
Access Complexity
LowMediumHigh
Authentication
NoneSingleMultiple
Confidentiality Impact
CompletePartialNone
Integrity Impact
CompletePartialNone
Availability Impact
CompletePartialNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
DrayTekVigor29601.5.1.4Listed
DrayTekVigor300B1.5.1.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-77 · source CWE mapping

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-78 · source CWE mapping

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.