Skip to content

Rubyzip gem contains a Directory Traversal vulnerability in zip file component

Critical severity GitHub Reviewed Published Sep 6, 2018 to the GitHub Advisory Database • Updated Aug 28, 2023

Package

bundler rubyzip (RubyGems)

Affected versions

<= 1.2.1

Patched versions

1.2.2

Description

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..

This is similar to CVE-2017-5946 which was patched in 1.2.1 but the fix in that case was incomplete.

References

Published to the GitHub Advisory Database Sep 6, 2018
Reviewed Jun 16, 2020
Last updated Aug 28, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2018-1000544

GHSA ID

GHSA-vqcq-mrmw-mcmg

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.