PT-2017-16779 · Ruby · Rubyzip

Ecneladis

·

Published

2017-02-27

·

Updated

2026-03-13

·

CVE-2017-5946

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions rubyzip gem versions prior to 1.2.1
Description The Zip::File component in the rubyzip gem 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.
Recommendations For versions prior to 1.2.1, update to version 1.2.1 or later to resolve the issue. As a temporary workaround, consider restricting the upload of .zip files or validating the contents of uploaded .zip files to prevent the use of ../ pathname substrings.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

CVE-2017-5946
DLA-846-1
DSA-3801-1
GHSA-3Q5Q-F79Q-7HR2
GHSA-GCQQ-W6GR-H9J9
MGASA-2017-0264
OPENSUSE-SU-2024:11352-1
OPENSUSE-SU-2024:13168-1
OPENSUSE-SU-2024:14176-1
OPENSUSE-SU-2025:15126-1
OPENSUSE-SU-2026:10363-1

Affected Products

Rubyzip