---
title: "CVE-2026-140281: GPT-SoVITS - Remote Code Execution"
description: "GPT-SoVITS through 20250606v2pro contains an insecure deserialization vulnerability in api.py /set_model endpoint, letting unauthenticated attackers execute arbitrary code by loading crafted pickle files via torch.load with weights_only=False."
url: https://panop.io/threat-heartbeat/CVE-2026-140281/
---

# CVE-2026-140281 GPT-SoVITS - Remote Code Execution

GPT-SoVITS through 20250606v2pro contains an insecure deserialization vulnerability in api.py /set\_model endpoint, letting unauthenticated attackers execute arbitrary code by loading crafted pickle files via torch.load with weights\_only=False.

CVSS base score 8.1 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

1.03% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-140281)

## Details

Type

Remote Code Execution

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Published

1 December 2026

Updated

3 December 2026

Weakness

[CWE-502](https://cwe.mitre.org/data/definitions/502.html)

## Vendor fix

Update to the latest version that patches the insecure deserialization vulnerability.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-140281](https://nvd.nist.gov/vuln/detail/CVE-2026-140281)
- [https://github.com/RVC-Boss/GPT-SoVITS](https://github.com/RVC-Boss/GPT-SoVITS)
- [https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L1040](https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L1040)
- [https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L1142-L1155](https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L1142-L1155)
- [https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L376-L377](https://github.com/RVC-Boss/GPT-SoVITS/blob/d7c2210da8c013e81a94bfc7b811a477c99fd506/api.py#L376-L377)
- [https://github.com/bilibili/GPT-SoVITS/issues/2879](https://github.com/bilibili/GPT-SoVITS/issues/2879)
- [https://www.vulncheck.com/advisories/gpt-sovits-through-20250606v2pro-unsafe-deserialization-via-api-py-set-model](https://www.vulncheck.com/advisories/gpt-sovits-through-20250606v2pro-unsafe-deserialization-via-api-py-set-model)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
