Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35050

CVE-2026-35050: text-generation-webui RCE Vulnerability

CVE-2026-35050 is a remote code execution flaw in text-generation-webui that allows attackers to overwrite Python files and execute malicious code. This post covers technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-35050 Overview

CVE-2026-35050 is a critical Path Traversal vulnerability affecting text-generation-webui, an open-source web interface for running Large Language Models. Prior to version 4.1.1, users can save extension settings in "py" format within the application root directory. This functionality lacks proper path validation, allowing attackers to overwrite arbitrary Python files on the system, including critical application files like download-model.py. Once overwritten, these malicious Python files can be triggered through the "Model" menu when requesting to download a new model, leading to remote code execution.

Critical Impact

Attackers with privileged access can achieve arbitrary code execution by overwriting Python files and triggering their execution through normal application workflows, potentially compromising the entire LLM hosting infrastructure.

Affected Products

  • text-generation-webui versions prior to 4.1.1
  • oobabooga/text-generation-webui (GitHub)
  • Self-hosted LLM web interface deployments

Discovery Timeline

  • 2026-04-06 - CVE CVE-2026-35050 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-35050

Vulnerability Analysis

This vulnerability stems from improper input validation (CWE-22) in the extension settings save functionality. The application allows users to save extension settings files with a .py extension and does not properly sanitize the destination path. An attacker with high-privilege access to the web interface can craft a malicious save request that traverses outside the intended extension settings directory and overwrites critical Python files in the application root.

The attack chain is particularly dangerous because text-generation-webui naturally executes Python scripts as part of its model download functionality. By overwriting download-model.py with malicious code and then initiating a model download from the UI, an attacker can achieve arbitrary code execution within the context of the application. This could lead to complete system compromise, data exfiltration, or lateral movement within the network.

The vulnerability affects network-accessible deployments and requires high privileges to exploit, but once exploited, the impact crosses security boundaries affecting confidentiality, integrity, and availability of the system.

Root Cause

The root cause is a lack of proper path validation and sanitization when handling file save operations for extension settings. The application fails to:

  1. Restrict file extensions to safe formats only
  2. Validate that the destination path remains within the intended directory
  3. Implement proper canonicalization to prevent directory traversal sequences

This allows an attacker to use path traversal sequences (such as ../) to navigate outside the extensions directory and overwrite arbitrary files accessible by the application's process.

Attack Vector

The attack is network-based and requires authenticated access with high privileges. The exploitation process involves:

  1. Initial Access: An attacker gains authenticated access to the text-generation-webui interface with sufficient privileges to modify extension settings
  2. File Overwrite: The attacker crafts a malicious request to save extension settings, using path traversal to target download-model.py or another executable Python file
  3. Payload Injection: The saved "settings" file contains malicious Python code designed to execute arbitrary commands
  4. Trigger Execution: The attacker navigates to the Model menu and initiates a model download, which executes the overwritten Python file
  5. Code Execution: The malicious payload executes with the privileges of the web application process

The vulnerability manifests in the extension settings save handler, which accepts a user-controlled file path without proper validation. For technical implementation details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-35050

Indicators of Compromise

  • Unexpected modifications to Python files in the text-generation-webui root directory, particularly download-model.py
  • File integrity monitoring alerts for application Python files showing unauthorized changes
  • Unusual extension settings save requests containing path traversal sequences (../) in logs
  • Anomalous process execution spawned by the text-generation-webui process

Detection Strategies

  • Implement file integrity monitoring (FIM) on all Python files within the text-generation-webui installation directory
  • Monitor web application logs for extension settings save requests containing suspicious path patterns or .py file extensions
  • Deploy endpoint detection rules to alert on modification of application files by the web server process
  • Use SentinelOne's behavioral AI to detect anomalous code execution patterns originating from the LLM web interface

Monitoring Recommendations

  • Enable verbose logging for all file operations within text-generation-webui
  • Configure alerts for any write operations to Python files outside the designated extensions directory
  • Implement real-time monitoring of the application root directory for unexpected file modifications
  • Deploy network-level monitoring to detect suspicious API calls to extension settings endpoints

How to Mitigate CVE-2026-35050

Immediate Actions Required

  • Upgrade text-generation-webui to version 4.1.1 or later immediately
  • Audit existing Python files in the application directory for unauthorized modifications
  • Restrict network access to text-generation-webui instances to trusted networks only
  • Review user accounts with elevated privileges and revoke unnecessary access

Patch Information

The vulnerability is fixed in text-generation-webui version 4.1.1. Organizations should update to this version or later as soon as possible. The patch implements proper path validation and restricts the file extensions that can be saved through the extension settings functionality.

For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • Restrict access to the text-generation-webui interface to trusted administrators only until patching is complete
  • Implement network segmentation to isolate LLM hosting infrastructure from critical systems
  • Deploy file integrity monitoring on the application directory with immediate alerting
  • Consider disabling extension settings functionality if not required for operations
bash
# Configuration example
# Restrict network access to text-generation-webui (example using iptables)
iptables -A INPUT -p tcp --dport 7860 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 7860 -j DROP

# Enable file integrity monitoring on application directory
# Example using auditd to monitor Python file modifications
auditctl -w /path/to/text-generation-webui/ -p wa -k webui_integrity

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechText Generation Webui

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35484: text-generation-webui Path Traversal

  • CVE-2026-35483: text-generation-webui Path Traversal

  • CVE-2026-35485: text-generation-webui Path Traversal
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English