VDB

CVE-2026-78254

CVE-2026-78254 PUBLISHED CVSS 9.300000190734863 CRITICAL

Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write

Reported by apache · Published September 7, 2026

ant is fixed in 1.10.18 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.apache.ant:antMaven Central1.10.18
ant-junitAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-jmfAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
apache-antAlpine1.10.18-r0
ant-javamailAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-apache-bsfAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-apache-log4jAmazon Linux1.9.16-1.amzn2.0.2
antAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-apache-xalan2Amazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-apache-resolverAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2
ant-xzAmazon Linux1.10.12-5.amzn2023.0.5
ant-apache-regexpAmazon Linux1.10.12-5.amzn2023.0.5, 1.9.16-1.amzn2.0.2

15 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
9.300000190734863
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
Apache Software FoundationApache Ant1.2
amazon:2ant-junit0
amazon:2ant-jmf0
alpineapache-ant0
amazon:2ant-javamail0
amazon:2023ant-apache-bsf0
amazon:2023ant-jmf0
amazon:2ant-apache-log4j0
amazon:2023ant0
amazon:2023ant-junit0
amazon:2ant0
amazon:2023ant-apache-xalan20
amazon:2ant-apache-resolver0
amazon:2023ant-xz0
amazon:2ant-apache-xalan20
amazon:2023ant-apache-regexp0
amazon:2023ant-imageio0
amazon:2023ant-javamail0
amazon:2ant-commons-net0
amazon:2023ant-manual0

…and 27 more

Timeline

  • Sep 7, 2026 CVE Published
  • Sep 7, 2026 EPSS Score (30 in total, the first dated here)
  • Sep 17, 2026 CVE Updated
  • Oct 30, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-78254
vulnetix vdb fixes CVE-2026-78254

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-78254/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›