/

CVE-2026-129450

Severity:

CRITICAL RISK

(9.9)

Path Traversal (CWE-22) in DrayTek Vigor2960 Backup

CVE-2026-129450

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Potential unauthorized access to or manipulation of files

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 remotely reachable backup handler in DrayTek Vigor2960 may allow path traversal through its option argument. If the endpoint is accessible and the argument is not safely constrained, an attacker could reach files or paths outside the intended backup location; public exploit code has been reported.

Affected context

The issue is reported in DrayTek Vigor2960 version 1.5.1.6, in the sub_1E084 function of /cgi-bin/mainfunction.cgi?action=doWebBackup. It concerns how the backup handler processes the option argument. Risk depends on the endpoint being reachable and on the device's handling of the supplied path.

Exploit preconditions

  • Attack surface: The device's web CGI backup endpoint
  • Required access: Network access to invoke the endpoint; whether authentication is required is not specified in the available description
  • Trigger point: Processing of the option argument by the backup handler
  • Why exploitation is possible: The argument may be used to construct or select a path without adequate restriction, allowing traversal beyond the intended directory

Why this happens

The underlying issue is path traversal, mapped to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). This class of bug occurs when externally influenced path information is accepted without canonicalization and enforcement that the final path remains within an approved directory.

Potential impact

  • An attacker may access files outside the intended backup path, subject to device permissions and handler behavior.
  • Files or backup data could be exposed or potentially altered if the handler permits such operations.
  • Sensitive device information could be disclosed, potentially supporting further attacks.

General mitigation guidance

Defensive patterns for path-handling features include:

  • Resolve candidate paths to canonical form and verify they remain within an explicitly allowed directory.
  • Prefer fixed identifiers or server-controlled mappings over accepting arbitrary paths from requests.
  • Apply strict allowlists and reject traversal sequences or unexpected path formats.
  • Restrict the backup process's filesystem permissions to only the files and directories it needs.
  • Limit access to administrative endpoints through appropriate network and authentication controls.

How teams detect issues like this

  • Review code that uses request parameters to construct, select, or open filesystem paths.
  • Use static analysis to flag path concatenation and file operations involving externally controlled values.
  • Inspect request and device logs for unusual backup endpoint activity or path-like values in the option argument.
  • Enforce code-review and CI policies requiring canonical path checks and directory-boundary validation.

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-0016-authenticated-dowebbackup-path-traversal-clobber
vuldb.comvuldb.com/cve/CVE-2026-129450
vuldb.comvuldb.com/submit/1044958
vuldb.comvuldb.com/vuln/437461
vuldb.comvuldb.com/vuln/437461/cti

Frequently asked

questions

The reported issue is remotely reachable through the device's web CGI backup endpoint. Exploitability depends on network reachability and any access controls in place.

The available description does not specify whether authentication is required. Review the device's configuration and restrict access to the endpoint.

Avoid using request-supplied paths directly. Resolve paths canonically and enforce that they remain within a fixed, approved directory.

Use server-controlled path mappings, least-privilege filesystem permissions, code review for path construction, and automated checks for unsafe file operations.

Find out what's already
exploitable in your codebase.