/

CVE-2026-135800

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in LLaMA-Factory WebUI Runner

CVE-2026-135800

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Potential unauthorized file access or modification

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

A path traversal flaw in the LLaMA-Factory WebUI involves the config_path argument used by the save_args and load_args functions. If an attacker can reach the affected functionality remotely and influence this path, they may cause file operations to target locations outside the intended configuration directory.

Affected context

The issue is associated with the WebUI component in LLaMA-Factory and the save_args and load_args functions in src/llamafactory/webui/runner.py. It may arise when a remotely supplied or influenced config_path is used in file operations without adequate path validation and containment checks. The precise consequences depend on which operation is reached and the permissions of the application process.

Exploit preconditions

  • Attack surface: The WebUI functionality that invokes save_args or load_args
  • Required access: Remote access to the relevant functionality; the description does not specify whether authentication is required
  • Trigger point: Processing a config_path value during configuration loading or saving
  • Why exploitation is possible: If the path is not constrained to an approved directory, traversal may direct file operations outside the intended location

Why this happens

The underlying issue is insufficient validation or containment of a path derived from config_path. CWE-22 describes improper limitation of a pathname to a restricted directory. When a program uses an externally influenced path without verifying its resolved destination, file operations may escape the intended directory boundary.

Potential impact

  • An attacker may access files beyond the intended configuration directory, depending on the operation and runtime permissions.
  • An attacker could cause files to be created or modified in unintended locations if the affected operation permits writes.
  • Application configuration or availability may be affected if sensitive or operational files are reachable.

General mitigation guidance

Mitigation generally focuses on treating externally influenced paths as untrusted and enforcing directory boundaries before file access.

  • Prefer fixed, application-controlled configuration locations over caller-supplied paths.
  • Resolve and canonicalize paths, then verify that the resolved destination remains within an explicitly allowed directory.
  • Apply strict input validation and reject unexpected path forms.
  • Run the application with least-privilege filesystem permissions to limit the impact of path handling errors.
  • Avoid exposing file operations through remotely accessible functionality unless they are necessary and appropriately access-controlled.

How teams detect issues like this

  • Use static analysis to identify file operations that receive paths from request data or other untrusted sources.
  • Review code paths from config_path through save_args and load_args, checking for canonicalization and directory-containment enforcement.
  • Add tests and policy checks that verify paths outside approved configuration directories are rejected.
  • Monitor application logs for unusual configuration paths or unexpected file access, while avoiding logging sensitive file contents.

Sources

SourceLink
github.comgithub.com/hiyouga/LlamaFactory/security/advisories/GHSA-h448-p698-4q2g
vuldb.comvuldb.com/cve/CVE-2026-135800
vuldb.comvuldb.com/submit/1055908
vuldb.comvuldb.com/vuln/442772
vuldb.comvuldb.com/vuln/442772/cti

Frequently asked

questions

The vulnerability description says the attack can be initiated remotely. Whether authentication is required is not specified.

An attacker must be able to reach the affected WebUI functionality and influence the config_path value.

Use application-controlled paths where possible, and ensure every resolved path stays within an explicitly permitted directory before performing file operations.

Treat path inputs as untrusted, enforce directory-containment checks, test boundary cases, and limit the application's filesystem permissions.

Find out what's already
exploitable in your codebase.