{"id":"UBUNTU-CVE-2017-5946","details":"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.","modified":"2025-10-24T04:46:10Z","published":"2017-02-27T07:59:00Z","upstream":["CVE-2017-5946"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-5946"},{"type":"REPORT","url":"https://github.com/rubyzip/rubyzip/releases"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-5946"}],"affected":[{"package":{"name":"ruby-zip","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-zip@1.1.7-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.7-1","binary_name":"ruby-zip"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5946.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}