RVC-Boss GPT-SoVITS can be made to run code when loading model files

Critical 9.2SE Fix-First Score 51/100CVE-2026-140281SE-AIV-00056Unsafe loading of model or data filesModels and ML frameworksPublished 1 Dec 2026

Download as PDF

What this means

An attacker with no password can send a request to the /set_model endpoint and make the server run malicious code with the same permissions as the server process. This could lead to theft of data, installation of malware, or complete takeover of the system running the service.

SecurityElites Manager Brief: the decision in one minute

An attacker can send one unauthenticated request to RVC-Boss GPT-SoVITS and run code on your server without a password. No fix has been released yet. You must stop using this software, isolate it, or replace it immediately to protect your data and systems.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixInfrastructure and security team, with input from the product owner.
Likely effortThis is an estimate: If you can remove the service, one day for planning and testing. If you must keep it running, one to two days to set up network isolation and monitoring. Effort could be longer if the service is integrated into production workflows.

Questions to ask your team or supplier

  • Is RVC-Boss GPT-SoVITS accessible from the internet or from networks where untrusted users have access? If so, what urgent action are we taking to isolate it?
  • Do we have logs from the /set_model endpoint for the past three months? Who should review them for signs of exploitation?
  • What is our plan if no fixed version is released by the vendor within 30 days? Should we evaluate alternative products now?

Message you can forward to the owning team

Security notice: RVC-Boss GPT-SoVITS can be made to run code when loading model files (CVE-2026-140281)

Severity: Critical (9.2 of 10)
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-140281-rvc-boss-gpt-sovits-can-be-made-to-run-code-when/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-00056

What is at stake in your AI setup

  • Model files: An attacker can replace legitimate voice or text generation models with backdoored versions that produce incorrect or malicious output.
  • Compute: The attacker gains code execution on the server and can hijack it to mine cryptocurrency or run other resource-intensive malicious tasks.
  • Keys for AI providers: If the server has access to API keys for external AI services (OpenAI, etc.), an attacker can steal them and abuse the accounts.
  • Connected tools and systems: If the service is integrated into other workflows (data pipelines, chat interfaces, automation), the attacker can pivot to compromise those systems as well.

Map where your company uses AI

Who is exposed

  • Any team running RVC-Boss GPT-SoVITS in production or development.
  • Services that connect to this software or rely on its output.
  • Teams that share networks or cloud environments with this service.
  • Not affected: Teams that do not use RVC-Boss GPT-SoVITS, or who run it only on isolated test machines with no network access.

Upgrades you need

SoftwareAffected versionsMove to
RVC-Boss GPT-SoVITSEvery version up to and including 20250606v2proNo fixed version recorded. Follow the steps below.

The fixed version here was taken from the vendor's own CVE record, because the national database has not listed it yet.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededNone. No login is needed
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doHard. It depends on conditions the attacker does not control
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh

Read from the official severity rating: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/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

Kind of coding mistake

  • CWE-502: untrusted data is loaded as objects

Where it sits in the standards

OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)

If you cannot upgrade today

  • Immediately restrict network access to the /set_model endpoint: block all external traffic and require authentication at the firewall or reverse proxy level.
  • Disable the /set_model endpoint entirely by removing or commenting out the route in api.py, then restart the service, if your use case allows this.
  • Run the service in a container with minimal file system permissions and no access to other services or the host network.

Signs it may already have been used against you

  • Search web server and application logs for requests to the /set_model endpoint, especially POST requests with gpt_model_path or sovits_model_path parameters.
  • Look for new or unexpected files in the model directories (usually a models/ or checkpoints/ folder) with recent modification times.
  • Check the server process logs for torch.load errors, pickle deserialization warnings, or unexpected code execution.
  • Review the system audit log for new processes spawned by the RVC-Boss or GPT-SoVITS service process, particularly shells, Python interpreters or network tools.

Log searches to start from

POST requests to /set_model endpoint (adjust field names for your logs)Splunk

sourcetype=http OR sourcetype=web_server method=POST path=/set_model | stats count by src_ip, user

File modifications in model directories (adjust path and field names)Elastic

event.action:file_modification AND file.path:*models* AND file.path:*.pt OR file.path:*.pth | stats count by host, file.name, file.mtime

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Inventory all instancesList every machine, container and service where RVC-Boss GPT-SoVITS version 20250606v2pro or earlier is installed. Check Docker images, Python virtual environments, cloud deployments and development machines. Note the version and network location of each instance.
  2. Check if the service is exposed to untrusted networksVerify whether each instance can be reached from the internet, an untrusted internal network, or by users who do not need access. Look at firewall rules, reverse proxy settings and authentication on the /set_model endpoint.
  3. Review access logs for the /set_model endpointIf the service has been running, search all access logs for requests to /set_model from before today. Look for requests from unexpected IP addresses, repeated attempts or unusual patterns. Keep these logs for investigation.
  4. Check for new or modified model filesLook at the modification dates of all model files the service has loaded recently. Compare the list to what you expect. Check for files in temporary directories or unusual locations that may have been left by an attack.
  5. Stop or isolate the service immediatelyIf the service is on a production or shared network, stop it now or move it to an isolated network segment with no access to other systems or the internet. This reduces the risk of code execution spreading to other machines.
  6. Check for a fixed version from the vendorContact RVC-Boss or check their repository for a newer version. As of now, no fixed version has been announced. Ask the vendor for a timeline and what they recommend in the meantime.
  7. Monitor for exploitation until mitigation is in placeSet up alerts for any requests to the /set_model endpoint. Log all file access by the server process. If you see suspicious activity, begin incident response (see detect section).
  8. Plan a long-term solutionDecide whether to replace RVC-Boss GPT-SoVITS with an alternative, wait for a fix, or run it in a heavily restricted sandbox. Document the decision and timeline with your team and stakeholders.

How to confirm it is fixed: Make a test request to the /set_model endpoint with a known benign model file and confirm that the service can still load it; then confirm that the service is no longer running code from pickle deserialization by checking that the endpoint rejects requests or

SecurityElites Quick Fixes: copy and paste

Find RVC-Boss GPT-SoVITS in Docker containersfor this issue

docker ps --all | grep -i 'gpt-sovits\|rvc-boss'
docker inspect <container_id> | grep -i image

Find Python installations and versionfor this issue

find / -name 'api.py' -path '*/GPT*SoVITS/*' 2>/dev/null
grep -r 'version' $(find / -name 'api.py' -path '*/GPT*SoVITS/*' 2>/dev/null) 2>/dev/null

Check if /set_model endpoint is accessiblefor this issue

curl -v http://<your-service-ip>:<port>/set_model 2>&1 | head -20

Load PyTorch weights without running codegeneral hardening

import torch
state = torch.load("model.pt", weights_only=True)

Load safetensors weightsgeneral hardening

from safetensors.torch import load_file
state = load_file("model.safetensors")

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the main risk from this vulnerability?A good answer: An attacker can send a request to /set_model without a password and make the server run code, giving them control of the entire service and any data it can access.
How would you know if someone had already exploited this before we patched it?A good answer: Check the /set_model endpoint logs for suspicious requests, look for unexpected model files with recent dates, and review system logs for unusual processes started by the service.
What should we do right now if we cannot install a fix today?A good answer: Block all access to the service from outside networks, disable the /set_model endpoint if possible, and monitor logs closely for any exploitation attempts.
Why is this a critical problem even though we do not expose this service to the internet?A good answer: If an attacker gets onto your internal network or cloud environment, they can still reach the service and run code with its permissions, potentially spreading across your infrastructure.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## RVC-Boss GPT-SoVITS can be made to run code when loading model files (CVE-2026-140281)

**Severity:** Critical 9.2  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-00056 https://securityelites.com/ai-vulnerabilities/cve-2026-140281-rvc-boss-gpt-sovits-can-be-made-to-run-code-when/

### Why this matters
An attacker with no password can send a request to the /set_model endpoint and make the server run malicious code with the same permissions as the server process. This could lead to theft of data, installation of malware, or complete takeover of the system running the service.

### What to do
1. Inventory all instances: List every machine, container and service where RVC-Boss GPT-SoVITS version 20250606v2pro or earlier is installed. Check Docker images, Python virtual environments, cloud deployments and development machines. Note the version and network location of each instance.
2. Check if the service is exposed to untrusted networks: Verify whether each instance can be reached from the internet, an untrusted internal network, or by users who do not need access. Look at firewall rules, reverse proxy settings and authentication on the /set_model endpoint.
3. Review access logs for the /set_model endpoint: If the service has been running, search all access logs for requests to /set_model from before today. Look for requests from unexpected IP addresses, repeated attempts or unusual patterns. Keep these logs for investigation.
4. Check for new or modified model files: Look at the modification dates of all model files the service has loaded recently. Compare the list to what you expect. Check for files in temporary directories or unusual locations that may have been left by an attack.
5. Stop or isolate the service immediately: If the service is on a production or shared network, stop it now or move it to an isolated network segment with no access to other systems or the internet. This reduces the risk of code execution spreading to other machines.
6. Check for a fixed version from the vendor: Contact RVC-Boss or check their repository for a newer version. As of now, no fixed version has been announced. Ask the vendor for a timeline and what they recommend in the meantime.
7. Monitor for exploitation until mitigation is in place: Set up alerts for any requests to the /set_model endpoint. Log all file access by the server process. If you see suspicious activity, begin incident response (see detect section).
8. Plan a long-term solution: Decide whether to replace RVC-Boss GPT-SoVITS with an alternative, wait for a fix, or run it in a heavily restricted sandbox. Document the decision and timeline with your team and stakeholders.

### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Make a test request to the /set_model endpoint with a known benign model file and confirm that the service can still load it; then confirm that the service is no longer running code from pickle deserialization by checking that the endpoint rejects requests or 
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Related vulnerabilities

The same kind of mistake in other AI tools

Change history

  • 1 Dec 2026: Made public
  • 1 Dec 2026: Guide updated

Official record

GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /set_model endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set gpt_model_path or sovits_model_path to a crafted pickle file readable by the server, triggering torch.load with weights_only=False to execute code as the server process user.

Weakness type: CWE-502

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-140281

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 1 Dec 2026. Read the vendor advisory before changing a production system.