WaratekVRT Sign in

CVE-2026-78254 Apache Ant

Affected softwareApache Ant
Severity7.4 High CVSS 3.1
WeaknessRelative path traversal (CWE-23)
Published7 Sep 2026
Updated21 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.

  • 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

No exploit published

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-13

Written 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.

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts 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

FamilyComponentVersions, as Oracle lists themRead 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
SourceVendorProductSchemeAffected versions
nvd apache ant generic < 1.10.18

References

URLTags
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

Published2026-09-07By the CVE Program.
NVD record modified2026-09-09NVD's own last-modified date for this record.
Last VRT activity2026-10-21Most recent commit touching this CVE's classification, patch or rule file.
Classification created2026-11-13First commit adding this CVE's research note.