# CVE-2024-39685: fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py resample function

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-22T15:13:06.926Z
- Modified: 2026-06-17T07:42:28.173Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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 resample function, which leads to arbitrary command execution. This affects fishaudio/Bert-VITS2 2.3 and earlier.

(As written by CVE List.)

## Affected

- FishAudio Bert-VITS2: <= 2.3; up to 2.3
- fish.audio bert-vits2: up to 2.3

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-045_GHSL-2024-047_fishaudio_Bert-VITS2/> (exploit, third-party-advisory)
- <https://github.com/fishaudio/Bert-VITS2/blob/3f8c537f4aeb281df3fb3c455eed9a1b64871a81/webui_preprocess.py#L46-L52> (issue-tracking)
- <https://github.com/fishaudio/Bert-VITS2/blob/76653b5b6d657143721df2ed6c5c246b4b1d9277/webui_preprocess.py#L130-L133> (issue-tracking)

## Sources

- CVE List: [CVE-2024-39685](https://www.cve.org/CVERecord?id=CVE-2024-39685), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-39685](https://nvd.nist.gov/vuln/detail/CVE-2024-39685), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39685 · Whole record: https://cve.day/CVE-2024-39685.json · Rebuilt by cve.day 2026-11-25T22:58:43.150Z
