CVE-2017-5946
rubygem-rubyzip: Directory traversal in the Zip::File component
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA, Ruby Advisory DB. Niedriger laut Red Hat (mittel), Ubuntu (mittel).
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | rubyzip | 1.2.1 |
| rubygems::Ruby Advisory Database | rubyzip | >= 1.2.1 |
| debian 11 | ruby-zip | 1.2.0-1.1 |
| debian 12 | ruby-zip | 1.2.0-1.1 |
| debian 13 | ruby-zip | 1.2.0-1.1 |
| debian 14 | ruby-zip | 1.2.0-1.1 |
| debian 7 | libzip-ruby | 0.9.4-1+deb7u1 |
| debian 8 | ruby-zip | 1.1.6-1+deb8u1 |
| echo | ruby-zip | 1.2.0-1.1 |
| ubuntu 12.04 | libzip-ruby | 0.9.4-1+deb7u1build0.12.04.1 |
Referenzen
- http://www.debian.org/security/2017/dsa-3801
- http://www.securityfocus.com/bid/96445
- https://access.redhat.com/security/cve/CVE-2017-5946
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml
- https://github.com/rubyzip/rubyzip
- https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016
- https://github.com/rubyzip/rubyzip/issues/315
- https://github.com/rubyzip/rubyzip/releases