Severity:

HIGH RISK

(7.3)

Directory Traversal / Path Traversal in Tenda i12 HTTP

CVE-2026-5849

Analyzed

Vulnerability type

Category:

Directory Traversal / Path Traversal

CWE:

CWE-22

Impact:

Unauthorized File System Access

Severity:

HIGH RISK

(7.3)

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

Tenda i12 firmware version 1.0.0.11(3862) contains a directory traversal vulnerability in its HTTP handler component, where crafted requests can manipulate file paths outside the intended web root.

A remote attacker can leverage this flaw to access files on the device's filesystem that should not be directly exposed, depending on how the HTTP handler resolves and serves paths.

Affected context

The vulnerability occurs within the embedded web management interface of the Tenda i12 router, specifically in the HTTP handler logic that processes incoming paths.

It is relevant in scenarios where:

  • The web management service is reachable over the network (LAN or WAN, depending on configuration)
  • File paths from HTTP requests are used to determine resources to read or serve
  • Input validation and canonicalization of requested paths are insufficient

The flaw does not automatically imply full device compromise, but it can expose configuration, log, or other sensitive files if they are accessible via the handler's file access routines.

Exploit preconditions

  • Attack surface: The device's HTTP management interface exposed over the network.
  • Required access: Ability to send HTTP requests to the Tenda i12 (e.g., being on the same network segment, or having external access if remote management is enabled).
  • Trigger point: Submission of crafted HTTP requests containing path traversal sequences (such as segments that attempt to navigate out of the expected directory).
  • Why exploitation is possible: The HTTP handler appears to use request-derived paths directly when locating resources, without robust normalization, canonicalization, or restriction to a fixed base directory, allowing navigation to unintended filesystem locations.

Why this happens

This issue stems from improper restriction of file paths derived from user-controlled input, aligning with CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

The HTTP handler likely constructs filesystem paths using request parameters or URL paths and fails to properly sanitize segments that reference parent directories or symbolic link targets.

Without canonicalizing the path and enforcing a strict base directory, the application can be tricked into reading files outside the intended web root or resource directory.

Potential impact

  • Access to configuration files that may contain network credentials or administrative details
  • Exposure of system logs or diagnostic data that could aid further attacks
  • Disclosure of firmware or script contents that reveal additional vulnerabilities
  • Collection of sensitive information about the device's environment and topology
  • In some designs, potential read access to files that may assist in authentication bypass or session hijacking

General mitigation guidance

Effective mitigation focuses on constraining how the HTTP handler resolves file paths and treating all client-supplied path data as untrusted.

Defensible patterns include:

  • Normalizing and canonicalizing requested paths before use, and rejecting any that resolve outside a predefined, hardcoded document root.
  • Implementing a strict allowlist of accessible resources or resource identifiers instead of mapping arbitrary user paths to the filesystem.
  • Avoiding direct concatenation of user input into filesystem paths; instead, map logical resource names to internal file references.
  • Running the HTTP service with least-privilege file permissions so even if traversal is attempted, sensitive system areas remain unreadable.
  • Segregating configuration and secret material from any directory tree that the HTTP handler can access.

How teams detect issues like this

Organizations can detect path traversal risks in embedded web components through multiple approaches:

  • Static analysis: Flagging code that constructs filesystem paths using HTTP parameters or URL segments without canonicalization or directory bounds checks.
  • Code review: Looking for string concatenation of user input into file paths, lack of normalization routines, and absence of checks that enforce a single, fixed document root.
  • Dynamic testing: Using security scanning tools or manual tests that send crafted requests with traversal sequences to observe whether unintended files can be retrieved.
  • Policy enforcement: Establishing secure coding guidelines for embedded HTTP handlers, such as mandatory path normalization utilities and required review of all file-serving endpoints.

Sources

SourceLink
github.comgithub.com/Litengzheng/vuldb_new/blob/main/i12/vul_110/README.md
vuldb.comvuldb.com/submit/791217
vuldb.comvuldb.com/vuln/356375
vuldb.comvuldb.com/vuln/356375/cti
tenda.com.cntenda.com.cn/

Frequently asked

questions

Yes. An attacker who can reach the Tenda i12 HTTP interface over the network can attempt to exploit the path traversal using crafted HTTP requests.

Not necessarily. Exploitability depends on whether the vulnerable HTTP handler is accessible without authentication. If the endpoint is exposed pre-login, the attack may be possible without valid credentials.

Enforce strict path handling by canonicalizing all requested paths and verifying they remain within a predefined, hardcoded base directory or implementing an allowlist of resource identifiers rather than exposing raw filesystem paths.

Treat all path-related input as untrusted, use centralized utilities for secure path resolution, avoid direct mapping of user paths to the filesystem, apply least-privilege file permissions, and incorporate static analysis and targeted security reviews for file access code.

Find out what's already
exploitable in your codebase.