CVE-2026-135800 in LLaMA-Factoryinfo

Summary

by MITRE • 11/24/2026

A flaw has been found in hiyouga LLaMA-Factory up to 0.9.5. Affected is the function save_args/load_args of the file src/llamafactory/webui/runner.py of the component WebUI. This manipulation of the argument config_path causes path traversal. The attack can be initiated remotely. The vendor was contacted early about this disclosure but did not respond in any way.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/24/2026

The vulnerability identified within hiyouga LLaMA-Factory versions up to 0.9.5 represents a critical security flaw located specifically in the WebUI component, affecting the save_args and load_args functions found in the src/llamafactory/webui/runner.py module. This issue stems from an improper restriction of pathname access relative to restricted directories, commonly classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory. The core technical flaw involves the manipulation of the config_path argument, which is not sufficiently sanitized or validated before being used in file system operations. When a user provides a path that includes directory traversal sequences such as dot-dot-slash (../), the application fails to normalize or reject these inputs effectively. This allows an attacker to break out of the intended working directory and access files located elsewhere on the server's filesystem, potentially reading sensitive configuration files, source code, or other data that should remain inaccessible through the web interface.

The operational impact of this vulnerability is significant due to its remote exploitability. Since the flaw resides in the WebUI component, an attacker does not need local shell access or authentication credentials if the WebUI is exposed to untrusted networks without additional protective measures like reverse proxy authentication. By sending a specially crafted HTTP request with a maliciously constructed config_path parameter, an adversary can induce the application to read arbitrary files from the host system. This capability facilitates unauthorized information disclosure, which serves as a critical stepping stone for further attacks. For instance, if sensitive configuration files containing database credentials, API keys, or internal network topology details are accessible via this path traversal vector, their exposure could lead to credential theft and subsequent lateral movement within the target environment. Furthermore, depending on how the loaded arguments are processed downstream, there may be secondary risks involving arbitrary code execution if the application interprets content from these files in a dangerous manner, although the primary classification remains focused on information disclosure through path traversal.

From an industry standard perspective, this vulnerability aligns with CWE-22 and is relevant to ATT&CK technique T1083: File and Directory Discovery, where adversaries search for specific files or directories to gather intelligence about the target environment. The lack of response from the vendor regarding early disclosure highlights a gap in security maintenance practices for open-source projects, leaving users exposed until they manually apply patches or implement workarounds. To mitigate this risk, immediate actions should include upgrading to a patched version once available, although given the current status, defensive measures are necessary. Administrators should ensure that the WebUI is not directly accessible from untrusted networks by placing it behind an authentication-enabled reverse proxy such as Nginx or Apache with strict access control lists. Additionally, implementing input validation on the server side to reject any path containing traversal sequences before processing is crucial. Deploying a Web Application Firewall can also help detect and block requests attempting to exploit this specific pattern of directory traversal attacks.

Responsible

VulDB

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00712

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!