CVE-2024-39688

Source
https://cve.org/CVERecord?id=CVE-2024-39688
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39688.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-39688
Published
2024-07-22T15:21:18.371Z
Modified
2026-04-02T12:17:15.591659Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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 datadir variable is concatenated with other folders and used to open a new file in the generateconfig 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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39688.json"
}
References

Affected packages

Git / github.com/fishaudio/bert-vits2

Affected ranges

Type
GIT
Repo
https://github.com/fishaudio/bert-vits2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.3"
        }
    ]
}

Affected versions

1.*
1.0
1.0.1
1.1
1.1.1
2.*
2.0.1
2.1
v2.*
v2.0.2.1
v2.2
v2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39688.json"