Path traversal in Apache Ant - CVE-2026-78254

 

Path traversal in Apache Ant - CVE-2026-78254

Published: September 7, 2026


Vulnerability identifier: #VU147210
CSH Severity: Medium
CVSS v4: 5.6 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-78254
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Apache Ant

How to mitigate CVE-2026-78254

Install security update from vendor's website.

Apache Ant - update to 1.10.18

External References

Related Security Bulletins