# CVE-2024-39688: fishaudio/Bert-VITS2 Limited File Write in webui_preprocess.py generate_config function

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- 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): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-22T15:21:18.371Z
- Modified: 2026-06-17T07:42:28.523Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Bert-VITS2 is the VITS2 Backbone with multilingual bert. User input supplied to the data_dir variable is concatenated with other folders and used to open a new file in the generate_config function, which leads to a limited file write. The issue allows for writing /config/config.json file in arbitrary directory on the server. If a given directory path doesn’t exist, the application will return an error, so this vulnerability could also be used to gain information about existing directories on the server. 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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## 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/76653b5b6d657143721df2ed6c5c246b4b1d9277/webui_preprocess.py#L130-L133> (issue-tracking)
- <https://github.com/fishaudio/Bert-VITS2/blob/76653b5b6d657143721df2ed6c5c246b4b1d9277/webui_preprocess.py#L34> (issue-tracking)

## Sources

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

---

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