CVE-2018-1000544
rubyzip: arbitrary file write vulnerability / arbitrary code execution using a specially crafted zip file
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Ruby Advisory DB. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
rubyzip gem rubyzip version 1.2.1 and earlier contains a Directory Traversal vulnerability in Zip::File component that can result in write arbitrary files to the filesystem. This attack appear to be exploitable via If a site allows uploading of .zip files , an attacker can upload a malicious file that contains symlinks or files with absolute pathnames "../" to write arbitrary files to the filesystem..
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | rubyzip | 1.2.2 |
| rubygems::Ruby Advisory Database | rubyzip | >= 1.2.2 |
| debian 11 | ruby-zip | 1.2.2-1 |
| debian 12 | ruby-zip | 1.2.2-1 |
| debian 13 | ruby-zip | 1.2.2-1 |
| debian 14 | ruby-zip | 1.2.2-1 |
| debian 8 | ruby-zip | 1.1.6-1+deb8u2 |
| debian 9 | ruby-zip | 1.2.0-1.1+deb9u1 |
| echo | ruby-zip | 1.2.2-1 |
| ubuntu 18.04 | ruby-zip | 1.2.1-1.1~build0.18.04.1 |
| ubuntu 18.04-ESM | ruby-zip | 1.2.1-1.1~build0.18.04.1 |
References
- https://access.redhat.com/errata/RHSA-2018:3466
- https://access.redhat.com/security/cve/CVE-2018-1000544
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2018-1000544.yml
- https://github.com/rubyzip/rubyzip
- https://github.com/rubyzip/rubyzip/issues/369
- https://lists.debian.org/debian-lts-announce/2018/08/msg00013.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00002.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000544