CVE-2026-35485 HIGH

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

Vendor Oobabooga
Product text-generation-webui
Weakness CWE-22 · Path traversal
Published April 7, 2026
Last update April 7, 2026

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 7, 2026 CVE published
April 7, 2026 Record updated