{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-78254 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-78254 is a high-severity path traversal vulnerability in Apache Ant, published on 7 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-78254 and fix it if it is affected.\n\nWhat it is: CVE-2026-78254 is a high-severity path traversal vulnerability in Apache Ant, published on 7 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-78254 in the wild and no public exploit code.\n\nAffected product: Apache Ant. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-78254/ (Markdown: https://insights.sbomify.com/CVE-2026-78254/index.md)","id":"CVE-2026-78254","markdown":"https://insights.sbomify.com/CVE-2026-78254/index.md","name":"CVE-2026-78254","record":{"aliases":["AZL-99972","BELL-CVE-2026-78254","CLEANSTART-2026-DD03194","CLEANSTART-2026-OZ64651","CLSA-2026-1789382807","CLSA-2026-1789746085","DEBIAN-CVE-2026-78254","GHSA-vjp4-m83c-mp26","UBUNTU-CVE-2026-78254","openSUSE-SU-2026:11793-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Ant build tool","requires_auth":"none","summary":"A malicious server can write arbitrary files outside the target directory via path traversal in Apache Ant's ftp and scp tasks.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"ant","vendor":"apache"}],"cvss":{"score":7.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"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. \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\nFor ftp tasks not using ftps a malicious server could act as a machine-in-the-middle to provide malicious files.\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\nMitigations:\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\nAll users are recommended to upgrade to Apache Ant 1.10.18, which fixes this issue.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Ant: Path traversal in ftp and scp tasks allows arbitrary file write","id":"CVE-2026-78254","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"DJI Drone HTTP Media Server Allows Unauthenticated Access to Stored Media","id":"CVE-2026-78255"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.10.18-2.1"],"introduced":["0"],"last_affected":[],"package":"ant","purl":"pkg:rpm/opensuse/ant\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11793-1"}],"prev":{"headline":"Denial-of-service (stack-exhaustion) vulnerability in QXmlStreamReader::readElementText() impacts Qt","id":"CVE-2026-78253"},"products":["Apache Ant"],"published":"2026-09-07","related":[{"cvss_score":7.5,"headline":"Code injection in Apache Ant","id":"CVE-2020-11979","kev_date_added":null,"published":"2020-10-01"},{"cvss_score":6.3,"headline":"Sensitive Data Exposure in Apache Ant","id":"CVE-2020-1945","kev_date_added":null,"published":"2020-05-14"},{"cvss_score":5.5,"headline":"Apache Ant TAR archive denial of service vulnerability","id":"CVE-2021-36373","kev_date_added":null,"published":"2021-07-14"},{"cvss_score":5.5,"headline":"Apache Ant ZIP, and ZIP based, archive denial of service vulerability","id":"CVE-2021-36374","kev_date_added":null,"published":"2021-07-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-08","vendors":["Apache Software Foundation"]},"summary":"A malicious server can write arbitrary files outside the target directory via path traversal in Apache Ant's ftp and scp tasks.","url":"https://insights.sbomify.com/CVE-2026-78254/"}