{"id":"CVE-2024-39688","summary":"fishaudio/Bert-VITS2 Limited File Write in webui_preprocess.py generate_config function","details":"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.","modified":"2026-08-12T03:51:37.127695652Z","published":"2024-07-22T15:21:18.371Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39688.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/fishaudio/Bert-VITS2/blob/76653b5b6d657143721df2ed6c5c246b4b1d9277/webui_preprocess.py#L130-L133"},{"type":"WEB","url":"https://github.com/fishaudio/Bert-VITS2/blob/76653b5b6d657143721df2ed6c5c246b4b1d9277/webui_preprocess.py#L34"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39688.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39688"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2024-045_GHSL-2024-047_fishaudio_Bert-VITS2/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fishaudio/bert-vits2","events":[{"introduced":"0"},{"last_affected":"76653b5b6d657143721df2ed6c5c246b4b1d9277"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:fish.audio:bert-vits2:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"2.3"}]}}],"versions":["v2.3","v2.2","2.1","v2.0.2.1","2.0.1","1.1.1","1.1","1.0.1","1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39688.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}