kritisch9.8
CVE-2017-5946
Directory traversal vulnerability in RubyZip
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | rubyzip | < 1.2.1 | 1.2.1 |
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| Debian | Debian Linux | Versionen 8.0, 9.0 |
| Rubyzip Project | Rubyzip | vor 1.2.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- http://www.debian.org/security/2017/dsa-3801
- http://www.securityfocus.com/bid/96445
- https://github.com/rubyzip/rubyzip/issues/315
- https://github.com/rubyzip/rubyzip/releases
- https://github.com/advisories/GHSA-gcqq-w6gr-h9j9
- https://nvd.nist.gov/vuln/detail/CVE-2017-5946
- https://web.archive.org/web/20200227185727/http://www.securityfocus.com/bid/96445
- https://github.com/rubyzip/rubyzip/commit/ce4208fdecc2ad079b05d3c49d70fe6ed1d07016
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2017-5946.yml