Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1584407 - ant: arbitrary file write vulnerability and arbitrary code execution using a specially crafted zip file
ant: arbitrary file write vulnerability and arbitrary code execution using a ...
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 1588276 1585543 1585544 1588277
Blocks: 1584408
  Show dependency treegraph
Reported: 2018-05-30 16:08 EDT by Laura Pardo
Modified: 2018-08-05 23:47 EDT (History)
25 users (show)

See Also:
Fixed In Version: ant 1.9.12
Doc Type: If docs needed, set a value
Doc Text:
It was discovered that Ant's unzip and untar targets permit the extraction of files outside the target directory. A crafted zip or tar file submitted to an Ant build could create or overwrite arbitrary files with the privileges of the user running Ant.
Story Points: ---
Clone Of:
Last Closed: 2018-08-05 23:47:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Laura Pardo 2018-05-30 16:08:48 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.
Comment 1 Tomas Hoger 2018-05-31 03:03:26 EDT
According to the reporter, this was fixed upstream in version 1.9.12.
Comment 3 Kurt Seifried 2018-06-01 12:56:29 EDT

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.
Comment 6 Doran Moppert 2018-06-03 23:37:18 EDT

Name: Danny Grander (Snyk)
Comment 7 Doran Moppert 2018-06-06 22:44:41 EDT
Created ant tracking bugs for this issue:

Affects: fedora-all [bug 1588277]
Comment 9 Fedora Update System 2018-07-03 12:51:43 EDT
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.
Comment 11 Doran Moppert 2018-07-03 23:29:38 EDT
External References:

Comment 12 Fedora Update System 2018-07-05 11:17:50 EDT
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.
Comment 13 Salvatore Bonaccorso 2018-07-21 07:02:24 EDT
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.
Comment 14 Doran Moppert 2018-07-23 23:43:50 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.