Live threats

All CVEs / Rubyzip Project

CVE-2017-5946Rubyzip Project Rubyzip

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
3.4%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Feb 27, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rubyzip.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems rubyzip < 1.2.1 1.2.1 gem "rubyzip", ">= 1.2.1"

Per OSV / GitHub Advisories (GHSA-gcqq-w6gr-h9j9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rubyzip_projectrubyzip< 1.2.1
debiandebian_linux8.0
debiandebian_linux9.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.