Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess text-generation-webui
-
DeliveryBypass front-end folder check, save .py file
-
ExploitOverwrite download-model.py in app root
-
ExecutionRequest model download triggers execution
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
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
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.
Apply vendor patch.
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-19408
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB