Red Hat Bugzilla – Bug 1584407
ant: arbitrary file write vulnerability and arbitrary code execution using a specially crafted zip file
Last modified: 2018-08-05 23:47:25 EDT
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:
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.
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.
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
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.