f5-tts is vulnerable to Path Traversal
82
High Risk
The finetune Gradio handlers in finetune_gradio.py build filesystem paths from a user-supplied project_name and pass it directly into os.path.join(base, project_name) without any containment check. Because os.path.join discards the base when the second argument is absolute, an attacker who submits an absolute path such as /tmp/EVIL as the project name escapes the intended checkpoint/data base directory. This lets a network-reachable caller create arbitrary directories and write fixed-name JSON files (for example setting.json) anywhere the server process can write, or overwrite such files. The fix adds a _safe_project_path() helper that rejects absolute paths, null bytes, and separators and verifies the resolved path stays within the base via realpath and a prefix check across all path-join sinks.
You are affected if you are using a version that falls within the vulnerable range and expose the F5-TTS finetune Gradio interface to untrusted users.
f5-tts is vulnerable to Path Traversal in versions 0.3.4 - 1.1.20.
Upgrade the f5-tts library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant