CVE-2026-78254 Apache Ant
| Affected software | Apache Ant |
|---|---|
| Severity | 7.4 High CVSS 3.1 |
| Weakness | Relative path traversal (CWE-23) |
| Published | 7 Sep 2026 |
| Updated | 21 Oct 2026 |
Published 2 months ago. NVD often adds the list of affected products days or weeks after a CVE is published, and the other sources we check lag too. The scope and status here may change.
Description
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.
Exploitation status
No public exploit
No exploit has been reported in the sources we check.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 0.52% chance in 30 days
Waratek protection
Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.
A public code fix exists.
- Protection none
- Action feasible
- Review automated AI triage
- Record active
| Decided by | A researcher's recorded decision for this specific CVE |
|---|---|
| Finding | An AI triage run set this CVE's status to No exploit published. |
Waratek research note
written 2026-11-13Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.
Comments
Path traversal in the Ant ftp/scp download tasks (FTP.getFile, ScpFromMessage, ScpFromMessageBySftp): file names sent by the server escape the download folder. The Path Traversal rule never checks these names. A filesystem write rule only protects the folders it lists, so a malicious server can still overwrite any other file the build account can write.
- https://github.com/apache/ant/commit/07ee9c418e3bd3e7d0287fc9aaba3011e88f0dc2
- https://github.com/apache/ant/commit/9252566cab812c59a5695679ba11f497e85aabb0
- https://github.com/apache/ant/commit/3807d672ea18d9f8dafd5eb9b2fe1de05f664539
- https://github.com/apache/ant/commit/7809cdd503b94b1760eee4145af13655078dc302
Affected software and releases
Oracle advisories
| Advisory | Type | Quarter | Products Oracle names in its risk matrix |
|---|---|---|---|
| Oracle Critical Patch Update October 2026 ↗ | CPU | 2026-Q4 | Oracle Construction and Engineering / Platform (Apache Ant) (21.12.0-21.12.17, 22.12.0-22.12.15, 23.12.0-23.12.16, 24.12.0-24.12.16, 25.12.0-25.12.9) |
Oracle components and versions
| Family | Component | Versions, as Oracle lists them | Read as |
|---|---|---|---|
| Oracle Construction and Engineering | Platform (Apache Ant) | 21.12.0-21.12.17, 22.12.0-22.12.15, 23.12.0-23.12.16, 24.12.0-24.12.16, 25.12.0-25.12.9 |
Products and versions
1 product, 1 version entry| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | apache | ant | generic | < 1.10.18 |
References
| URL | Tags |
|---|---|
| https://lists.apache.org/thread/05s46qrlbhd06c6rsgvxh8zo0l4p9scz | Mailing List, Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/09/06/2 | Mailing List, Third Party Advisory |
Timeline
Timeline
| Published | 2026-09-07 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-09-09 | NVD's own last-modified date for this record. |
| Last VRT activity | 2026-10-21 | Most recent commit touching this CVE's classification, patch or rule file. |
| Classification created | 2026-11-13 | First commit adding this CVE's research note. |