# CVE-2026-78254: Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-09-07 · Modified: 2026-09-08
- Aliases: UBUNTU-CVE-2026-78254, DEBIAN-CVE-2026-78254, openSUSE-SU-2026:11793-1, ALPINE-CVE-2026-78254, SUSE-SU-2026:5498-1
- Record: https://cvemate.com/vulnerability/CVE-2026-78254 · JSON: https://cvemate.com/vulnerability/CVE-2026-78254/json

## Description

```text
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.
```

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.52%, percentile 45.664%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache ant: ≥ 1.2, \< 1.10.18
- apache ant: \< 1.10.18
- alpine apache-ant (Alpine Linux): \< 1.10.18-r0
- debian ant (Debian): All versions (No fix recorded) \| \< 1.10.18-1
- ubuntu ant (Ubuntu): All versions (No fix recorded)
- opensuse ant&distro=openSUSE Tumbleweed (openSUSE): \< 1.10.18-2.1
- suse ant&distro=SUSE Linux Enterprise Server 12 SP5-LTSS (SUSE Linux Enterprise): \< 1.9.16-3.15.1
- suse ant&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 1.9.16-3.15.1

## References

- <https://lists.apache.org/thread/05s46qrlbhd06c6rsgvxh8zo0l4p9scz>
- <http://www.openwall.com/lists/oss-security/2026/09/06/2>
- <https://ubuntu.com/security/CVE-2026-78254>
- <https://www.cve.org/CVERecord?id=CVE-2026-78254>
- <https://www.openwall.com/lists/oss-security/2026/09/06/2>
- <https://github.com/apache/ant/commit/07ee9c418e3bd3e7d0287fc9aaba3011e88f0dc2>
- <https://github.com/apache/ant/commit/9252566cab812c59a5695679ba11f497e85aabb0>
- <https://github.com/apache/ant/commit/3807d672ea18d9f8dafd5eb9b2fe1de05f664539>
- <https://security-tracker.debian.org/tracker/CVE-2026-78254>
- <https://www.suse.com/security/cve/CVE-2026-78254>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78254>
- <https://security.alpinelinux.org/vuln/CVE-2026-78254>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20265498-1/>
- <https://bugzilla.suse.com/1280015>

---

Data as of 2026-12-05T05:06:22.106Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
