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.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version
2f53ded68e5f69e248ceb200a51ef4d1dc647936 (git)
Credits
YU SUN
References
github.com/SWivid/F5-TTS/issues/1293
github.com/SWivid/F5-TTS/pull/1294
github.com/...ommit/2f53ded68e5f69e248ceb200a51ef4d1dc647936
www.vulncheck.com/...-finetune-gradio-py-create-data-project