CVE-2018-1000544:
Rubyzip gem contains a Directory Traversal vulnerability in zip file component
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6565%
CWE
Published
9/6/2018
Updated
8/28/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
rubyzip | rubygems | <= 1.2.1 | 1.2.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path sanitization when extracting zip entries. The Zip::Entry#extract
method directly uses the entry's filename to write files, allowing malicious paths. Zip::File#extract
orchestrates this process without additional safeguards. This matches the CVE description of directory traversal via crafted filenames and aligns with the PoC in rubyzip/rubyzip#369 where extraction logic is exploited. The functions are core to the library's file handling, making them clear candidates.