
CVE catalog
CVE-2026-78254
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 down
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.52% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ant | sid | 1.10.18-1 | fixed |
| Debian | ant | forky | 1.10.18-1 | fixed |
| Debian | ant | trixie | 1.10.15-1 | vulnerable |
| Debian | ant | bookworm | 1.10.13-1 | vulnerable |
| Cpe | ant | Not reported | 1.10.18 | fixed |
| Opensuse | ant | tumbleweed | 1.10.18-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ant | source | sid | 1.10.18-1 | not yet assigned | Not reported | [1147425] |
| Debian | ant | source | forky | 1.10.18-1 | not yet assigned | Not reported | [1147425] |
| Debian | ant | source | trixie | (unfixed) | not yet assigned | Not reported | [1147425] |
| Debian | ant | source | bookworm | (unfixed) | not yet assigned | Not reported | [1147425] |
| Cpe | ant | cpe | Not reported | 1.10.18 | Not reported | NVD-CVE-2026-78254 | Not reported |
| Opensuse | ant | rpm | tumbleweed | 1.10.18-2.1 | Not reported | OPENSUSE-SU-2026:11793-1 | Not reported |
Notes
[trixie] ant: Minor issue [bookworm] ant: Minor issue, need to compromise a server trusted in Ant-based builds
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ant]Affected
Details (4)
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
- [ant-doc]Affected
Source package: [ant]
Details (4)
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
- [ant-optional]Affected
Source package: [ant]
Details (4)
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.13-1· all · bookwormAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
1.10.15-1~bpo12+1· all · bookworm-backportsAffected
nvd · ant · debian · bookworm; nvd · ant · debian · 12
[Debian 13 (Trixie)]
- [ant]Affected
Details (2)
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
- [ant-doc]Affected
Source package: [ant]
Details (2)
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
- [ant-optional]Affected
Source package: [ant]
Details (2)
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
1.10.15-1· all · trixieAffected
nvd · ant · debian · 13
[openSUSE Tumbleweed]
- [ant]Affected
Source package: [ant]
Details (1)
1.10.15-3.3· noarch · tumbleweedAffected · Fixed:
1.10.18-2.1nvd · ant · opensuse · tumbleweed
- [ant-jmf]Unknown
Source package: [ant]
Details (1)
1.10.15-3.3· noarch · tumbleweedUnknown · Fixed:
1.10.18-2.1Version impact unknown
nvd · ant · opensuse · tumbleweed
- [ant-scripts]Unknown
Source package: [ant]
Details (1)
1.10.15-3.3· noarch · tumbleweedUnknown · Fixed:
1.10.18-2.1Version impact unknown
nvd · ant · opensuse · tumbleweed
- [ant-swing]Unknown
Source package: [ant]
Details (1)
1.10.15-3.3· noarch · tumbleweedUnknown · Fixed:
1.10.18-2.1Version impact unknown
nvd · ant · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11793-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-78254]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-78254]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11793-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-78254]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-78254.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3201.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]