/

CVE-2026-129451

Severity:

CRITICAL RISK

(9.9)

Path Traversal (CWE-22) in DrayTek Vigor2960 Export

CVE-2026-129451

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Potential unauthorized access to files outside the intended directory, including possible sensitive information disclosure.

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 path traversal flaw in DrayTek Vigor2960 affects the app_guest_export function in /cgi-bin/mainfunction.cgi, where the filename argument can be manipulated to reference paths outside the intended location. If the endpoint is remotely reachable, a crafted request may enable unauthorized file access; the exact impact depends on the files and operations available to the function.

Affected context

The issue occurs in the guest export functionality of the Vigor2960 web interface. It may be present when the CGI handler uses the supplied filename to construct or select a file path without reliably restricting access to the intended directory. Remote reachability of the endpoint affects exposure.

Exploit preconditions

  • Attack surface: The /cgi-bin/mainfunction.cgi endpoint hosting app_guest_export must be reachable.
  • Required access: The description does not specify whether authentication is required; access requirements depend on the device's configuration and endpoint controls.
  • Trigger point: Processing of the filename argument by the guest export function.
  • Why exploitation is possible: Path components in the supplied filename may be used without sufficient path validation or containment checks.

Why this happens

The handler appears to insufficiently constrain a user-influenced filename before using it in a file operation. If path components are accepted without canonicalization and a check that the resolved path remains within an intended directory, a request can escape that directory. This is a path traversal weakness, mapped to CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Potential impact

  • May expose files outside the intended export location.
  • Could disclose sensitive device or user data, depending on accessible files.
  • May undermine confidentiality or integrity if the affected operation permits more than reading files.
  • Could provide a foothold for further attacks if exposed data or device behavior enables them.

General mitigation guidance

Common defensive patterns include:

  • Accepting a constrained file identifier or allowlisted name rather than an arbitrary path.
  • Resolving paths to canonical form and verifying that they remain within the designated directory.
  • Rejecting unexpected path separators and traversal components as a supplementary check, not as the sole boundary.
  • Running file-handling processes with only the permissions they need and limiting access to sensitive locations.
  • Keeping the management interface restricted to trusted networks and minimizing unnecessary remote exposure.

How teams detect issues like this

Review file-handling code for user-controlled values passed to path construction, file-opening, or export routines. Static analysis and code review can look for missing canonicalization, allowlists, and directory-containment checks. At the system level, monitor requests to the export endpoint for unusual filenames and apply policies that restrict access to management interfaces and sensitive filesystem paths.

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-0017-authenticated-app-guest-export-path-traversal-write-delete
vuldb.comvuldb.com/cve/CVE-2026-129451
vuldb.comvuldb.com/submit/1044961
vuldb.comvuldb.com/vuln/437462
vuldb.comvuldb.com/vuln/437462/cti

Frequently asked

questions

The reported issue can be initiated remotely if the relevant endpoint is reachable. Exposure also depends on device configuration and any network or application-level access controls.

The vulnerability description does not specify authentication requirements. Whether access is required depends on how the device's endpoint is configured and protected.

Avoid accepting arbitrary paths. Use allowlisted identifiers, resolve paths canonically, and enforce that the resolved file remains inside the intended directory.

Treat filenames from requests as untrusted, apply consistent path-boundary checks, limit process filesystem permissions, and include path-handling rules in code review and automated security checks.

Find out what's already
exploitable in your codebase.