/

CVE-2026-122013

Severity:

CRITICAL RISK

(10.0)

Path Traversal (CWE-22) in Comfast CF-WR632AX Parser

CVE-2026-122013

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized file access or modification, depending on file-handling behavior and permissions

Severity:

CRITICAL RISK

(10.0)

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

Comfast CF-WR632AX firmware 2.6.0.1 has a path traversal vulnerability in the multipart parser used by /usr/bin/webmgnt. A remote attacker who can reach the affected functionality may manipulate the filename argument to traverse paths; the specific files or operations exposed depend on how the device handles uploaded files.

Affected context

The reported issue affects Comfast CF-WR632AX 2.6.0.1 and involves the multipart parser in /usr/bin/webmgnt. It becomes relevant when a remotely reachable request path processes a supplied filename without adequately restricting it to an intended directory. The description does not establish whether authentication is required or which file operations are affected.

Exploit preconditions

  • Attack surface: A remotely reachable web management interface that uses the affected multipart parser
  • Required access: Network access to the relevant functionality; authentication requirements are not specified
  • Trigger point: Processing of a multipart request containing a manipulated filename argument
  • Why exploitation is possible: The filename may be interpreted as a path beyond the intended storage location if path boundaries are not enforced

Why this happens

The underlying issue is unsafe handling of a filename as a filesystem path. If the application accepts path components from a request without canonicalizing the destination and constraining it to an approved directory, the resulting file operation may escape its intended location. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • An attacker may access files outside the intended upload or processing directory, if the affected operation permits it.
  • Files may be overwritten or created in unintended locations, depending on the operation and service permissions.
  • Sensitive device data or configuration may be exposed if reachable through the vulnerable file handling.
  • The device's management service or configuration may be disrupted if critical files are affected.

General mitigation guidance

Defensive patterns focus on treating client-supplied filenames as untrusted data and constraining filesystem operations to an approved location.

  • Prefer server-generated filenames and avoid using client-supplied paths directly.
  • Canonicalize paths and verify that resolved destinations remain within an explicitly allowed directory.
  • Use APIs that separate directory selection from filename input, with strict validation of filename components.
  • Limit the management service's filesystem permissions and access to sensitive files.
  • Reduce exposure of the management interface to trusted networks and apply authentication and authorization controls.

How teams detect issues like this

  • Use static analysis to identify filesystem operations that incorporate request-controlled filenames or paths.
  • Review multipart parsing and upload-handling code for canonicalization, directory-boundary checks, and server-generated naming.
  • Monitor management-service requests and file operations for attempts to use unexpected path components or access locations outside approved directories.
  • Apply policy checks that require explicit validation and least-privilege file access for code handling uploaded files.

Sources

SourceLink
github.comgithub.com/FoundTL/COMFAST-CF-WR632AX-Wi-Fi-6-Router
vuldb.comvuldb.com/cve/CVE-2026-122013
vuldb.comvuldb.com/submit/1023251
vuldb.comvuldb.com/vuln/431080
vuldb.comvuldb.com/vuln/431080/cti

Frequently asked

questions

The report describes a remote attack involving the multipart parser. Exploitation depends on whether an attacker can reach the affected web management functionality.

The available description does not specify authentication requirements. Access to the relevant request-handling functionality is necessary, and device access controls may affect exploitability.

Do not use client-supplied filenames as paths. Use server-generated names, constrain resolved paths to an approved directory, and apply least-privilege filesystem permissions.

Treat filenames as untrusted input, enforce path-boundary checks, review file operations that use request data, and monitor access to management interfaces.

Find out what's already
exploitable in your codebase.