Authenticated CGI command injection in DrayTek Vigor2960

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-113389?

CVE-2026-113389 is a vulnerability classified as Improper Neutralization of Special Elements used in a Command and Improper Neutralization of Special Elements in Output Used by a Downstream Component, affecting Vigor2960 (affected versions: 1.5.1.6 Revision 8218). This vulnerability is rated Critical, with a CVSS score of 9.4. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

A vulnerability was detected in DrayTek Vigor2960 1.5.1.6 Revision 8218. Affected by this vulnerability is the function set_table of the file /cgi-bin/mainfunction.cgi of the component CGI Process. The manipulation of the argument sectiontype results in command injection. The attack may be launched remotely. The exploit is now public and may be used. The vendor explains: "2960 1.5.1.7 has corrected many security issues. And 2960 is EoS with limited support, only major issues would be reviewed(e.g. unauthenticated vuln.)". This vulnerability only affects products that are no longer supported by the maintainer.

Affected products and scope

  • DrayTek Vigor2960 firmware 1.5.1.6 Revision 8218: affected. The relevant component is CGI Process, specifically /cgi-bin/mainfunction.cgi and the set_table function.
  • Deployment scope: the CVE record states that the issue affects products no longer supported by the maintainer. The vendor describes Vigor2960 as end-of-service with limited support.
  • Firmware 1.5.1.7: the vendor states that this release corrected many security issues, but that statement alone does not confirm that every branch or every issue was fixed.
  • Fixed beta build documented in public research materials: 1.5.1.7_beta, build V2960_r8228, is recorded as fixing all reported cases except DRV2960-0002. The evidence does not establish that this was a formally released production build or that all later releases are covered.

Technical details

The flaw is in the CGI Process at /cgi-bin/mainfunction.cgi, in the set_table processing path. JSON supplied through the jsondata parameter is parsed, and attacker-controlled data in the sectiontype field is passed through configuration handling and into operating-system command construction. Public analysis shows that the value can reach system() without safe isolation from shell parsing, creating CWE-77 and CWE-74 injection conditions. An authenticated administrator session is the precondition confirmed by the public PoC; the available evidence does not establish unauthenticated access. The PoC confirms attacker-controlled shell execution on a real device with the CGI process privileges, but the exact operating-system privilege of that process is not established in the record.

Exploitability

The vulnerability is remotely reachable through the web management interface. The public PoC requires an authenticated administrator session and sends a request to /cgi-bin/mainfunction.cgi with action=set_table; SSH or CLI access is used by the PoC to verify the result, but is not established as a prerequisite for the HTTP injection path. The supplied record characterizes exploitation as low complexity with no separate user interaction. A public exploit is available and usable. The available evidence does not confirm in-the-wild exploitation, a specific campaign, or unauthenticated exploitation.

Technical impact

The flaw lets an authenticated user place input into shell-command construction in the CGI and achieve attacker-controlled command execution with the CGI process privileges. Technical outcomes may include router configuration changes, device-state modification, service disruption, or access to data readable by that process. The supplied assessment treats confidentiality, integrity, and availability consequences as high, but does not establish that every deployment runs the CGI process as root or that exploitation always yields full operating-system control. Because the device sits in the network traffic path, organisational effects may extend to connectivity and perimeter-control policies, but pivoting and persistence are not confirmed.

Business impact

  • An authenticated attacker can execute shell commands with the privileges of the CGI process and may alter device configuration or state.
  • Unauthorized changes could interrupt connectivity, affect routing or firewall behavior, and weaken the trust boundary enforced by the edge router.
  • Data accessible to the CGI process could potentially be read or modified; the practical extent depends on process privileges and device configuration.
  • Because Vigor2960 is end-of-service with limited support, organizations that retain exposed devices may face prolonged remediation and replacement costs.
  • The record does not confirm a breach, a named victim, persistence, or lateral movement into an internal network.

Remediation

  1. Prioritize deployment of the confirmed corrected firmware. Vendor-confirmation materials record beta firmware 1.5.1.7_beta, build V2960_r8228, as fixing the reported cases associated with this issue. Validate provenance, integrity, and compatibility before deployment; the status of an official production release should be verified separately.
  2. The vendor states that firmware 1.5.1.7 corrected many security issues, but this should not be interpreted as proof that every later or parallel branch contains this specific fix. Confirm branch coverage before marking a device remediated.
  3. If an update cannot be applied, isolate the management interface from the Internet and permit access only from trusted administrative networks as containment. This reduces exposure but is not a vendor-confirmed patch.
  4. Rotate administrative credentials if unauthorized access is suspected, review configuration changes, and restore the device from a trusted configuration when necessary.
  5. Because Vigor2960 is end-of-service with limited support, plan replacement with a supported product if corrected firmware cannot be maintained or management access cannot be tightly controlled.

Detection

  • Inventory all DrayTek Vigor2960 devices and identify the running firmware, especially devices on 1.5.1.6 Revision 8218.
  • Check whether the management interface is exposed and whether /cgi-bin/mainfunction.cgi, including the set_table action, is reachable.
  • Review HTTP or management logs for unusual POST requests to this CGI, especially requests containing action=set_table, unexpected jsondata, or sectiontype values inconsistent with normal configuration activity. This is precautionary monitoring, not a confirmed IOC.
  • Check for unauthorized changes to router configuration, UCI state, routing, firewall rules, and management services after identifying an exposed device.
  • Absence of suspicious log evidence does not prove that a device is safe; correlate inventory, firmware state, and configuration history.
Sources (19)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.