CVE-2026-35485CWE-22

text-generation-webui has a Path Traversal in load_grammar() — arbitrary file read without authentication

High · published April 7, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
58.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00883 · 58.8th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-04-07T14:47Z
EPSS history
Timeline
  • 07 APR 14:47Z
    text-generation-webui has a Path Traversal in load_grammar() — arbitrary file read without authentication
    cvelistv5