CVE-2026-78254
Last modified
CVE-2026-78254 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apache | Ant | < 1.10.18 |
References
- https://lists.apache.org/thread/05s46qrlbhd06c6rsgvxh8zo0l4p9sczMailing List, Vendor Advisory
- https://www.openwall.com/lists/oss-security/2026/09/06/2Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-78254?
How severe is CVE-2026-78254?
How do I fix CVE-2026-78254?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-78247A vulnerability was found in SourceCodester Simple Online Fo…7.3
- CVE-2026-78248A vulnerability was determined in SourceCodester Simple Onli…7.3
- CVE-2026-78250A vulnerability was identified in bytebot-ai bytebot 0.0.1. …4.3
- CVE-2026-78251DJI drones contain an FTP service that uses hardcoded creden…9.3
- CVE-2026-78252GitLab has remediated an issue in GitLab CE/EE affecting all…8.2
- CVE-2026-78253Uncontrolled recursion in QXmlStreamReader::readElementText(…2.3
- CVE-2026-78255The HTTP media server running on DJI drones serves stored ph…8.7
- CVE-2026-78257Contributor PHP Object Injection in Booking and Rental Manag…8.8
- CVE-2026-78258Unauthenticated Broken Access Control in Booking and Rental …5.3
- CVE-2026-78259Unauthenticated Broken Authentication in WPLegalPages <= 3.7…7.3
- CVE-2026-78260Unauthenticated SQL Injection in Epayco <= 8.4.6 versions.9.3
- CVE-2026-78261Unauthenticated Cross Site Scripting (XSS) in Realtyna Organ…7.1
Are you affected by CVE-2026-78254?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
