Path traversal in Apache Ant - CVE-2026-78254
Published: September 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to overwrite arbitrary files.
The vulnerability exists due to path traversal in the ftp and scp tasks when processing files downloaded from a malicious server. A remote attacker can provide relative paths to write files outside the dedicated download target directory.
For scp and FTPS, the server must pass the tasks\' server identity checks; non-FTPS FTP connections may be subject to a machine-in-the-middle attack.