CVE-2026-78254
CVE-2026-78254 · Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write
CVSS 7.4 · High · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- apache antUpdate to 1.10.18
- apache-ant Alpine 3.24Update to 1.10.18-r0
- ant Debian 12No fix published
- ant Debian 13No fix published
- and 9 more
Check the installed version:
apk list -I -o apache-antdpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ant"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
The ftp and scp tasks of Apache Ant can download files from a remote server. A malicious server can provide relative paths that allow it to write outside of the dedicated target directory for the download, making it possible to overwrite files of the attacker's choice using the permissions of the user running Ant in versions prior to Ant 1.10.18.
In order to exploit this vulnerability, the server would either have to be malicious or be subject to a machine-in-the-middle attack. Additionally in the case of scp or the ftp task using ftps the server must pass the server identity checks performed by the tasks.
For ftp tasks not using ftps a malicious server could act as a machine-in-the-middle to provide malicious files.
Starting with Ant 1.10.18 both tasks will prevent writing outside of the destination directory by default. An option is available to disable this behavior in the unlikely case that the old behavior is required by existing build files.
Mitigations:
Users of scp and ftp (when using ftps) in any version of Ant should not bypass server identity checks. Users of ftp not using ftps should switch to ftps where possible.
All users are recommended to upgrade to Apache Ant 1.10.18, which fixes this issue.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2026:4677-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Module for Package Hub 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
- openSUSE-SU-2026:21891-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11793-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
apache ant
- Versions
- ≥ 1.2, < 1.10.18: Affected (custom)
Update to 1.10.18
apache-ant Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 1.10.18-r0
Update to 1.10.18-r0
ant Debian 12
- Versions
- 1.10.13-1
- 1.10.13-2
- 1.10.14-1
- 1.10.14-1~bpo12+1
- 1.10.15-1
- 1.10.15-1~bpo12+1
All versions (10)
- 1.10.16-1
- 1.10.17-1
- 1.10.18-1
- 1.10.18-1~bpo13+1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Debian 13
- Versions
- 1.10.15-1
- 1.10.16-1
- 1.10.17-1
- 1.10.18-1
- 1.10.18-1~bpo13+1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Debian 14
- Versions
- 1.10.15-1
- 1.10.16-1
- 1.10.17-1
- 1.10.18-1~bpo13+1
- Affected ranges
- ECOSYSTEM: < 1.10.18-1
Update to 1.10.18-1
ant Ubuntu Pro 14.04 LTS
- Versions
- 1.9.2-1
- 1.9.3-1
- 1.9.3-2
- 1.9.3-2build1
- 1.9.3-2ubuntu0.1
- 1.9.3-2ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu Pro 16.04 LTS
- Versions
- 1.9.6-1ubuntu1
- 1.9.6-1ubuntu1.1
- 1.9.6-1ubuntu1.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu Pro 18.04 LTS
- Versions
- 1.9.9-4
- 1.9.9-5
- 1.9.9-6
- 1.9.10-1
- 1.9.10-2
- 1.10.3-1
All versions (9)
- 1.10.3-1ubuntu0.1
- 1.10.5-3~18.04
- 1.10.5-3~18.04.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu Pro 20.04 LTS
- Versions
- 1.10.6-1
- 1.10.7-1
- 1.10.7-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu 22.04 LTS
- Versions
- 1.10.9-4
- 1.10.11-1
- 1.10.12-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu 24.04 LTS
- Versions
- 1.10.13-2
- 1.10.14-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu 26.10
- Versions
- 1.10.15-1build1
- 1.10.17-1
- 1.10.18-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ant Ubuntu 26.04 LTS
- Versions
- 1.10.15-1
- 1.10.15-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published