CVE-2017-5946
publishedrubygem-rubyzip: Directory traversal in the Zip::File component
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | ruby-zip | Advisory build | 1.1.6-1+deb8u1 | DSA-3801-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| Debian | wheezy | libzip-ruby | Advisory build | 0.9.4-1+deb7u1 | DLA-846-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rubyzips390x | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
Show 19 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rubyzips390x | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.2 | OPENSUSE-SU-2024:11352-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.11 | OPENSUSE-SU-2024:13168-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.11 | OPENSUSE-SU-2024:13168-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rubyzips390x | Advisory build | 2.3.2-1.11 | OPENSUSE-SU-2024:13168-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.11 | OPENSUSE-SU-2024:13168-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.15 | OPENSUSE-SU-2024:14176-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.15 | OPENSUSE-SU-2024:14176-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rubyzips390x | Advisory build | 2.3.2-1.15 | OPENSUSE-SU-2024:14176-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.15 | OPENSUSE-SU-2024:14176-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.17 | OPENSUSE-SU-2025:15126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.17 | OPENSUSE-SU-2025:15126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rubyzips390x | Advisory build | 2.3.2-1.17 | OPENSUSE-SU-2025:15126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.17 | OPENSUSE-SU-2025:15126-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rubyzipaarch64 | Advisory build | 2.3.2-1.19 | OPENSUSE-SU-2026:10363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rubyzipppc64le | Advisory build | 2.3.2-1.19 | OPENSUSE-SU-2026:10363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rubyzips390x | Advisory build | 2.3.2-1.19 | OPENSUSE-SU-2026:10363-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-rubyzipx86_64 | Advisory build | 2.3.2-1.19 | OPENSUSE-SU-2026:10363-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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- DSA-3801 http://www.debian.org/security/2017/dsa-3801
- 96445 http://www.securityfocus.com/bid/96445
- https://github.com/rubyzip/rubyzip/issues/315
- https://github.com/rubyzip/rubyzip/releases
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 73656a4a20275068bfdb574ce1b558a14a1ae15a33104e6845c86a8c08309109
- Ingested
- 23 Sep 2026, 07:42:47 UTC
- Source record
- Official CVE record