CVE-2024-39686 fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py bert_gen function
Attackers can execute arbitrary commands via the data_dir input in the bert_gen function of Bert-VITS2.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-39686?
CVE-2024-39686 is a critical command injection vulnerability in FishAudio Bert-VITS2, published on 22 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Bert-VITS2 is the VITS2 Backbone with multilingual bert. User input supplied to the data_dir variable is used directly in a command executed with subprocess.run(cmd, shell=True) in the bert_gen function, which leads to arbitrary command execution. This affects fishaudio/Bert-VITS2 2.3 and earlier.
Weakness: CWE-78
Which versions are affected by CVE-2024-39686?
It affects 1 product.
Products include Fishaudio Bert-Vits2.
How do I fix CVE-2024-39686?
No fix has been published for CVE-2024-39686 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-39686 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39686 exists.