CVE-2026-78254Apache Ant relative path traversal
CVSS score
7.4
High
CVSS 3.1 from 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit probability (EPSS)
0.52%
0.52% chance of exploitation in the next 30 days, higher than 45.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security@apache.org
How to fix it, step by step
Check whether you're affected
Find every system running Apache Ant and compare its version with the affected versions.
Update to a fixed version
- Update Apache Ant to 1.10.18 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
| Affected products | Versions |
|---|---|
| Apache Ant | < 1.10.18 |
| Apache Apache Ant | ≥ 1.2, < 1.10.18 |
Weakness
- CWE-23 relative path traversal
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-78254 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.5% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-78254?
CVE-2026-78254 has a CVSS 3.1 base score of 7.4 (high).
Which versions are affected?
Apache Ant (< 1.10.18), Apache Apache Ant (≥ 1.2, < 1.10.18)
Is there a patch for CVE-2026-78254?
The official record links to vendor advisories or patches; see “What to do” above.
References
- lists.apache.org/thread/05s46qrlbhd06c6rsgvxh8zo0l4p9scz(Mailing List, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/09/06/2(Mailing List, Third Party Advisory)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.