text-generation-webui — Path Traversal (CVE-2026-35485)
Date: 2026-04
Affected: oobabooga/textgen
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-35485
CWE: CWE-22
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N)

text-generation-webui is an open-source web interface for running Large Language Models. Prior to 4.3, an unauthenticated path traversal vulnerability in load_grammar() allows reading any file on the server filesystem with no extension restriction. Gradio does not server-side validate dropdown values, so an attacker can POST directory traversal payloads (e.g., ../../../etc/passwd) via the API and receive the full file contents in the response. This vulnerability is fixed in 4.3.


Mitigations:

Architectural layers (MAESTRO):