A vulnerability has been found in the way developers have implemented the archive extraction of files. An arbitrary file write vulnerability, that can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar,xz, war, cpio, 7z), that holds path traversal filenames. So when the filename gets concatenated to the target extraction directory, the final path ends up outside of the target folder. Of course if an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily. This affects multiple libraries that lacks of a high level APIs that provide the archive extraction functionality.
According to the reporter, this was fixed upstream in version 1.9.12.
Relevant upstream commits seem to be: https://github.com/apache/ant/commit/e56e54565804991c62ec76dad385d2bdda8972a7 https://github.com/apache/ant/commit/1a2b1e37e3616991588f21efa89c474dd6ff83ff https://github.com/apache/ant/commit/f72406d53cfb3b3425cc9d000eea421a0e05d8fe https://github.com/apache/ant/commit/857095da5153fd18504b46f276d84f1e76a66970
Statement: This issue affects the versions of the nutch package as shipped with Red Hat Satellite 5. However, this flaw is not known to be exploitable under any supported scenario in Satellite 5. A future update may address this issue.
Acknowledgments: Name: Danny Grander (Snyk)
Created ant tracking bugs for this issue: Affects: fedora-all [bug 1588277]
ant-1.10.1-10.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
External References: https://snyk.io/research/zip-slip-vulnerability
ant-1.10.1-10.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
The fixes as released in 1.10.4 and 1.9.12 were incomplete, there was a respective followup with https://github.com/apache/ant/commit/6a41d62cb9ab4e640b72cb4de42a6c211dea645d https://github.com/apache/ant/commit/5a8c37b271677587046bfd0fea18c1675d5a6300 I requested a CVE for the incomplete fix to CVE-2018-10886.
The assignment of CVE-2018-10886 is withdrawn as Apache Ant is not in Red Hat's scope as a CNA. The Apache project will follow up with MITRE.