Skip to content

Directory traversal vulnerability in RubyZip

Critical severity GitHub Reviewed Published Oct 24, 2017 to the GitHub Advisory Database • Updated Aug 28, 2023

Package

bundler rubyzip (RubyGems)

Affected versions

< 1.2.1

Patched versions

1.2.1

Description

The Zip::File component in the rubyzip gem before 1.2.1 for Ruby has a directory traversal vulnerability. If a site allows uploading of .zip files, an attacker can upload a malicious file that uses ../ pathname substrings to write arbitrary files to the filesystem.

References

Published to the GitHub Advisory Database Oct 24, 2017
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

Weaknesses

CVE ID

CVE-2017-5946

GHSA ID

GHSA-gcqq-w6gr-h9j9

Source code

Credits

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