CVE-2024-39686CWE-78

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

Critical · published July 22, 2024

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

🚨 A user-provided input directly morphs into a command, and just like that, an attacker can execute arbitrary code! 🔥 Think of it like a restaurant chef who takes orders without checking what the customer is really asking for — one wrong dish could lead to an unexpected food fight! 🍽️ An attacker could leverage this vulnerability to run any command on the server, potentially compromising sensitive data or even taking full control of the system. The consequences could be absolutely devastating, affecting everything from data integrity to service availability.

Put simply

Think of it like a restaurant chef who takes orders without checking what the customer is really asking for — one wrong dish could lead to an unexpected food fight! 🍽️ This vulnerability in Bert-VITS2 allows unvalidated user input in the data_dir variable to be passed to subprocess.run with shell=True, leading to arbitrary command execution.

What to do

An attacker could leverage this vulnerability to run any command on the server, potentially compromising sensitive data or even taking full control of the system. The consequences could be absolutely devastating, affecting everything from data integrity to service availability. Update to Bert-VITS2 version 2.4 or later to patch this vulnerability. It’s crucial to validate and sanitize user inputs before passing them to subprocess functions. Implementing stricter input controls can help mitigate such vulnerabilities in the future. You’ve got this! With these steps, you can lock down your application and become a security hero! 🦸‍♂️

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.01180 · 67.5th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-07-22T15:16Z
EPSS history
Timeline
  • 22 JUL 15:16Z
    fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py bert_gen function
    cvelistv5