Description
F5-TTS through version 1.1.20 contains a path traversal vulnerability in the finetune Gradio handlers that allows unauthenticated attackers to write arbitrary files by passing unsanitized user-supplied project names directly to os.path.join() without validating the resulting path stays within the intended base directory. Attackers can supply absolute path arguments such as /tmp/EVIL to override the base directory entirely and create arbitrary directories with attacker-controlled JSON content at any filesystem path writable by the server process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SWivid | F5-TTS | ≤ 1.1.20 | — |
References
- https://github.com/SWivid/F5-TTS/issues/1293 issue-tracking
- https://github.com/SWivid/F5-TTS/pull/1294 issue-tracking patch
- https://github.com/SWivid/F5-TTS/commit/2f53ded68e5f69e248ceb200a51ef4d1dc647936 patch
- https://www.vulncheck.com/advisories/f5-tts-path-traversal-via-finetune-gradio-py-create-data-project third-party-advisory