Path traversal in basic-ftp - #VU168004
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to write or overwrite files outside the intended local download directory.
The vulnerability exists due to path traversal in the basic-ftp downloadToDir() function when it validates server-supplied directory names without verifying that the resulting paths remain within the destination directory. A remote attacker can manipulate directory listings from a malicious or compromised FTP server, or tamper with unencrypted FTP traffic, to redirect a client's recursive download outside its intended destination.