CVE-2024-39685CWE-78

fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py resample function

Critical · published July 22, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
65.8
In the wild
Unconfirmed
What it is

🚨 A user input mishap in Bert-VITS2 is a ticket for total chaos! One misplaced command can lead to arbitrary command execution like a magic trick gone wrong. 🔥 Think of it like a restaurant where patrons can write their own orders on the menu. If the kitchen takes these orders without any checks, someone could request an entire kitchen raid instead of just a burger! This vulnerability could allow an attacker to run any command on the server, potentially compromising all data or disrupting services. Imagine an intruder who walks in and completely reconfigures the restaurant's kitchen — devastating, right?

Put simply

Think of it like a restaurant where patrons can write their own orders on the menu. If the kitchen takes these orders without any checks, someone could request an entire kitchen raid instead of just a burger! The issue arises from user input given to the data_dir variable, which is then directly used in a command executed by subprocess.run with shell=True. This creates a pathway for attackers to execute arbitrary commands under the process's privileges.

What to do

This vulnerability could allow an attacker to run any command on the server, potentially compromising all data or disrupting services. Imagine an intruder who walks in and completely reconfigures the restaurant's kitchen — devastating, right? To mitigate this, update Bert-VITS2 to version 2.4 or later immediately. Additionally, validate and sanitize all user inputs to ensure no malicious commands can slip through. Implement strict access controls to further protect against unauthorized command execution. You've got this! Tackle these steps and reclaim your security superhero status! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01116 · 65.8th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-07-22T15:13Z
EPSS history
Timeline
  • 22 JUL 15:13Z
    fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py resample function
    cvelistv5