The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-49838

CVE-2025-49838: GPT-SoVITS-WebUI Deserialization Flaw

CVE-2025-49838 is an unsafe deserialization vulnerability in GPT-SoVITS-WebUI that allows attackers to execute arbitrary code via malicious model files. This article covers technical details, affected versions, and mitigations.

Published: March 24, 2026

CVE-2025-49838 Overview

CVE-2025-49838 is an unsafe deserialization vulnerability discovered in GPT-SoVITS-WebUI, a popular voice conversion and text-to-speech web interface. The vulnerability exists in the AudioPreDeEcho class within vr.py, where user-controlled input is passed directly to torch.load() without proper validation. This allows an attacker to craft a malicious model file that, when loaded, can execute arbitrary code on the target system.

The vulnerability flow begins when the model_choose variable accepts user input representing a path to a model file. This input is passed to the uvr function, which creates a new instance of the AudioPreDeEcho class with the model_path attribute containing the user-supplied path (with .pth extension automatically appended). The AudioPreDeEcho class then uses torch.load to deserialize the model at the specified path, enabling unsafe deserialization attacks.

Critical Impact

Attackers can achieve remote code execution by supplying a malicious PyTorch model file, potentially leading to complete system compromise of servers running GPT-SoVITS-WebUI.

Affected Products

  • rvc-boss gpt-sovits-webui version 20250228v3 and prior

Discovery Timeline

  • 2025-07-15 - CVE-2025-49838 published to NVD
  • 2025-07-30 - Last updated in NVD database

Technical Details for CVE-2025-49838

Vulnerability Analysis

This vulnerability represents a classic case of insecure deserialization in Python machine learning applications. PyTorch's torch.load() function uses Python's pickle module under the hood, which is inherently unsafe when loading untrusted data. When torch.load() deserializes a model file, it can execute arbitrary Python code embedded within the pickle payload.

The attack surface is exposed through the web interface where users can specify model paths. An attacker could host a malicious .pth file on a network-accessible location or upload it to the server, then reference this path through the web interface. When the application attempts to load this "model," the malicious payload executes with the privileges of the application process.

At the time of publication, no patched versions are available, making this vulnerability particularly dangerous for production deployments.

Root Cause

The root cause is the direct use of torch.load() on user-controlled file paths without proper input validation or safe loading mechanisms. The model_choose parameter flows from user input through multiple functions (uvr → AudioPreDeEcho constructor) without sanitization, eventually reaching the dangerous torch.load() call. PyTorch provides safer alternatives such as torch.load(..., weights_only=True) for loading model weights without executing arbitrary code, but these safeguards are not implemented in the vulnerable code.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious PyTorch model file containing a pickle payload with embedded Python code
  2. Making this file accessible to the target server (via file upload, network share, or path traversal)
  3. Submitting the path to this malicious file through the GPT-SoVITS-WebUI interface
  4. The application loads the file with torch.load(), triggering the deserialization attack
  5. The embedded malicious code executes with application privileges

The vulnerability exists in the vr.py file at line 216 where torch.load is called on the user-supplied model_path. Additional vulnerable entry points exist in webui.py at multiple locations as documented in the GitHub Security Advisory.

Detection Methods for CVE-2025-49838

Indicators of Compromise

  • Unexpected .pth files appearing in model directories or temporary locations
  • Unusual process spawning from the Python/GPT-SoVITS process
  • Network connections initiated by the application to unexpected external hosts
  • Suspicious file system access patterns originating from the web application
  • Anomalous CPU or memory usage during model loading operations

Detection Strategies

  • Monitor for torch.load() calls on untrusted or user-supplied file paths in application logs
  • Implement file integrity monitoring on model directories to detect unauthorized modifications
  • Deploy network-based intrusion detection rules to identify pickle exploitation payloads
  • Use endpoint detection to identify unusual child processes spawned by the GPT-SoVITS application
  • Audit access logs for unusual model path submissions through the web interface

Monitoring Recommendations

  • Enable verbose logging for model loading operations in GPT-SoVITS-WebUI
  • Implement real-time alerting for any torch.load operations on files outside whitelisted directories
  • Monitor system call activity for the application process to detect post-exploitation behavior
  • Track file uploads and model path submissions for anomalous patterns

How to Mitigate CVE-2025-49838

Immediate Actions Required

  • Restrict network access to GPT-SoVITS-WebUI instances to trusted networks only
  • Implement strict input validation for model path parameters, allowing only whitelisted directories
  • Consider temporarily disabling the UVR5/AudioPreDeEcho functionality until a patch is available
  • Deploy web application firewall rules to filter suspicious model path inputs
  • Run the application in a containerized or sandboxed environment with minimal privileges

Patch Information

At the time of publication, no official patch is available from the vendor. Organizations should monitor the GPT-SoVITS GitHub repository for security updates. The GitHub Security Advisory (GHSL-2025-049 through GHSL-2025-053) provides additional technical details about the vulnerability.

Workarounds

  • Modify the source code to use torch.load(model_path, weights_only=True) which prevents arbitrary code execution during deserialization
  • Implement path validation to restrict model loading to a specific trusted directory
  • Add file signature verification before loading any model files
  • Deploy network segmentation to isolate GPT-SoVITS-WebUI instances from sensitive systems
bash
# Example: Restrict model directory access and implement path validation
# Add to your deployment configuration

# Create dedicated model directory with restricted permissions
mkdir -p /opt/gpt-sovits/trusted_models
chmod 750 /opt/gpt-sovits/trusted_models

# Set environment variable to enforce trusted model directory
export GPT_SOVITS_MODEL_DIR=/opt/gpt-sovits/trusted_models

# Run with reduced privileges in container
docker run --read-only --user nobody:nogroup \
  -v /opt/gpt-sovits/trusted_models:/models:ro \
  gpt-sovits-webui

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechGpt Sovits Webui

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub PoC Script

  • GitHub PoC Script

  • GitHub PoC Script

  • GitHub PoC Script

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-49841: GPT-SoVITS-WebUI Deserialization Flaw

  • CVE-2025-49839: GPT-SoVITS-WebUI Deserialization Flaw

  • CVE-2025-49837: GPT-SoVITS-WebUI Deserialization Flaw

  • CVE-2025-49836: GPT-SoVITS-WebUI RCE Vulnerability
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