/

CVE-2026-113392

Severity:

HIGH RISK

(7.4)

Path Traversal (CWE-22) in DrayTek Vigor2960 Apmupload

CVE-2026-113392

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File Access

Severity:

HIGH RISK

(7.4)

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 vulnerability in DrayTek Vigor2960's Apmupload component allows a remotely supplied action argument to influence file-path handling in mainfunction.cgi.

Where the affected endpoint is reachable and insufficiently protected, an attacker may access files outside the intended directory, depending on the process permissions and filesystem controls.

A path traversal vulnerability in DrayTek Vigor2960's Apmupload component allows a remotely supplied action argument to influence file-path handling in mainfunction.cgi.

Where the affected endpoint is reachable and insufficiently protected, an attacker may access files outside the intended directory, depending on the process permissions and filesystem controls.

Affected context

The issue affects deployments of DrayTek Vigor2960 firmware that expose the Apmupload functionality through /cgi-bin/mainfunction.cgi. It becomes risky when the action parameter is processed as part of a filesystem path without reliably constraining the resulting location to an approved directory. Exploitability and impact may depend on endpoint exposure, authentication controls, and the privileges of the web service.

The issue affects deployments of DrayTek Vigor2960 firmware that expose the Apmupload functionality through /cgi-bin/mainfunction.cgi. It becomes risky when the action parameter is processed as part of a filesystem path without reliably constraining the resulting location to an approved directory. Exploitability and impact may depend on endpoint exposure, authentication controls, and the privileges of the web service.

Exploit preconditions

  • Attack surface: A remotely reachable HTTP or HTTPS management interface exposing mainfunction.cgi
  • Required access: The description does not establish whether authentication is required; access to the vulnerable endpoint is the key prerequisite
  • Trigger point: Processing the action argument by the Apmupload component
  • Why exploitation is possible: User-controlled path components may escape the intended directory when canonicalization and boundary validation are insufficient
  • Attack surface: A remotely reachable HTTP or HTTPS management interface exposing mainfunction.cgi
  • Required access: The description does not establish whether authentication is required; access to the vulnerable endpoint is the key prerequisite
  • Trigger point: Processing the action argument by the Apmupload component
  • Why exploitation is possible: User-controlled path components may escape the intended directory when canonicalization and boundary validation are insufficient

Why this happens

The underlying bug is improper limitation of a user-controlled filesystem path. If path input is concatenated, decoded, or normalized without verifying that the final canonical path remains within an approved base directory, traversal sequences can redirect file operations to unintended locations. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

The underlying bug is improper limitation of a user-controlled filesystem path. If path input is concatenated, decoded, or normalized without verifying that the final canonical path remains within an approved base directory, traversal sequences can redirect file operations to unintended locations. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An attacker may read files outside the intended application directory
  • Sensitive configuration data or credentials could be disclosed
  • Files may be modified or deleted if the vulnerable operation permits write access
  • The device could experience service disruption or follow-on compromise through exposed secrets
  • An attacker may read files outside the intended application directory
  • Sensitive configuration data or credentials could be disclosed
  • Files may be modified or deleted if the vulnerable operation permits write access
  • The device could experience service disruption or follow-on compromise through exposed secrets

General mitigation guidance

Mitigation generally focuses on removing trust in client-controlled path values and enforcing filesystem boundaries.

Common defensive patterns include:

  • Prefer fixed server-side resource identifiers over user-supplied paths
  • Resolve and canonicalize paths before use, then verify they remain under an approved directory
  • Reject traversal encodings, absolute paths, symbolic-link escapes, and unexpected separators
  • Apply allowlists for permitted actions and filenames rather than attempting to block known traversal strings
  • Run management services with the least filesystem privileges necessary
  • Restrict management interfaces through network policy, administrative access controls, and secure deployment defaults
  • Retire or isolate unsupported devices where security maintenance and validation are limited

Mitigation generally focuses on removing trust in client-controlled path values and enforcing filesystem boundaries.

Common defensive patterns include:

  • Prefer fixed server-side resource identifiers over user-supplied paths
  • Resolve and canonicalize paths before use, then verify they remain under an approved directory
  • Reject traversal encodings, absolute paths, symbolic-link escapes, and unexpected separators
  • Apply allowlists for permitted actions and filenames rather than attempting to block known traversal strings
  • Run management services with the least filesystem privileges necessary
  • Restrict management interfaces through network policy, administrative access controls, and secure deployment defaults
  • Retire or isolate unsupported devices where security maintenance and validation are limited

How teams detect issues like this

Organizations can look for path traversal risks through:

  • Static analysis rules identifying user input used in filesystem APIs
  • Code review checks for path concatenation without canonicalization and boundary validation
  • Tests covering encoded traversal, alternate separators, absolute paths, and symlink behavior
  • Web and device logs showing unusual action values or requests targeting filesystem-like locations
  • Policy enforcement requiring allowlisted resource mapping for administrative endpoints
  • Automated security review tools that flag CWE-22 patterns during development

Organizations can look for path traversal risks through:

  • Static analysis rules identifying user input used in filesystem APIs
  • Code review checks for path concatenation without canonicalization and boundary validation
  • Tests covering encoded traversal, alternate separators, absolute paths, and symlink behavior
  • Web and device logs showing unusual action values or requests targeting filesystem-like locations
  • Policy enforcement requiring allowlisted resource mapping for administrative endpoints
  • Automated security review tools that flag CWE-22 patterns during development

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-0009-authenticated-apmupload-path-traversal-clobber
vuldb.comvuldb.com/cve/CVE-2026-113392
vuldb.comvuldb.com/submit/992245
vuldb.comvuldb.com/vuln/422668
vuldb.comvuldb.com/vuln/422668/cti

Frequently asked

questions

Yes, the reported attack path is remote when the affected management endpoint is reachable. Actual exposure depends on network placement, authentication, and interface configuration.

The available description does not specify an authentication requirement. Access to the vulnerable endpoint and the ability to supply the relevant argument are the important prerequisites.

Replace client-controlled path handling with fixed resource identifiers or strict allowlists, and verify that canonical paths remain within an approved directory before filesystem access.

Combine secure path-handling libraries, least-privilege service accounts, restricted management exposure, negative and positive input tests, and code-review policies for filesystem operations.

Yes, the reported attack path is remote when the affected management endpoint is reachable. Actual exposure depends on network placement, authentication, and interface configuration.

The available description does not specify an authentication requirement. Access to the vulnerable endpoint and the ability to supply the relevant argument are the important prerequisites.

Replace client-controlled path handling with fixed resource identifiers or strict allowlists, and verify that canonical paths remain within an approved directory before filesystem access.

Combine secure path-handling libraries, least-privilege service accounts, restricted management exposure, negative and positive input tests, and code-review policies for filesystem operations.

Find out what's already
exploitable in your codebase.