Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft directory traversal payload in API request
-
DeliverySubmit POST to load_grammar() endpoint
-
ExploitBypass Gradio dropdown validation
-
ExecutionRead arbitrary files from filesystem
-
ImpactExfiltrate sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against text-generation-webui versions prior to 4.3. Attacker POSTs directory traversal payloads via the Gradio API endpoint to load_grammar() without authentication. Default installations are vulnerable. |
| Impact | This vulnerability presents HIGH immediate risk due to the confluence of critical factors: CVSS 7.5 severity with complete confidentiality impact (C:H), network-based attack vector requiring no authentication (AV:N, PR:N), and low complexity (AC:L) requiring no user interaction (UI:N). The absence of authentication requirements is particularly severe for internet-exposed instances, which are common in the LLM hosting community. While no public exploit identified at time of analysis, the straightforward nature of path traversal exploitation and detailed GitHub security advisory make weaponization trivial for threat actors. SSVC factors indicate elevated priority: exploitation is highly automatable (simple API POST with path traversal strings), technical impact is significant (arbitrary file read exposing credentials, private keys, application secrets), and the open-source nature creates broad attack surface visibility. The vulnerability's scope is unchanged (S:U) but confidentiality breach alone enables lateral movement in multi-tenant environments. Real-world risk is amplified by typical deployment patterns where text-generation-webui runs with privileges to access model files and potentially broader filesystem areas. |
| Exploit ScenarioDerived | An attacker identifies an internet-exposed text-generation-webui instance running a pre-4.3 version through port scanning or Shodan reconnaissance. Without authentication, they craft POST requests to the Gradio API endpoint responsible for grammar loading, injecting path traversal payloads like '../../../etc/passwd' or '../../../../root/.ssh/id_rsa' in the dropdown parameter. The server processes these requests without validation, returning complete file contents in API responses. The attacker systematically exfiltrates sensitive files including application configuration files containing API keys for OpenAI/Anthropic services, SSH private keys for server access, database credentials, and custom model files representing intellectual property, enabling further lateral movement or data theft. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 07, 2026
Remote unauthenticated file disclosure in oobabooga text-generation-webui versions prior to 4.3 allows arbitrary file reading through path traversal in load_grammar() function. Attackers can retrieve any file from the server filesystem without authentication by exploiting insufficient validation of Gradio dropdown values, submitting directory traversal sequences via API requests. EPSS data not available; no public exploit identified at time of analysis, though exploitation complexity is low (CVSS AC:L) requiring only network access.
RemediationAI
Immediate upgrade to text-generation-webui version 4.3 or later is required, as this release contains fixes for the path traversal vulnerability in load_grammar() function with proper input validation. Organizations should update by pulling the latest release from the official GitHub repository at https://github.com/oobabooga/text-generation-webui and redeploying the application. As interim mitigation for systems that cannot immediately upgrade, restrict network access to the Gradio web interface using firewall rules or reverse proxy authentication, limiting exposure to trusted IP ranges only. Review server logs for suspicious API requests containing directory traversal patterns (../, %2e%2e%2f, absolute paths) targeting grammar loading endpoints. After patching, conduct file integrity checks on sensitive files (configuration files, SSH keys, application secrets) to detect potential prior compromise. Full remediation guidance is available in the GitHub Security Advisory GHSA-hqg5-487v-5mc6 at https://github.com/oobabooga/text-generation-webui/security/advisories/GHSA-hqg5-487v-5mc6.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in text-generation-webui's load_grammar() function, which interfaces with the Gradio framework for web UI functionality. Gradio's dropdown components lack server-side validation of submitted values, creating a classic path traversal attack surface (CWE-22). When processing grammar file requests, the application fails to sanitize user-supplied file paths before filesystem operations. Attackers can inject directory traversal sequences (../../../) through POST requests to the Gradio API endpoint, bypassing intended directory restrictions. The affected component (cpe:2.3:a:oobabooga:text-generation-webui) is commonly deployed for self-hosted LLM inference, often containing sensitive configuration files, API keys, and model data on the same filesystem. No file extension filtering exists, enabling access to arbitrary file types including system files like /etc/passwd on Linux systems or configuration files containing credentials.
Know when Text Generation Webui gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
oobabooga text-generation-webui versions before 4.3 contain a remote file disclosure vulnerability that allows unauthenticated attackers to read arbitrary files from affected servers through path traversal in the grammar loading function. Organizations deploying this open-source AI interface are at risk of exposing sensitive configuration files, credentials, and application data without requiring any authentication or user interaction.
Vendor-released patch: text-generation-webui version 4.3 or later. Interim mitigations pending patching: (1) restrict network access to the web interface to trusted networks only via firewall rules; (2) deploy a reverse proxy with authentication enforcement in front of the application; (3) run the service with minimal filesystem permissions, restricting the process to access only necessary application directories and files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-19669
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB