CVE-2024-12986 is a critical remote OS command injection vulnerability affecting DrayTek Vigor2960 and Vigor300B devices running firmware versions 1.5.1.3 and 1.5.1.4. The flaw is present in the Web Management Interface, specifically in processing associated with the /cgi-bin/mainfunction.cgi/apmcfgupptim endpoint. According to the available information, manipulation of the session argument can trigger command injection in unknown backend processing, allowing attacker-controlled input to be interpreted by the underlying operating system command context. The issue is remotely exploitable, and public exploit disclosure has been reported.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository provides both a scanner and an exploit for CVE-2024-12986, a command injection vulnerability in the 'apmcfgupptim' endpoint of DrayTek Gateway Devices. The repository contains three files: a README with detailed usage instructions, a Bash script (scan.sh) for scanning multiple targets for the vulnerability, and a Python script (exploit.py) that provides an interactive shell to exploit the vulnerability. The exploit works by sending a crafted HTTP request to the vulnerable endpoint, injecting arbitrary commands via the 'session' parameter. The scanner script automates detection across a list of URLs, while the exploit script allows for interactive command execution on a compromised device. The main attack vector is network-based, targeting accessible DrayTek devices. The endpoint '/cgi-bin/mainfunction.cgi/apmcfgupptim' is fingerprintable and central to both the scanning and exploitation process. The exploit is operational, providing a working payload and interactive shell, but is not part of a larger exploitation framework.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.