Skip to content
Heist/ feed
Back to feed
High

ant — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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 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.

Products
ant
Affected versions
1.10.11-1, 1.10.12-1, 1.10.13-2, 1.10.14-1, 1.10.15-1, 1.10.15-1build1, 1.10.17-1, 1.10.18-1, 1.10.3-1, 1.10.3-1ubuntu0.1, 1.10.5-3~18.04, 1.10.5-3~18.04.1~esm1, 1.10.6-1, 1.10.7-1, 1.10.7-1ubuntu0.1~esm1, 1.10.9-4, 1.9.10-1, 1.9.10-2, 1.9.2-1, 1.9.3-1, 1.9.3-2, 1.9.3-2build1, 1.9.3-2ubuntu0.1, 1.9.3-2ubuntu0.1+esm1, 1.9.6-1ubuntu1, 1.9.6-1ubuntu1.1, 1.9.6-1ubuntu1.1+esm1, 1.9.9-4, 1.9.9-5, 1.9.9-6
Fixed versions
Not specified
CVEs
CVE-2026-78254
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:19 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-78254

core-osv · Original source

Published 7 Sept 2026, 08:17 UTC

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.

osv:UBUNTU-CVE-2026-78254

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

ant

Fixed versions: Not specified

Complete source record
{
  "id": "05c36a9039aa323efa8910a96ad8a76396ce40ac6cbdba8a58c24657aa6330c6",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-78254",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-78254",
    "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 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.",
    "evidence": "osv:UBUNTU-CVE-2026-78254",
    "products": [
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.9.3-2ubuntu0.1+esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.6-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.9.6-1ubuntu1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.9.6-1ubuntu1.1+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9.9-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.9-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.9-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.10-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.9.10-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.3-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.3-1ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.5-3~18.04",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.10.5-3~18.04.1~esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.6-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.10.7-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.10.7-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.9-4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.10.11-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.10.12-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.13-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.10.14-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.15-1build1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.10.17-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "1.10.18-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ant",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.10.15-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.10.15-1build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-78254",
      "aliases": [
        "UBUNTU-CVE-2026-78254"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "1.9.2-1",
            "1.9.3-1",
            "1.9.3-2",
            "1.9.3-2build1",
            "1.9.3-2ubuntu0.1",
            "1.9.3-2ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-gcj",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              },
              {
                "binary_name": "ant-optional-gcj",
                "binary_version": "1.9.3-2ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "versions": [
            "1.9.6-1ubuntu1",
            "1.9.6-1ubuntu1.1",
            "1.9.6-1ubuntu1.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-gcj",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              },
              {
                "binary_name": "ant-optional-gcj",
                "binary_version": "1.9.6-1ubuntu1.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "versions": [
            "1.9.9-4",
            "1.9.9-5",
            "1.9.9-6",
            "1.9.10-1",
            "1.9.10-2",
            "1.10.3-1",
            "1.10.3-1ubuntu0.1",
            "1.10.5-3~18.04",
            "1.10.5-3~18.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.5-3~18.04.1~esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.5-3~18.04.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "1.10.6-1",
            "1.10.7-1",
            "1.10.7-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.7-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.7-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.10.9-4",
            "1.10.11-1",
            "1.10.12-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.12-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.12-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.10.13-2",
            "1.10.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.14-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.14-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.10.15-1build1",
            "1.10.17-1",
            "1.10.18-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.18-1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.18-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ant",
            "purl": "pkg:deb/ubuntu/ant?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.10.15-1",
            "1.10.15-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78254.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ant",
                "binary_version": "1.10.15-1build1"
              },
              {
                "binary_name": "ant-optional",
                "binary_version": "1.10.15-1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:09.451487684Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-78254"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-78254",
        "https://www.cve.org/CVERecord?id=CVE-2026-78254",
        "https://www.openwall.com/lists/oss-security/2026/09/06/2",
        "https://github.com/apache/ant/commit/07ee9c418e3bd3e7d0287fc9aaba3011e88f0dc2",
        "https://github.com/apache/ant/commit/9252566cab812c59a5695679ba11f497e85aabb0",
        "https://github.com/apache/ant/commit/3807d672ea18d9f8dafd5eb9b2fe1de05f664539"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-78254",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361088,
  "published_at": "2026-09-07T08:17:00+00:00"
}