9.8critical
Rubyzip gem contains a Directory Traversal vulnerability in zip file component
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 4.34% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vqcq-mrmw-mcmg
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rubyzip (RubyGems) | before 1.2.2 | GitHub Advisory Database |
| rubyzip_project rubyzip | up to 1.2.1 | NVD |
| debian debian_linux | 8.0, 9.0 | NVD |
| redhat cloudforms | 4.6 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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..
GitHub Advisory Database
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..
This is similar to CVE-2017-5946 which was patched in 1.2.1 but the fix in that case was incomplete.
NVD (es)
rubyzip gem rubyzip en versiones 1.2.1 y anteriores contiene una vulnerabilidad de salto de directorio en el componente Zip::File que puede resultar en la escritura de archivos arbitrarios en el sistema de archivos. Si un sitio permite la subida de archivos .zip, un atacante puede subir un archivo malicioso que contiene vínculos simbólicos o archivos con nombre de ruta absolutos "../" para escribir archivos arbitrarios en el sistema de archivos.
References
| https://github.com/rubyzip/rubyzip/issues/369 | exploit, third-party-advisory, web | |
| https://access.redhat.com/errata/RHSA-2018:3466 | third-party-advisory, vendor-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2018/08/msg00013.html | mailing-list, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2020/08/msg00002.html | mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-1000544 | advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubyzip/CVE-2018-1000544.yml | web | |
| https://github.com/rubyzip/rubyzip | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2018-1000544 changed 2024-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vqcq-mrmw-mcmg changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2018-1000544 changed 2026-06-17 | Public domain |