CVE-2026-78254 Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
42 packages: 5 fixed, 37 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ant(Debian 12) | = 1.10.13-1; = 1.10.13-2; = 1.10.14-1; = 1.10.14-1~bpo12+1 +7 more | No fix listed | No fix yet |
| debian/ant(Debian 13) | = 1.10.15-1; = 1.10.16-1; = 1.10.17-1; = 1.10.18-1 +2 more | No fix listed | No fix yet |
| redhat/ant(Red Hat apicurio_registry 3) | All versions | No fix listed | No fix yet |
| redhat/ant(Red Hat red_hat_single_sign_on 7) | All versions | No fix listed | No fix yet |
| redhat/ant(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/batik(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/ecj(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/groovy(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/jenkins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/jmc(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/jws6-ecj(Red Hat jboss_enterprise_web_server 6) | All versions | No fix listed | No fix yet |
| redhat/jws6-tomcat-jakartaee-migration(Red Hat jboss_enterprise_web_server 6) | All versions | No fix listed | No fix yet |
| redhat/jws7-ecj(Red Hat jboss_enterprise_web_server 7) | All versions | No fix listed | No fix yet |
| redhat/maven-antrun-plugin(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/maven-invoker-plugin(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/maven-shared-jar(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/mta/mta-cli-rhel9(Red Hat migration_toolkit_applications 8) | All versions | No fix listed | No fix yet |
| redhat/mta/mta-java-external-provider-rhel9(Red Hat migration_toolkit_applications 8) | All versions | No fix listed | No fix yet |
| redhat/objectweb-anttask(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/objectweb-anttask(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044326(Red Hat ocp_tools 4.12 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044327(Red Hat ocp_tools 4.13 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044382(Red Hat ocp_tools 4.14 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8:1792044386(Red Hat ocp_tools 4.15 el8) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040081(Red Hat ocp_tools 4.20 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040096(Red Hat ocp_tools 4.21 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040131(Red Hat ocp_tools 4.17 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040287(Red Hat ocp_tools 4.16 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040428(Red Hat ocp_tools 4.22 el9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9:1792040733(Red Hat ocp_tools 4.19 el9) | All versions | No fix listed | No fix yet |
… and 12 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.ant/ant(Maven) | >= 1.2, < 1.10.18 | 1.10.18 |
| redhat/ocp-tools-4/jenkins-rhel8:1792044326(Red Hat:ocp_tools:4.12::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044327(Red Hat:ocp_tools:4.13::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044382(Red Hat:ocp_tools:4.14::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8:1792044386(Red Hat:ocp_tools:4.15::el8) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040287(Red Hat:ocp_tools:4.16::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040131(Red Hat:ocp_tools:4.17::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792041514(Red Hat:ocp_tools:4.18::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040733(Red Hat:ocp_tools:4.19::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040081(Red Hat:ocp_tools:4.20::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040096(Red Hat:ocp_tools:4.21::el9) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9:1792040428(Red Hat:ocp_tools:4.22::el9) | All versions | No fix listed |
| redhat/mta/mta-cli-rhel9(Red Hat:migration_toolkit_applications:8) | All versions | No fix listed |
| redhat/mta/mta-java-external-provider-rhel9(Red Hat:migration_toolkit_applications:8) | All versions | No fix listed |
| redhat/jenkins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/ant(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| redhat/ant(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/tomcat-jakartaee-migration(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/ant(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/batik(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/ecj(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/objectweb-anttask(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/ant(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/groovy(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/maven-antrun-plugin(Red Hat:rhel_els:7) | All versions | No fix listed |
Show 41 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/maven-invoker-plugin(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/maven-shared-jar(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/objectweb-anttask(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/plexus-ant-factory(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/ant:1.10/ant(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/javapackages-tools:201801/ant(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/ant(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/jmc(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/jws6-ecj(Red Hat:jboss_enterprise_web_server:6) | All versions | No fix listed |
| redhat/jws6-tomcat-jakartaee-migration(Red Hat:jboss_enterprise_web_server:6) | All versions | No fix listed |
| redhat/jws7-ecj(Red Hat:jboss_enterprise_web_server:7) | All versions | No fix listed |
| redhat/ant(Red Hat:red_hat_single_sign_on:7) | All versions | No fix listed |
| debian/ant(Debian:12) | All versions | No fix listed |
| debian/ant(Debian:12) | = 1.10.13-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.13-2 | No fix listed |
| debian/ant(Debian:12) | = 1.10.14-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.14-1~bpo12+1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.15-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.15-1~bpo12+1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.16-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.17-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.18-1 | No fix listed |
| debian/ant(Debian:12) | = 1.10.18-1~bpo13+1 | No fix listed |
| debian/ant(Debian:13) | All versions | No fix listed |
| debian/ant(Debian:13) | = 1.10.15-1 | No fix listed |
| debian/ant(Debian:13) | = 1.10.16-1 | No fix listed |
| debian/ant(Debian:13) | = 1.10.17-1 | No fix listed |
| debian/ant(Debian:13) | = 1.10.18-1 | No fix listed |
| debian/ant(Debian:13) | = 1.10.18-1~bpo13+1 | No fix listed |
| debian/ant(Debian:14) | < 1.10.18-1 | 1.10.18-1 |
| debian/ant(Debian:14) | = 1.10.15-1 | No fix listed |
| debian/ant(Debian:14) | = 1.10.16-1 | No fix listed |
| debian/ant(Debian:14) | = 1.10.17-1 | No fix listed |
| debian/ant(Debian:14) | = 1.10.18-1~bpo13+1 | No fix listed |
| ubuntu/ant(Ubuntu:22.04) | All versions | No fix listed |
| alpine/apache-ant(Alpine:v3.24) | < 1.10.18-r0 | 1.10.18-r0 |
| ubuntu/ant(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ant(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ant(Ubuntu:26.10) | All versions | No fix listed |
| apache ant | < 1.10.18 | 1.10.18 |
| azure linux ant(Azure Linux:3.0) | < 1.10.18-1 | 1.10.18-1 |
References
- MSRC Security Update Guide vendor-advisory
- Security Update patch
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com mailing-list third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:88152 patch vendor-advisory
- RHSA-2026:88149 patch vendor-advisory
- RHSA-2026:88151 patch vendor-advisory
- RHSA-2026:88150 patch vendor-advisory
- RHSA-2026:88156 patch vendor-advisory
- RHSA-2026:88159 patch vendor-advisory
- RHSA-2026:88153 patch vendor-advisory
- RHSA-2026:88158 patch vendor-advisory
- RHSA-2026:88157 patch vendor-advisory
- RHSA-2026:88155 patch vendor-advisory
- RHSA-2026:88154 patch vendor-advisory
- Red Hat Bugzilla 2529299 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-78254 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-72281 third-party-advisory