GPT-SoVITS-WebUI Unsafe Deserialization Vulnerability in Roformer Loader Class Allowing Remote Code Execution

Vulnerability

A vulnerability allowing unsafe deserialization has been identified in the GPT-SoVITS-WebUI project, specifically in versions through 20250228v3. The issue arises in the bsroformer.py file within the Roformer_Loader class. The vulnerability is triggered when user input, such as a model path, is passed to the uvr function. This input is then used to create an instance of the Roformer_Loader class, where the model path is appended with a .ckpt extension and loaded using torch.load. This process can lead to remote code execution by deserializing maliciously crafted data.

Impact

Exploitation of this vulnerability allows for remote code execution on the server where GPT-SoVITS-WebUI is running.

Reproduction

To reproduce this vulnerability, upload a malicious model file with a .ckpt extension through the web interface. The file should be crafted to execute arbitrary code when loaded by the application. Once uploaded, the model can be selected in the 'model_choose' dropdown, and the '转换' (Convert) button can be clicked to trigger the vulnerability. The application will process the file using the Roformer_Loader class, leading to unsafe deserialization and remote code execution.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.