/

CVE-2026-129452

Severity:

CRITICAL RISK

(9.1)

OS Command Injection (CWE-77) in DrayTek Vigor2960

CVE-2026-129452

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-74, CWE-77

Impact:

Potential remote command execution and device compromise

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A command injection vulnerability in the DrayTek Vigor2960 affects the set_table function in /cgi-bin/mainfunction.cgi. A remote attacker who can supply manipulated jsondata may be able to cause commands to run on the device; public exploit information has been disclosed.

Affected context

The issue is reported in DrayTek Vigor2960 firmware 1.5.1.6 and affects the set_table function in /cgi-bin/mainfunction.cgi. It becomes a risk when the relevant CGI endpoint is reachable and attacker-controlled jsondata is processed in a way that allows command syntax to affect command execution. The description does not specify whether authentication is required.

Exploit preconditions

  • Attack surface: The device's CGI interface, if reachable by the attacker
  • Required access: The ability to submit or influence the jsondata argument; authentication requirements are not specified
  • Trigger point: Processing of jsondata by the set_table function
  • Why exploitation is possible: Input may reach command execution without adequate separation or neutralization of command syntax

Why this happens

The reported behavior is consistent with command injection: data supplied through an application interface can influence commands interpreted by the operating system. This maps primarily to CWE-77: Improper Neutralization of Special Elements used in a Command. CWE-74 is also associated with the issue and describes the broader class of improper neutralization of special elements in output used by another component.

Potential impact

  • An attacker may be able to execute commands on the device
  • Device settings or data could be altered
  • The device could be disrupted or taken over
  • A compromised device could potentially be used as a foothold for further attacks

General mitigation guidance

Mitigations generally focus on preventing untrusted input from influencing operating-system commands.

  • Prefer APIs that invoke required functionality without constructing shell commands.
  • Where command execution is unavoidable, use fixed command structures and pass validated arguments separately.
  • Apply strict allowlist validation to values received through jsondata.
  • Reduce exposure of management interfaces and limit access to trusted networks and users.
  • Run device components with the least privilege needed and monitor for unexpected command execution.

How teams detect issues like this

  • Review code paths from CGI parameters, especially jsondata, into shell or process-execution APIs.
  • Use static analysis to flag command construction from externally controlled input and unsafe shell invocation.
  • Review whether inputs are validated against expected types, formats, and allowlists before use.
  • Apply access policies to restrict reachability of device management interfaces, and monitor available logs for unusual requests or command activity.
  • Automated code review tools may help identify risky input-to-command flows.

Sources

SourceLink
fw.draytek.com.twfw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.7/Vigor2960_v1.5.1.7.zip
github.comgithub.com/yikesoftware/DrayTek_Vigor2960_Security_Analysis/tree/main/cases/DRV2960-0019-authenticated-set-table-config-field-command-injection
vuldb.comvuldb.com/cve/CVE-2026-129452
vuldb.comvuldb.com/submit/1044962
vuldb.comvuldb.com/vuln/437463
vuldb.comvuldb.com/vuln/437463/cti

Frequently asked

questions

The report describes a remote attack path through the CGI function. Exploitability depends on the endpoint being reachable and on the attacker's ability to provide the relevant input.

The available description does not state whether authentication is required. Device access controls and endpoint exposure affect the practical risk.

Avoid building operating-system commands from request data. Prefer non-shell APIs, or use fixed commands with strictly validated arguments.

Trace untrusted inputs into command-execution paths, enforce allowlist validation, restrict management-interface access, and include command-injection checks in code review and automated analysis.

Find out what's already
exploitable in your codebase.