Skip to main content

text-generation-webui CVE-2026-35050

| EUVDEUVD-2026-19408 HIGH
Path Traversal (CWE-22)
2026-04-06 security-advisories@github.com
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Access text-generation-webui
  2. Delivery
    Bypass front-end folder check, save .py file
  3. Exploit
    Overwrite download-model.py in app root
  4. Execution
    Request model download triggers execution
  5. Impact
    Arbitrary code execution on backend server

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

Exploitation requires access to the running Web UI and specifically the 'Session → Save extension settings to user_data/settings.yaml' feature. The attacker must bypass the front-end-only restriction on the 'File folder' field (the advisory shows this done by deleting the HTML 'disabled' attribute in browser dev tools, or by intercepting/modifying the POST to /queue/join via a web proxy) to write to the application root './' with a '.py' filename, overwriting download-model.py; code execution then fires when a model download is initiated from the 'Model' menu. The default portable build (textgen-portable-3.22-linux-cpu) is vulnerable out of the box per the PoC. Limiting factors: the attacker needs an active session to the UI and must perform the folder/extension bypass manually (not automatable per SSVC), and CVSS assigns PR:L - however, text-generation-webui commonly runs without authentication, so an exposed instance may be reachable by any remote user; conversely, instances bound to localhost or behind authentication meaningfully reduce exposure.

Impact

This is a genuine high-priority issue, though not an emergency. The vendor-supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) describes a network-reachable, low-complexity path traversal that yields full remote code execution, corroborated by the GHSA advisory's 'total' technical impact and a detailed working proof-of-concept. SSVC frames it as Exploitation=poc, Automatable=no, Technical Impact=total - meaning a usable PoC exists but the attack is not trivially mass-automatable (it requires an authenticated session and manual front-end bypass or proxy manipulation), which is consistent with the very low EPSS score of 0.06% (18th percentile). This case shows a classic contrast: EPSS/exploitation-probability is low and the CVE is NOT in CISA KEV, yet the technical impact is maximal and a concrete PoC is published. The low EPSS reflects the limited, non-wormable attack surface (a niche LLM UI, authenticated access needed) rather than low severity. The vuln.today priority of 'this_week' aligns with this read: patch promptly, but widespread opportunistic exploitation is less likely than targeted abuse of exposed or shared instances. One caveat for defenders: CVSS marks PR:L (authenticated), yet text-generation-webui frequently runs without authentication by default, so an internet-exposed instance may be effectively unauthenticated - verify your deployment's auth posture.

Exploit ScenarioDerived

An attacker with access to the text-generation-webui interface uses the 'Session → Save extension settings' feature, bypassing the front-end-only restriction on the file-folder field (via browser dev tools or a proxy such as Burp) to write a malicious 'download-model.py' into the application root directory. When any model download is subsequently requested from the 'Model' menu, the overwritten Python file executes, running arbitrary commands on the backend server. A full step-by-step PoC with working payload (os.system(...)) is published in the GHSA advisory.

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

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

Alert me

AnalysisAIv2 – Oct 23, 2026

Arbitrary file write in text-generation-webui through 4.1.0 lets a user with access to the web UI write attacker-controlled Python into the application root - overwriting files such as download-model.py - which is then executed on the server the next time a model download is initiated from the Model menu, yielding remote code execution. The CVSS vector of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) marks this as authenticated, but text-generation-webui is frequently deployed without any authentication, so an internet-exposed instance can effectively be reached by any remote user; the official portable build (textgen-portable-3.22-linux-cpu) is vulnerable out of the box per the published reproduction steps. A public proof-of-concept reference exists in the upstream GHSA advisory (SSVC exploitation: poc), it is not listed in CISA KEV, EPSS is low at 0.06% (18th percentile), and the vendor fixed the issue in 4.1.1.

Earlier versions of this analysis (1)
v1 Apr 06, 2026 - 18:22 CVSS 9.1

Arbitrary Python file overwrite in text-generation-webui versions prior to 4.1.1 enables authenticated high-privilege users to achieve remote code execution by overwriting critical application files like download-model.py through malicious extension settings saved in .py format, then triggering execution via the Model download interface. No public exploit identified at time of analysis, though EPSS data not available for this recent CVE and exploitation methodology is straightforward for authenticated attackers.

RemediationAI

Update to text-generation-webui 4.1.1 (pip: upgrade the text-generation-webui package to 4.1.1; portable users should replace the bundle with a build shipping 4.1.1 or later) - this is the complete fix per the vendor advisory at https://github.com/oobabooga/text-generation-webui/security/advisories/GHSA-jg96-p5p6-q3cv. Where immediate upgrade is not possible, the practical compensating controls are: do not expose the web UI to untrusted networks (bind to 127.0.0.1 or a trusted VPN-only interface), since the flaw requires an interactive session and a request-level bypass that an anonymous internet user should never be in a position to perform; front the Gradio interface with an authenticating reverse proxy and restrict the /queue/join endpoint to trusted users, which reduces exposure but does not remove the flaw for authenticated insiders; and run the service under a dedicated low-privilege account with the application directory mounted read-only where feasible, so an overwritten .py file cannot be persisted or executed - the trade-off is that legitimate model downloads and settings saves writing into the install tree will break. Users who must retain the 'Save extensions settings' workflow should treat their UI accounts as fully trusted, because the advisory confirms the folder and file-extension checks exist only in the browser and can be stripped client-side.

Affected VersionsENISA

text-generation-webui < 4.1.1

Affected Packages

euvd text_generation_webui fix: 4.1.1

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 flaw is CWE-22 (path traversal) in the Gradio-based 'Session → Save extension settings to user_data/settings.yaml' feature. The 'File folder' field is validated only in the browser front end, so the restriction can be bypassed either by removing the HTML 'disabled' attribute via developer tools or by intercepting and rewriting the POST to the Gradio /queue/join endpoint with a proxy such as Burp Suite. The back end then honours an arbitrary destination directory ('./') and an arbitrary file name with a '.py' extension, allowing overwrite of Python modules in the application root; because the application subsequently imports/executes download-model.py when the user requests a model download, the write escalates to code execution in the context of the main application process. The advisory also notes the '.yaml' extension is not enforced server-side, which is the same missing-validation root cause. Affected package data maps the issue to cpe:2.3:a:oobabooga:textgen and to the pip package text-generation-webui (vulnerable <= 4.1, fixed in 4.1.1). Exploitation requires an active UI session and a manual front-end or request-level bypass, which is why SSVC marks it not automatable while rating technical impact as total.

Know when Python 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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable UI feature (AV:N); front-end-only check is trivially bypassed (AC:L); requires a session to the UI (PR:L); attacker self-drives the save/trigger steps (UI:N); RCE yields total C/I/A.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Analysis Updated
Oct 23, 2026 - 23:29 vuln.today
v2 - CVSS changed
Severity Changed
Oct 23, 2026 - 23:24 NVD
CRITICAL HIGH
CVSS changed
Oct 23, 2026 - 23:24 NVD
9.1 (CRITICAL) 8.8 (HIGH)
Analysis Updated
Apr 16, 2026 - 05:46 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
4.1.1
CVE Published
Apr 06, 2026 - 18:16 nvd
CRITICAL 9.1

DescriptionNVD

text-generation-webui is an open-source web interface for running Large Language Models. Prior to 4.1.1, users can save extention settings in "py" format and in the app root directory. This allows to overwrite python files, for instance the "download-model.py" file could be overwritten. Then, this python file can be triggered to get executed from "Model" menu when requesting to download a new model. This vulnerability is fixed in 4.1.1.

Executive ViewAI

Why It Matters

CVE-2026-35050 in text-generation-webui up to 4.1.0 allows an authenticated user (or unauthenticated if no login required) to write arbitrary Python code into the application root, leading to remote code execution when a model download is initiated. The official portable Linux build is vulnerable out of the box, and many deployments lack authentication, effectively exposing internet-facing instances to any remote attacker. This poses a severe risk of full server compromise, data breach, and lateral movement, requiring immediate action from security leadership.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Prevalence
Medium
popular open-source local-LLM web UI, mainly hobbyist and developer deployments
Social Media
3
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.1%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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