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

[CVE catalog]

Severity
High · CVSS 8.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianantsid1.10.18-1fixed
Debianantforky1.10.18-1fixed
Debiananttrixie1.10.15-1vulnerable
Debianantbookworm1.10.13-1vulnerable
CpeantNot reported1.10.18fixed
Opensuseanttumbleweed1.10.18-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianantsourcesid1.10.18-1not yet assignedNot reported[1147425]
Debianantsourceforky1.10.18-1not yet assignedNot reported[1147425]
Debianantsourcetrixie(unfixed)not yet assignedNot reported[1147425]
Debianantsourcebookworm(unfixed)not yet assignedNot reported[1147425]
CpeantcpeNot reported1.10.18Not reportedNVD-CVE-2026-78254Not reported
Opensuseantrpmtumbleweed1.10.18-2.1Not reportedOPENSUSE-SU-2026:11793-1Not reported

[Debian bug #1147425]

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 · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.13-1 · all · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

  • [ant-doc]Affected

    Source package: [ant]

    Details (4)
    • 1.10.13-1 · all · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.13-1 · all · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

  • [ant-optional]Affected

    Source package: [ant]

    Details (4)
    • 1.10.13-1 · all · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.13-1 · all · bookworm

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

    • 1.10.15-1~bpo12+1 · all · bookworm-backports

      Affected

      nvd · ant · debian · bookworm; nvd · ant · debian · 12

[Debian 13 (Trixie)]

  • [ant]Affected
    Details (2)
    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

  • [ant-doc]Affected

    Source package: [ant]

    Details (2)
    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

  • [ant-optional]Affected

    Source package: [ant]

    Details (2)
    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

    • 1.10.15-1 · all · trixie

      Affected

      nvd · ant · debian · 13

[openSUSE Tumbleweed]

  • [ant]Affected

    Source package: [ant]

    Details (1)
    • 1.10.15-3.3 · noarch · tumbleweed

      Affected · Fixed: 1.10.18-2.1

      nvd · ant · opensuse · tumbleweed

  • [ant-jmf]Unknown

    Source package: [ant]

    Details (1)
    • 1.10.15-3.3 · noarch · tumbleweed

      Unknown · Fixed: 1.10.18-2.1

      Version impact unknown

      nvd · ant · opensuse · tumbleweed

  • [ant-scripts]Unknown

    Source package: [ant]

    Details (1)
    • 1.10.15-3.3 · noarch · tumbleweed

      Unknown · Fixed: 1.10.18-2.1

      Version impact unknown

      nvd · ant · opensuse · tumbleweed

  • [ant-swing]Unknown

    Source package: [ant]

    Details (1)
    • 1.10.15-3.3 · noarch · tumbleweed

      Unknown · Fixed: 1.10.18-2.1

      Version impact unknown

      nvd · ant · opensuse · tumbleweed

Observed:

References