CVE-2018-1000544: Malicious File Upload

Published 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: https://snyk.io/research/zip-slip-vulnerability

Other sources

rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to the filesystem. This attack appear to be exploitable via If a site allows uploading of .zip files , an attacker can upload a malicious file that contains symlinks or files with absolute pathnames "../" to write arbitrary files to the filesystem..

MITRE

Affected Software

6 affected componentsFixes available
rubygems/rubyzip<=1.2.1
1.2.2
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

Event History

Jun 26, 2018
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Sep 6, 2018
Advisory Published
03:27 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-1000544?

CVE-2018-1000544 is a Directory Traversal vulnerability in the rubyzip gem, specifically in the Zip::File component.

2

What is the severity of CVE-2018-1000544?

CVE-2018-1000544 has a severity score of 9.8, which is considered critical.

3

How can CVE-2018-1000544 be exploited?

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.

4

Which versions of the rubyzip gem are affected by CVE-2018-1000544?

Versions 1.2.1 and earlier of the rubyzip gem are affected by CVE-2018-1000544.

5

How can I fix CVE-2018-1000544?

To fix CVE-2018-1000544, update the rubyzip gem to version 1.2.2 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203