CVE-2026-78254
HIGHDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Exploit Intelligence
Moderate risk: more likely to be exploited than 44% of all known CVEs.
References
Related Vulnerabilities
Other CWE-23 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-27199 | High | 7.3 | 100% | KEV + Ransom | Fix |
| CVE-2020-5410 | High | 7.5 | 96% | KEV | Fix |
| CVE-2021-40870 | Critical | 9.8 | 93% | KEV | Fix |
| CVE-2025-64446 | Critical | 9.8 | 92% | KEV | Fix |
| CVE-2020-5405 | Medium | 6.5 | 69% | - | Fix |
| CVE-2025-55752 | High | 7.5 | 67% | - | Fix |
Common questions
How do I fix CVE-2026-78254?
Upgrade ant on debian unstable to 1.10.18-1 or later.
Is CVE-2026-78254 being actively exploited?
Not that we know of. CVE-2026-78254 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.54% is the estimated probability that it will be exploited in the next 30 days. That is higher than 44% of all scored CVEs.
How severe is CVE-2026-78254?
CVE-2026-78254 has a CVSS v3 base score of 7.4, rated important. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-78254 affect?
Published advisories record a fix for ant (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2026-78254
Markdown
[](https://tridentstack.com/cve/CVE-2026-78254)HTML
<a href="https://tridentstack.com/cve/CVE-2026-78254"><img src="https://tridentstack.com/cve/badge/CVE-2026-78254.svg" alt="CVE-2026-78254"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-09.