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. References: https://github.com/codehaus-plexus/plexus-archiver/pull/87 Patch: https://github.com/codehaus-plexus/plexus-archiver/commit/58bc24e465c0842981692adbf6d75680298989de
The above fix was included in upstream version 3.6.0.
Acknowledgments: Name: Danny Grander (Snyk)
Public via: https://snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-31680
External References: https://snyk.io/research/zip-slip-vulnerability
Created plexus-archiver tracking bugs for this issue: Affects: fedora-27 [bug 1587818] Affects: fedora-28 [bug 1587817]
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2018:1836 https://access.redhat.com/errata/RHSA-2018:1836
This issue has been addressed in the following products: Red Hat Software Collections for Red Hat Enterprise Linux 6 Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7 Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS Via RHSA-2018:1837 https://access.redhat.com/errata/RHSA-2018:1837
Marking Fuse 7 not affected, used at build time but crucially the vulnerable methods to zipslip are not used