{"id":"CVE-2026-78254","title":"The ftp and scp tasks of Apache Ant can download files from a remote server","summary":"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…","severity":"high","cvss":7.4,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-23","CWE-22"],"vendor":"apache","product":"ant","affected":["ant < 1.10.18"],"patched":["ant 1.10.18"],"published":"2026-09-07","updated":"2026-09-09","sourceUpdated":"2026-09-09T13:29:39.243","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-78254","references":[{"url":"https://lists.apache.org/thread/05s46qrlbhd06c6rsgvxh8zo0l4p9scz","label":"security@apache.org"},{"url":"http://www.openwall.com/lists/oss-security/2026/09/06/2","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-78254.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-78254"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2529299"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-78254"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78254"}],"tags":["nvd","cve.org","csaf","vex","red-hat"],"epss":0.0054,"epssPercentile":0.44108,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-08T15:44:47.827022Z"},"scores":{"nvd":7.4,"vendor":6.8},"ingestedAt":"2026-09-08T15:33:26.975Z","slug":"CVE-2026-78254","body":"## Overview\n\nThe 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. \n\n\n\n\nIn 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.\n\n\n\n\nFor ftp tasks not using ftps a malicious server could act as a machine-in-the-middle to provide malicious files.\n\n\n\n\nStarting 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.\n\n\n\n\nMitigations:\n\n\n\n\nUsers 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.\n\n\n\n\nAll users are recommended to upgrade to Apache Ant 1.10.18, which fixes this issue.\n\n## Affected\n\n- `ant < 1.10.18`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `ant 1.10.18`\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · affected: Migration Toolkit for Applications 8, OpenShift Developer Tools and Services, Red Hat build of Apicurio Registry 3, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, … · no fix planned: Red Hat Enterprise Linux 10, Red Hat JBoss Web Server 6, Red Hat JBoss Web Server 7, Migration Toolkit for Applications 8, … · updated 2026-09-11 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-78254.json)","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":40.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":3301,"id":"CVE-2026-78254","ts":1788885294242,"field":"cvss","old":"8.1","new":"7.4"},{"seq":3235,"id":"CVE-2026-78254","ts":1788883137814,"field":"cvss","old":null,"new":"8.1"},{"seq":3234,"id":"CVE-2026-78254","ts":1788883137814,"field":"severity","old":"none","new":"high"}]}