CVE-2025-49836

9.8 CRITICAL

📋 TL;DR

This CVE describes a command injection vulnerability in GPT-SoVITS-WebUI that allows attackers to execute arbitrary commands on the server by manipulating the path_list parameter. The vulnerability affects all deployments running versions 20250228v3 and earlier of the voice conversion software. Attackers can achieve remote code execution with high privileges.

💻 Affected Systems

Products:
  • GPT-SoVITS-WebUI
Versions: 20250228v3 and prior
Operating Systems: All operating systems running Python
Default Config Vulnerable: ⚠️ Yes
Notes: All deployments using the vulnerable webui.py file are affected regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise allowing installation of malware, data exfiltration, lateral movement to other systems, and persistent backdoor establishment.

🟠

Likely Case

Server takeover leading to data theft, cryptocurrency mining, or use as part of a botnet for DDoS attacks.

🟢

If Mitigated

Limited impact if proper network segmentation, least privilege, and input validation are implemented.

🌐 Internet-Facing: HIGH - WebUI is designed for internet access and the exploit requires no authentication.
🏢 Internal Only: HIGH - Even internal deployments are vulnerable to insider threats or compromised internal systems.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

The vulnerability is trivial to exploit with basic command injection techniques and public proof-of-concept exists in the GitHub advisory.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: None available

Vendor Advisory: https://securitylab.github.com/advisories/GHSL-2025-045_GHSL-2025-048_RVC-Boss_GPT-SoVITS/

Restart Required: Yes

Instructions:

1. Monitor the official GitHub repository for patches. 2. When available, update to the patched version. 3. Restart the application service.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add input validation to the change_label function to reject malicious path inputs

# Modify webui.py to validate path_list parameter
# Add input sanitization before line 272 and 955

Disable WebUI Access

linux

Temporarily disable the web interface and use alternative access methods

# Stop the webui service
systemctl stop gpt-sovits-webui
# Or kill the process
pkill -f webui.py

🧯 If You Can't Patch

  • Implement strict network access controls to limit webUI access to trusted IPs only
  • Run the application in a container with minimal privileges and no network access to other systems

🔍 How to Verify

Check if Vulnerable:

Check if webui.py contains the vulnerable change_label function with unsanitized path_list parameter usage

Check Version:

Check the version in the application interface or examine the source code for version markers

Verify Fix Applied:

Verify that path_list input is properly validated and sanitized before being used in system commands

📡 Detection & Monitoring

Log Indicators:

  • Unusual command execution patterns in system logs
  • Multiple failed authentication attempts followed by successful command execution
  • Suspicious process creation from the webui.py process

Network Indicators:

  • Unusual outbound connections from the webUI server
  • Traffic to known malicious IPs or domains

SIEM Query:

process.name: "python" AND process.args: "webui.py" AND process.args: ("sh" OR "bash" OR "cmd" OR "powershell")

🔗 References

📤 Share & Export