CVE-2026-140281: GPT-SoVITS through 20250606v2pro Unsafe Deserialization via api.py /set_model
GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /setmodel endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set gptmodelpath or sovitsmodelpath to a crafted pickle file readable by the server, triggering torch.load with weightsonly=False to execute code as the server process user.
Affected Software
Event History
Frequently Asked Questions
What must an attacker be able to do to exploit this issue?
An attacker must be able to reach the api.py /set_model endpoint and provide a gpt_model_path or sovits_model_path that points to a crafted pickle file readable by the server. No authentication or user interaction is required, but exploitation has high attack complexity because the malicious file must be accessible to the server process.
What level of access can successful exploitation provide?
Successful exploitation can execute code as the user account running the GPT-SoVITS server process. The reported impact includes compromise of confidentiality, integrity, and availability.
How can I determine whether my deployment is affected?
Check whether the deployment is GPT-SoVITS 20250606v2pro or earlier and exposes the api.py /set_model endpoint. Affected code passes attacker-controlled model paths to torch.load with weights_only=False.