/

CVE-2026-129449

Severity:

CRITICAL RISK

(9.9)

Command Injection (CWE-77) in DrayTek Vigor2960 CGI

CVE-2026-129449

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-74, CWE-77

Impact:

Remote command execution and potential device compromise

Severity:

CRITICAL RISK

(9.9)

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 handling of the swmconfigupload argument in /cgi-bin/mainfunction.cgi. Because the affected function can be reached remotely, an attacker may be able to cause unintended commands to run on a device; public exploit information has been disclosed.

Affected context

The issue is reported in DrayTek Vigor2960 firmware versions up to 1.5.1.6. It occurs in the sub_14914 function in /cgi-bin/mainfunction.cgi, where the swmconfigupload argument is involved in command handling. Risk depends on whether the affected functionality is reachable and how the device is exposed and configured.

Exploit preconditions

  • Attack surface: The affected CGI functionality is remotely reachable.
  • Required access: The description does not specify whether authentication is required; access controls and device configuration may affect this prerequisite.
  • Trigger point: Processing of the swmconfigupload argument by sub_14914.
  • Why exploitation is possible: Input is reported to reach command handling in a way that permits command injection.
  • Exploit status: Public exploit information has been disclosed.

Why this happens

The reported flaw is an injection weakness in how input is incorporated into an operating-system command. If externally controlled data is interpreted as command syntax rather than treated strictly as data, an attacker may influence command execution. This maps to CWE-77: Improper Neutralization of Special Elements used in a Command, with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection class.

Potential impact

  • An attacker could execute commands with the privileges of the affected process.
  • Device settings or data may be altered, and device availability could be disrupted.
  • The device could be used as a foothold for further activity, depending on network placement and permissions.

General mitigation guidance

Defensive approaches focus on avoiding shell interpretation of untrusted input and limiting the consequences of any command execution.

  • Prefer structured APIs or fixed command-and-argument interfaces over shell command construction.
  • Validate inputs against narrow, expected formats and reject unexpected values.
  • Apply context-appropriate escaping only where command construction cannot be avoided.
  • Restrict the privileges available to CGI processes and isolate device management interfaces from untrusted networks.
  • Reduce exposure of remotely accessible management functionality and apply vendor-provided security updates through established change controls.

How teams detect issues like this

  • Review CGI handlers and related code for user-controlled values passed to shell or command-execution APIs.
  • Use static analysis rules to flag command construction, shell invocation, and missing input validation.
  • Check access and device logs for unusual requests involving the affected functionality, unexpected command activity, or unexplained configuration changes.
  • Enforce policies that prohibit shell-based command construction from externally supplied input and require security review for exceptions.

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/blob/main/cases/DRV2960-0015-authenticated-swmconfigupload-fieldname-command-injection
vuldb.comvuldb.com/cve/CVE-2026-129449
vuldb.comvuldb.com/submit/1044957
vuldb.comvuldb.com/vuln/437460
vuldb.comvuldb.com/vuln/437460/cti

Frequently asked

questions

The affected CGI functionality is reported to be reachable remotely. Actual exposure depends on device configuration and network access controls.

The available description does not specify authentication requirements. Treat access to the affected endpoint as a key condition to verify in each deployment.

Avoid passing externally controlled input through a shell. Use structured command interfaces, strict input validation, and least-privilege process permissions.

Review command-execution paths, enforce static-analysis and code-review policies against unsafe command construction, and limit exposure of management interfaces.

Find out what's already
exploitable in your codebase.