First published: Tue Jun 19 2018(Updated: )
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: <a href="https://snyk.io/research/zip-slip-vulnerability">https://snyk.io/research/zip-slip-vulnerability</a>
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/rubyzip | <1.2.2 | 1.2.2 |
Rubyzip Project Rubyzip | <=1.2.1 | |
Debian Debian Linux | =8.0 | |
Debian Debian Linux | =9.0 | |
Redhat Cloudforms | =4.6 | |
rubygems/rubyzip | <=1.2.1 | 1.2.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-1000544 is a Directory Traversal vulnerability in the rubyzip gem, specifically in the Zip::File component.
CVE-2018-1000544 has a severity score of 9.8, which is considered critical.
CVE-2018-1000544 can be exploited if a site allows uploading of .zip files. An attacker can upload a malicious file that can lead to arbitrary file write on the filesystem.
Versions 1.2.1 and earlier of the rubyzip gem are affected by CVE-2018-1000544.
To fix CVE-2018-1000544, update the rubyzip gem to version 1.2.2 or higher.