Skip to main content

Text Generation Webui EUVDEUVD-2026-19669

| CVE-2026-35485 HIGH
Path Traversal (CWE-22)
2026-04-07 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft directory traversal payload in API request
  2. Delivery
    Submit POST to load_grammar() endpoint
  3. Exploit
    Bypass Gradio dropdown validation
  4. Execution
    Read arbitrary files from filesystem
  5. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

text-generation-webui < 4.3

Affected Packages

euvd text_generation_webui fix: 4.3

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 06:05 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
4.3
CVE Published
Apr 07, 2026 - 14:47 nvd
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 41% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy