cve.bz

CVE-2026-78254 apache ant: Relative Path Traversal

7.4 highEPSS 0.5%

High (7.4) in apache ant. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-78254 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-78254?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-78254?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-78254 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Antfrom 1.2 before 1.10.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13antno fix listedDEBIAN-CVE-2026-78254
Debian14ant1.10.18-1DEBIAN-CVE-2026-78254
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 moreantno fix listedUBUNTU-CVE-2026-78254
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreobjectweb-asm9.10.1-150200.3.20.3SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morebyte-buddy1.18.8-150200.5.13.2SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morejunit55.14.4-150200.3.15.15SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morejunit5-minimal5.14.4-150200.3.15.10SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreopentest4j1.2.0-150200.3.6.4SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morepicocli4.7.6-150200.3.19.2SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreunivocity-parsers2.9.1-150200.3.9.4SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreant, ant-antlr, ant-junit and 1 more1.10.18-150200.4.31.3SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreant-contrib1.0b3-150200.11.17.1SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreantlr2.7.7-150200.18.10.2SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreassertj-core3.27.7-150200.5.11.8SUSE-SU-2026:4677-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morebsf2.4.0-150200.13.8.2SUSE-SU-2026:4677-1
31 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0ant, ant-antlr, ant-junit and 1 more1.10.18-160000.1.1openSUSE-SU-2026:21891-1
openSUSETumbleweedant1.10.18-2.1openSUSE-SU-2026:11793-1
Alpinev3.24apache-ant1.10.18-r0ALPINE-CVE-2026-78254
Azure Linux3ant1.10.18-1AZL-99972
Alpaquita23, 25apache-antno fix listedBELL-CVE-2026-78254
Alpaquitastreamapache-ant1.10.18-r0BELL-CVE-2026-78254

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact flaw in Apache Ant's `ftp` and `scp` tasks allows an attacker to write arbitrary files outside the intended download directory. This occurs when an Ant user connects to a malicious remote server or is subject to a machine-in-the-middle attack, enabling path traversal. Successful exploitation is limited to the privileges of the user executing Ant.

Red Hat's mitigation

To mitigate this vulnerability, users of Apache Ant's `scp` and `ftp` tasks should ensure that server identity checks are not bypassed. For `ftp` tasks not utilizing `ftps`, it is recommended to configure the tasks to use `ftps` to enhance security against machine-in-the-middle attacks.

ProductPackageStateAdvisory
OpenShift Developer Tools and Services 4.12ocp-tools-4/jenkins-rhel8:1792044326Fixed 2026-10-22RHSA-2026:88152
OpenShift Developer Tools and Services 4.13ocp-tools-4/jenkins-rhel8:1792044327Fixed 2026-10-22RHSA-2026:88149
OpenShift Developer Tools and Services 4.14ocp-tools-4/jenkins-rhel8:1792044382Fixed 2026-10-22RHSA-2026:88151
OpenShift Developer Tools and Services 4.15ocp-tools-4/jenkins-rhel8:1792044386Fixed 2026-10-22RHSA-2026:88150
OpenShift Developer Tools and Services 4.16ocp-tools-4/jenkins-rhel9:1792040287Fixed 2026-10-22RHSA-2026:88156
OpenShift Developer Tools and Services 4.17ocp-tools-4/jenkins-rhel9:1792040131Fixed 2026-10-22RHSA-2026:88159
OpenShift Developer Tools and Services 4.18ocp-tools-4/jenkins-rhel9:1792041514Fixed 2026-10-22RHSA-2026:88153
OpenShift Developer Tools and Services 4.19ocp-tools-4/jenkins-rhel9:1792040733Fixed 2026-10-22RHSA-2026:88158
OpenShift Developer Tools and Services 4.20ocp-tools-4/jenkins-rhel9:1792040081Fixed 2026-10-22RHSA-2026:88157
OpenShift Developer Tools and Services 4.21ocp-tools-4/jenkins-rhel9:1792040096Fixed 2026-10-22RHSA-2026:88155
Migration Toolkit for Applications 8mta/mta-cli-rhel9Affected
Migration Toolkit for Applications 8mta/mta-java-external-provider-rhel9Affected
OpenShift Developer Tools and ServicesjenkinsAffected
Red Hat build of Apicurio Registry 3antAffected
Red Hat Enterprise Linux 10antUnder investigation
Red Hat Enterprise Linux 10maven-plugin-toolsNot affected
Red Hat Enterprise Linux 10tomcat-jakartaee-migrationFix deferred
Red Hat Enterprise Linux 6antWill not fix
Red Hat Enterprise Linux 6batikWill not fix
Red Hat Enterprise Linux 6ecjAffected
28 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-78254.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON