CVEfocus › CVE database › CVE-2026-78254

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

CVSS 7.4 HighEPSS 0.8% (higher than 51% of CVEs)Published 2026-09-07Updated 2026-09-08Assigner: apache

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.

CWE-23

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
22Fix pending
96Under investigation
31Will not fix
43Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10antFix pendingUBUNTU-CVE-2026-78254
Ubuntu 26.04antUnder investigationUBUNTU-CVE-2026-78254
Ubuntu 24.04antUnder investigationUBUNTU-CVE-2026-78254
Ubuntu 22.04antUnder investigationUBUNTU-CVE-2026-78254
Ubuntu 20.04antFix pendingUBUNTU-CVE-2026-78254
Ubuntu 18.04antFix pendingUBUNTU-CVE-2026-78254
Ubuntu 16.04antFix pendingUBUNTU-CVE-2026-78254
Ubuntu 14.04antFix pendingUBUNTU-CVE-2026-78254
Debian 14antFixed1.10.18-1DEBIAN-CVE-2026-78254
Debian 13antFix pendingDEBIAN-CVE-2026-78254
Debian 12antFix pendingDEBIAN-CVE-2026-78254
Red Hat Enterprise Linux 10antUnder investigation
Red Hat Enterprise Linux 10ant-antlrUnder investigation
Red Hat Enterprise Linux 10ant-apache-bcelUnder investigation
Red Hat Enterprise Linux 10ant-apache-bsfUnder investigation
Red Hat Enterprise Linux 10ant-apache-oroUnder investigation
Red Hat Enterprise Linux 10ant-apache-regexpUnder investigation
Red Hat Enterprise Linux 10ant-apache-resolverUnder investigation
Red Hat Enterprise Linux 10ant-apache-xalan2Under investigation
Red Hat Enterprise Linux 10ant-commons-loggingUnder investigation
Red Hat Enterprise Linux 10ant-commons-netUnder investigation
Red Hat Enterprise Linux 10ant-imageioUnder investigation
Red Hat Enterprise Linux 10ant-jakartamailUnder investigation
Red Hat Enterprise Linux 10ant-javadocUnder investigation
Red Hat Enterprise Linux 10ant-jdependUnder investigation
Red Hat Enterprise Linux 10ant-jmfUnder investigation
Red Hat Enterprise Linux 10ant-jschUnder investigation
Red Hat Enterprise Linux 10ant-junitUnder investigation
Red Hat Enterprise Linux 10ant-junit5Under investigation
Red Hat Enterprise Linux 10ant-libUnder investigation
Red Hat Enterprise Linux 10ant-manualUnder investigation
Red Hat Enterprise Linux 10ant-openjdk21Under investigation
Red Hat Enterprise Linux 10ant-swingUnder investigation
Red Hat Enterprise Linux 10ant-testutilUnder investigation
Red Hat Enterprise Linux 10ant-unboundUnder investigation
Red Hat Enterprise Linux 10ant-xzUnder investigation
Red Hat Enterprise Linux 10maven-plugin-annotationsNot affected
Red Hat Enterprise Linux 10maven-plugin-pluginNot affected
Red Hat Enterprise Linux 10maven-plugin-toolsNot affected
Red Hat Enterprise Linux 10maven-plugin-tools-annotationsNot affected
Red Hat Enterprise Linux 10maven-plugin-tools-apiNot affected
Red Hat Enterprise Linux 10maven-plugin-tools-generatorsNot affected
Red Hat Enterprise Linux 10maven-plugin-tools-javaNot affected
Red Hat Enterprise Linux 10maven-plugin-tools-javadocNot affected
Red Hat Enterprise Linux 10tomcat-jakartaee-migrationFix pending
Fix deferred
Red Hat Enterprise Linux 9antUnder investigation
Red Hat Enterprise Linux 9ant-antlrUnder investigation
Red Hat Enterprise Linux 9ant-apache-bcelUnder investigation
Red Hat Enterprise Linux 9ant-apache-bsfUnder investigation
Red Hat Enterprise Linux 9ant-apache-oroUnder investigation
Red Hat Enterprise Linux 9ant-apache-regexpUnder investigation
Red Hat Enterprise Linux 9ant-apache-resolverUnder investigation
Red Hat Enterprise Linux 9ant-apache-xalan2Under investigation
Red Hat Enterprise Linux 9ant-commons-loggingUnder investigation
Red Hat Enterprise Linux 9ant-commons-netUnder investigation
Red Hat Enterprise Linux 9ant-javamailUnder investigation
Red Hat Enterprise Linux 9ant-jdependUnder investigation
Red Hat Enterprise Linux 9ant-jmfUnder investigation
Red Hat Enterprise Linux 9ant-jschUnder investigation
Red Hat Enterprise Linux 9ant-junitUnder investigation
Red Hat Enterprise Linux 9ant-junit5Under investigation
Red Hat Enterprise Linux 9ant-libUnder investigation
Red Hat Enterprise Linux 9ant-manualUnder investigation
Red Hat Enterprise Linux 9ant-openjdk11Under investigation
Red Hat Enterprise Linux 9ant-openjdk17Under investigation
Red Hat Enterprise Linux 9ant-openjdk21Under investigation
Red Hat Enterprise Linux 9ant-openjdk8Under investigation
Red Hat Enterprise Linux 9ant-swingUnder investigation
Red Hat Enterprise Linux 9ant-testutilUnder investigation
Red Hat Enterprise Linux 9ant-unboundUnder investigation
Red Hat Enterprise Linux 9ant-xzUnder investigation
Red Hat Enterprise Linux 9jmcFix pending
Affected
Red Hat Enterprise Linux 9maven-plugin-annotationsNot affected
Red Hat Enterprise Linux 9maven-plugin-pluginNot affected
Red Hat Enterprise Linux 9maven-plugin-tools-annotationsNot affected
Red Hat Enterprise Linux 9maven-plugin-tools-apiNot affected
Red Hat Enterprise Linux 9maven-plugin-tools-generatorsNot affected
Red Hat Enterprise Linux 9maven-plugin-tools-javaNot affected
Red Hat Enterprise Linux 8antUnder investigation
Red Hat Enterprise Linux 8ant-antlrUnder investigation
Red Hat Enterprise Linux 8ant-apache-bcelUnder investigation
Red Hat Enterprise Linux 8ant-apache-bsfUnder investigation
Red Hat Enterprise Linux 8ant-apache-log4jUnder investigation
Red Hat Enterprise Linux 8ant-apache-oroUnder investigation
Red Hat Enterprise Linux 8ant-apache-regexpUnder investigation
Red Hat Enterprise Linux 8ant-apache-resolverUnder investigation
Red Hat Enterprise Linux 8ant-apache-xalan2Under investigation
Red Hat Enterprise Linux 8ant-commons-loggingUnder investigation
Red Hat Enterprise Linux 8ant-commons-netUnder investigation
Red Hat Enterprise Linux 8ant-javadocUnder investigation
Red Hat Enterprise Linux 8ant-javamailUnder investigation
Red Hat Enterprise Linux 8ant-jdependUnder investigation
Red Hat Enterprise Linux 8ant-jmfUnder investigation
Red Hat Enterprise Linux 8ant-jschUnder investigation
Red Hat Enterprise Linux 8ant-junitUnder investigation
Red Hat Enterprise Linux 8ant-libUnder investigation
Red Hat Enterprise Linux 8ant-manualUnder investigation
Red Hat Enterprise Linux 8ant-swingUnder investigation
Red Hat Enterprise Linux 8ant-testutilUnder investigation
Red Hat Enterprise Linux 8ant-xzUnder investigation
Red Hat Enterprise Linux 8glassfish-jaxbNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-bomNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-bom-extNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-codemodelNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-codemodel-annotation-compilerNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-codemodel-parentNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-coreNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-external-parentNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-parentNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-rngomNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-runtimeNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-runtime-parentNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-txw-parentNot affected
Red Hat Enterprise Linux 8glassfish-jaxb-txw2Not affected
Red Hat Enterprise Linux 8maven-antrun-pluginNot affected
Red Hat Enterprise Linux 8maven-antrun-plugin-javadocNot affected
Red Hat Enterprise Linux 8maven-script-interpreterNot affected
Red Hat Enterprise Linux 8maven-script-interpreter-javadocNot affected
Red Hat Enterprise Linux 8plexus-ant-factoryNot affected
Red Hat Enterprise Linux 8plexus-ant-factory-javadocNot affected
Red Hat Enterprise Linux 8testngNot affected
Red Hat Enterprise Linux 8testng-javadocNot affected
Red Hat Enterprise Linux 7antUnder investigation
Red Hat Enterprise Linux 7ant-antlrUnder investigation
Red Hat Enterprise Linux 7ant-apache-bcelUnder investigation
Red Hat Enterprise Linux 7ant-apache-bsfUnder investigation
Red Hat Enterprise Linux 7ant-apache-log4jUnder investigation
Red Hat Enterprise Linux 7ant-apache-oroUnder investigation
Red Hat Enterprise Linux 7ant-apache-regexpUnder investigation
Red Hat Enterprise Linux 7ant-apache-resolverUnder investigation
Red Hat Enterprise Linux 7ant-apache-xalan2Under investigation
Red Hat Enterprise Linux 7ant-commons-loggingUnder investigation
Red Hat Enterprise Linux 7ant-commons-netUnder investigation
Red Hat Enterprise Linux 7ant-javadocUnder investigation
Red Hat Enterprise Linux 7ant-javamailUnder investigation
Red Hat Enterprise Linux 7ant-jdependUnder investigation
Red Hat Enterprise Linux 7ant-jmfUnder investigation
Red Hat Enterprise Linux 7ant-jschUnder investigation
Red Hat Enterprise Linux 7ant-junitUnder investigation
Red Hat Enterprise Linux 7ant-manualUnder investigation
Red Hat Enterprise Linux 7ant-swingUnder investigation
Red Hat Enterprise Linux 7ant-testutilUnder investigation
Red Hat Enterprise Linux 7codemodelNot affected
Red Hat Enterprise Linux 7codemodel-javadocNot affected
Red Hat Enterprise Linux 7ecjNot affected
Red Hat Enterprise Linux 7groovyFix pending
Affected
Red Hat Enterprise Linux 7groovy-javadocFix pending
Affected
Red Hat Enterprise Linux 7jandexNot affected
Red Hat Enterprise Linux 7jandex-javadocNot affected
Red Hat Enterprise Linux 7maven-antrun-pluginFix pending
Affected
Red Hat Enterprise Linux 7maven-antrun-plugin-javadocFix pending
Affected
Red Hat Enterprise Linux 7maven-invoker-pluginFix pending
Affected
Red Hat Enterprise Linux 7maven-invoker-plugin-javadocFix pending
Affected
Red Hat Enterprise Linux 7maven-shared-jarFix pending
Affected
Red Hat Enterprise Linux 7maven-shared-jar-javadocFix pending
Affected
Red Hat Enterprise Linux 7objectweb-anttaskFix pending
Affected
Red Hat Enterprise Linux 7objectweb-anttask-javadocFix pending
Affected
Red Hat Enterprise Linux 7plexus-ant-factoryFix pending
Affected
Red Hat Enterprise Linux 7plexus-ant-factory-javadocFix pending
Affected
Red Hat Enterprise Linux 7txw2Not affected
Red Hat Enterprise Linux 7txw2-javadocNot affected
Red Hat Enterprise Linux 6antWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-antlrWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-bcelWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-bsfWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-log4jWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-oroWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-regexpWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-apache-resolverWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-commons-loggingWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-javamailWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-jdependWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-jmfWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-jschWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-junitWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-manualWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-nodepsWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-scriptsWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-swingWill not fix
Will not fix
Red Hat Enterprise Linux 6ant-traxWill not fix
Will not fix
Red Hat Enterprise Linux 6batikWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-demoWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-rasterizerWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-slideshowWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-squiggleWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-svgppWill not fix
Will not fix
Red Hat Enterprise Linux 6batik-ttf2svgWill not fix
Will not fix
Red Hat Enterprise Linux 6ecjFix pending
Affected
Red Hat Enterprise Linux 6objectweb-anttaskWill not fix
Will not fix
Red Hat Enterprise Linux 6objectweb-anttask-javadocWill not fix
Will not fix
Alpine Linux 3.24apache-antFixed1.10.18-r0ALPINE-CVE-2026-78254

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.