rubygem-rubyzip: Directory traversal in the Zip::File component
Published Feb 27, 2017
9.8
CRITICALCVSS 3.1
EPSS 3.44%
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.
Affected products
No data.
Configuration 1
- < 1.2.1
Configuration 2
- 8.0
- 9.0
No data.
Red Hat Quickstart Cloud Installer 1
tfm-rubygem-rubyzip
Under investigation
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Quickstart Cloud Installer 1 | tfm-rubygem-rubyzip | Under investigation | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of rubygem-rubyzip as shipped with Red Hat Quick Cloud Installer. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.44% (0.03441) | 88.59th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.47% (0.03470) | 87.51th | v5 (v2026.06.15) |
| Mar 30, 2025 | 5.92% (0.05924) | 89.67th | v4 (v2025.03.14) |
| Mar 29, 2025 | 11.43% (0.11427) | 89.27th | v4 (v2025.03.14) |
| Mar 17, 2025 | 5.92% (0.05924) | 89.92th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.43% (0.00427) | 74.63th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.43% (0.00427) | 73.69th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.43% (0.00427) | 70.39th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.04% (0.01040) | 28.32th | v1 |
| Jan 6, 2022 | 1.04% (0.01040) | 27.69th | v1 |
| Sep 1, 2021 | 1.04% (0.01040) | 64.49th | v1 |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (12)
- http://www.debian.org/security/2017/dsa-3801 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.securityfocus.com/bid/96445 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2017-5946 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1427937 Issue Tracking
- https://github.com/advisories/GHSA-gcqq-w6gr-h9j9 Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml
- https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016
- https://github.com/rubyzip/rubyzip/issues/315 x_refsource_CONFIRMThird Party Advisory
- https://github.com/rubyzip/rubyzip/releases x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-5946
- https://web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445
- https://www.cve.org/CVERecord?id=CVE-2017-5946
| Link | Providers | Tags |
|---|---|---|
| http://www.debian.org/security/2017/dsa-3801 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.securityfocus.com/bid/96445 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2017-5946 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1427937 | Issue Tracking | |
| https://github.com/advisories/GHSA-gcqq-w6gr-h9j9 | Advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml | ||
| https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016 | ||
| https://github.com/rubyzip/rubyzip/issues/315 | x_refsource_CONFIRMThird Party Advisory | |
| https://github.com/rubyzip/rubyzip/releases | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-5946 | ||
| https://web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445 | ||
| https://www.cve.org/CVERecord?id=CVE-2017-5946 |
Change history (0)
No recorded changes yet.